Jump to content


Photo

Kodi/Emby Plugin - Native Path Problem

path kodi emby

  • Please log in to reply
6 replies to this topic

#1 burstlink OFFLINE  

burstlink

    Newbie

  • Members
  • 1 posts
  • Local time: 09:41 AM

Posted 26 November 2019 - 06:39 AM

Hi,

 

I wanna share with you this native path problem I've just found on Kodi (it's 18.4 / 18.5, but I think the version doesn't matter).

 

I have a folder on my QNAP NAS (where Emby latest server is running), and I added it in the  Emby library at this path :

 

 

/share/CACHEDEV1_DATA/Multimedia/Video/2160p

Native path : \\10.208.52.252\Multimedia\Video\2160p\

 

Everything is fine .. but  .. I have another folder called 2160pUNT (Untouched), so, in Emby is :

 

/share/CACHEDEV1_DATA/Multimedia/Video/2160pUNT

Native path : \\10.208.52.252\Multimedia\Video\2160pUNT\

 

In Emby standalone client everything works fine. In Kodi all the 2160pUNT folder files are indexed and into the database, but when I try to play them , are all "file missing" .. and I found out why.

The native path in Kodi is wrong .. a "/" has been added between 2160p and UNT .. look at the RED slash : smb://10.208.52.252/Multimedia/Video/2160p/UNT

 

I guess the problem is that he has in the library a folder named 2160p, and when a folder with the same starting name is added (like 2160pUNT), something goes wrong and he puts a / after the shortest path, thinking that everything that comes after it is something into that folder. (I hope my explanation is understandable).

 

Btw I solved renaming one of the two folders.

 

What do you think about ?

 

Regards,

 

G. 


Edited by burstlink, 26 November 2019 - 06:40 AM.


#2 hasown OFFLINE  

hasown

    Member

  • Members
  • 13 posts
  • Local time: 02:41 AM

Posted 28 November 2019 - 01:32 AM

Replying to this to say that I've encountered this exact same issue.

 

My folders:

D:\Movies

Native path: \\SERVER\Movies_D$

 

D:\Movies_TEMP

Native path: \\SERVER\Movies_TEMP_D$

 

After path substitution everything from that second folder should have the following path in Emby for Kodi:

\\SERVER\Movies_TEMP_D$\moviename (2019)\video.file.mp4

 

Instead they have the following path:

\\SERVER\Movies_D$_TEMP\moviename (2019)\video.file.mp4

 

Emby is doing path substitution by going down the list. "D:\Movies_TEMP" matches path substitution rules for both "D:\Movies" and "D:\Movies_TEMP". Emby does the path substitution for "D:\Movies" even though that is wrong and creates a non-existing path. I'm not sure if "D:\Movies" is being preferred alphabetically or because I added it before the other folder.

 

Like the above poster I also got around this by renaming the folder to prevent the shared characters. It's annoying though, I'd like them to sort together in Windows Explorer, and it's broken some of my Kodi playlists that look for a "\Movies" string.

 

Running Emby Server 4.3.0.30. Not sure what version of Emby for Kodi it is but I updated it on 2019/11/27 to try and troubleshoot this, so whatever version was being served today (maybe 4.1.16? I see that version number in the devices section of the Emby dashboard).


Edited by hasown, 28 November 2019 - 01:38 AM.


#3 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 02:41 AM

Posted 28 November 2019 - 12:08 PM

@Luke
Did something change for path substitution in Emby?

#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146246 posts
  • Local time: 03:41 AM

Posted 28 November 2019 - 12:52 PM

Nothing changed. If you're using the old global path substitution in the server config file then I would imagine it's always been this way.

#5 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 12738 posts
  • Local time: 02:41 AM

Posted 28 November 2019 - 01:16 PM

What would happen if you added a slash to both paths, like so?

 

My folders:

D:\Movies\

Native path: \\SERVER\Movies_D$\

 

D:\Movies_TEMP\

Native path: \\SERVER\Movies_TEMP_D$\

 

Nevermind, I just tested on my side and it works correctly with your test case using per folder substitution.


Edited by Angelblue05, 28 November 2019 - 01:54 PM.


#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146246 posts
  • Local time: 03:41 AM

Posted 28 November 2019 - 01:27 PM

No, instead just don't use the old global config. Just use the per folder substitution.

#7 CTPAHHIK OFFLINE  

CTPAHHIK

    Newbie

  • Members
  • 5 posts
  • Local time: 09:41 AM
  • LocationZurich

Posted 20 December 2019 - 04:24 AM

I was wondering, if there any advantage to using native path, instead of default plugin configuration.

I did not have any filepath problem using per folder substiitution.

However, using native path option in plugin breaks library update functionality. Each update (either upstream or downstream) must be triggered manually from Kodi.

I've switched all clients to plugin default in order to avoid this problem.  


Edited by CTPAHHIK, 20 December 2019 - 04:24 AM.






Also tagged with one or more of these keywords: path, kodi, emby

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users