Kodi Community Forum

Full Version: Play movie & pathsubstitution
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hiii.

Scenario:
- WIN PC with Kodi 17.6
- Raspberry ONLY for mysql purpose
- Movie in many.. many HD attached via USB to PC when necessary.

In video database, all films are stored as:
V:\DISCnn\MovieTitle.mkv
Where:
V:\ is costant.

Now i've buy an android mediaplayer with kodi support.
I connet to the raspberry and all is OK.
For example I want see the film Alien on the Android mediaplayer.
In the database the movie is stored as:
V:\DISC_30\Alien.mkv
in column c22 of movie table.
I insert DISC_30 into a usb dockin station attached to the MP and I want to see the film.

Media Player see the HD as:
/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/

where BLURAY_DISC_30 is the HD label

I've use the pathsostitution:
<substitute>
       <from>V:\DISC_30\</from>
       <to>/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/</to>
</substitute>

In LOG:
Code:

19:52:37.706 T:18446744071883766048   DEBUG:   Registering substition pair:
19:52:37.706 T:18446744071883766048   DEBUG:     From: [V:\DISC_30\]
19:52:37.706 T:18446744071883766048   DEBUG:     To:   [/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/]

But the movie aren't find by Kodi and not played.

Where I'm wrong?
If you enter
Code:
/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/
as a source in the videos section on your android device can you access the film?
(2018-04-13, 21:53)trogggy Wrote: [ -> ]If you enter
Code:
/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/
as a source in the videos section on your android device can you access the film?  
Yes.

In the source.xml
Code:

<source>
            <name>TestFolder</name>
            <path pathversion="1">/mnt/media_rw/disk-by-label/FILMS_4K-DISCO_1/TestFolder/</path>
            <allowsharing>true</allowsharing>
        </source>


But
In the advancedsettinhs.xml
Code:

<substitute>
            <from>V:\BLURAY_4K_DISCO_1\</from>
            <to>/mnt/media_rw/disk-by-label/FILMS_4K-DISCO_1/BLURAY_4K_DISCO_1/</to>
</substitute>
Films not found.
At this point I'd start looking at logs, so eg...
-enable debug logging
-restart kodi
-start playing the problem file direct from videos
-stop playback
-try to play the same file with your pathsub
-upload the log to a paste site and link to it here
-cross fingers and hope someone here can see what's going on in the log.
Don't ask me why but if:
<substitute>
       <from>V:/DISC_30/</from>
       <to>/mnt/media_rw/disk-by-label/BLURAY_DISC_30/DISC_30/</to>
</substitute>

The film is recognized.

But not played.

Log

In this session:
1) I've recreated a dummy db with only 1 film Apollo13;
2) I've browse to it in kodi
3) I've press enter.
4) Nothing happend.
5) I've browse to another film stored in the HD
6) I've press enter
7) Film start.

Thanks for your attention
Only for notice:

I've scraped films from Android device.

In PC's andvancedsettings.xml
Code:
<substitute>
            <from>/mnt/media_rw/disk-by-label/FILMS_4K-DISCO_1/BLURAY_4K_DISCO_1/</from>
            <to>V:/BLURAY_4K_DISCO_1/</to>
</substitute>

In PC I can see the films.
A definitive answer.

Thanks to all.