Scraper fails when using symlinks over NFS
#1
Hi,

Debug log, scanning a internally-mounted NFS share: https://paste.ubuntu.com/p/mv4QvFPTbZ/
Debug log, scanning an OS-mounted NFS share: https://paste.ubuntu.com/p/VDZbm5HBd9/

I'm not sure if this is a bug, or just the unfortunate consequence of expected behavior, or even if I'm posting this in the best place, so apologies in advance if I'm not.

I use Kodi as a frontend to recordings from a MythTV system. MythTV produces file names of the format '2124_20161207092900.ts' and I use myth2kodi to generate kodi-friendly file names which symlink back to the original file. So a typical file-path will be of the format:

Code:
[mythtv@Myth ~]$ ls -la /mnt/media_04/kodi/Doug/tv/Twirlywoos/Season\ 1/Twirlywoos\ S01E01\ \(Full\).ts
lrwxrwxrwx 1 mythtv mythtv 55 May 27  2017 '/mnt/media_04/kodi/Doug/tv/Twirlywoos/Season 1/Twirlywoos S01E01 (Full).ts' -> /mnt/media_04/myth/tv_recordings/2124_20170124092900.ts

This has worked perfectly and the library gets populated correctly, apart from when I try to use kodis' internal NFS mount system to mount the disks from a remote frontend. If I do that, I get the show info added to the library, but no episodes within the shows.
Looking at the log, it has this at line 7266 of the first debug log:

Code:
15:35:27.399 T:1295029152 DEBUG: VideoInfoScanner: Found episode match nfs://192.168.1.16:2049//mnt/media_01/myth/tv_recordings/2124_20170627161300.ts (s21e24) [[\\/\._ -]([0-9]+)([0-9][0-9](?Sad?:[a-i]|\.[1-9])(?![0-9]))?)([\._ -][^\\/]*)$]

It looks like the scanner is using the original filename, and not the name of the symlink. Is this what it should be doing?
If i create an NFS mount to the same place via the OS, then the scanner uses the name of the symlink, and correctly identifies the file and adds it to the library, see line 5971 of the second debug log:

Code:
12:24:37.474 T:1816130464   DEBUG: VideoInfoScanner: Found episode match /storage/tvshows/Twirlywoos/Season 1/Twirlywoos S01E01 (Full).ts (s1e1) [s([0-9]+)[ ._x-]*e([0-9]+(?Sad?:[a-i]|\.[1-9])(?![0-9]))?)([^\\/]*)$]

Is this a bug? or is it the unfortunate result of the way nfs works internally?

Thanks for any guidance
Reply
#2
(2018-03-12, 18:50)zinglefiffy Wrote: Is this a bug? or is it the unfortunate result of the way nfs works internally?

Thanks for any guidance
Did you ever figure this out?
Reply
#3
No sorry. Eventually fudged myth2kodi so it created hard links, which works, but that also created knock-on issues like having to delete programs from mythtv and then again from Kodi.

went back to mythfrontend in the end, my wife and kids just couldn't get used to Kodi and there was too much admin involved in linking it to myth.
Reply

Logout Mark Read Team Forum Stats Members Help
Scraper fails when using symlinks over NFS1