Closed soldier999 closed 6 years ago
It almost sounds like a permission issue. Subtitles get downloaded to a different directory and then moved into their final destination if they're successfully retrieved. You mentioned you're using SABnzbd.
Could you enable Debugging and share your results with me?
Basically open up your Subliminal.ini file and set Debug: yes.
If you're not using a Subliminal.ini; have a look here to see more details on it. It basically has to reside in the same directory as the Subliminal.py file.
OK I turned on advanced debugging in the ini file. Here's a new debug for a different episode: 2018-08-02 07:07:23,541 - 14015 - INFO - NZBParse - NZB-File parsed 2 meta entries 2018-08-02 07:07:26,558 - 14015 - INFO - Found 1 matched file(s). 2018-08-02 07:07:26,559 - 14015 - INFO - Using advanced search mode 2018-08-02 07:07:26,827 - 14015 - INFO - Detected obfuscated directory name TV, removing from path [NZB] NZBPRGUESS_EPISODENUMBER=1 [NZB] NZBPR__GUESS_VIDEOCODEC=h264 [NZB] NZBPRGUESS_CONTAINER=mkv [NZB] NZBPRGUESS_FORMAT=HDTV [NZB] NZBPR__GUESS_SERIES=Fresh Meat [NZB] NZBPRGUESS_RELEASEGROUP=HUNTED [NZB] NZBPRGUESS_VTYPE=series [NZB] NZBPR__GUESS_SCREENSIZE=1080p [NZB] NZBPRGUESS_SEASON=2 [NZB] NZBPR__GUESS_TYPE=episode 2018-08-02 07:07:27,387 - 14015 - INFO - Scanning video 'fresh.meat.s02e01.1080p.hdtv.x264-hunted.mkv' in '/media/david/My Book/TV/Fresh.Meat.S02E01.1080p.HDTV.x264-HUNTED'
Is it possible that subliminal thinks that my drive "My Book" which is a WD external hard drive is an obfuscated directory name?
Does the space in My Book cause a problem for the directory access? I tried quoting the whole thing in Sab and using "My\ Book" and just quoting the "My Book" part. None of that worked.
No; it shouldn't be related to space. The subtitles are very tiny.
Two things:
# Change to the directory that contains the Subliminal script:
cd /path/to/Sabnzbd/scripts
# Run the script manually against the video you're interested in:
# -D : Debug mode (because the output is going to help us debug your problem)
# -s : Single mode (so the sub doesn't have the language name in the filename)
# -f : Force search regardless of the video file age
python Subliminal.py -D -s -f "X:\My Book\location\to\the\video\file.mkv"
Thanks I will try that, but one of the errors reported is that the directory is obfuscated (which it isn't) so I wondered if the space character in My Book not the amount of space on the drive, could be the problem.
The debug information should help narrow down the issue. Spacing shouldn't be an issue at all; the script should be able to handle them.
So, that worked manually, but of course I was specifying the exact filename. In Sab, on the Config > Categories > Script : Folder/path setting, I'm pointing to the directory that contains all the tv shows and there's another level after that for Season # and it generates a directory obfuscated error when I do it that way. Here is the log anyway even though it worked fine in case it helps: david@david-desktop:~/Desktop/Sab-Scripts$ python Subliminal.py -D -s -f "/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv" 2018-08-06 14:49:54,506 - 7972 - DEBUG - Script Mode: shell 2018-08-06 14:49:54,506 - 7972 - DEBUG - Python v2.7.6 2018-08-06 14:49:54,510 - 7972 - DEBUG - OS: Linux 3.13.0-153-generic 2018-08-06 14:49:54,511 - 7972 - DEBUG - set(config) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv']" 2018-08-06 14:49:54,511 - 7972 - DEBUG - set(environment) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv']" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(config) TVCATEGORIES="tv" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(environment) TVCATEGORIES="tv" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(config) UPDATETIMESTAMP="Yes" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(environment) UPDATETIMESTAMP="Yes" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(config) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-06 14:49:54,513 - 7972 - DEBUG - set(environment) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(config) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(environment) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(config) SINGLE="True" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(environment) SINGLE="1" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(config) FORCE="True" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(environment) FORCE="1" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(config) PROVIDERS="opensubtitles, tvsubtitles, podnapisi, addic7ed, thesubdb" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(environment) PROVIDERS="opensubtitles, tvsubtitles, podnapisi, addic7ed, thesubdb" 2018-08-06 14:49:54,514 - 7972 - DEBUG - set(config) LANGUAGES="en" 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(environment) LANGUAGES="en" 2018-08-06 14:49:54,515 - 7972 - DEBUG - get(default) THROTTLETHRESHOLD=None 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(config) THROTTLETHRESHOLD="5" 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(environment) THROTTLETHRESHOLD="5" 2018-08-06 14:49:54,515 - 7972 - DEBUG - get(default) THROTTLE=None 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(config) THROTTLE="3" 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(environment) THROTTLE="3" 2018-08-06 14:49:54,515 - 7972 - DEBUG - get(default) MAXAGE=None 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(config) MAXAGE="24" 2018-08-06 14:49:54,515 - 7972 - DEBUG - set(environment) MAXAGE="24" 2018-08-06 14:49:54,516 - 7972 - DEBUG - get(default) MINSIZE=None 2018-08-06 14:49:54,516 - 7972 - DEBUG - set(config) MINSIZE="150" 2018-08-06 14:49:54,516 - 7972 - DEBUG - set(environment) MINSIZE="150" 2018-08-06 14:49:54,516 - 7972 - DEBUG - get(default) MINSCORE=None 2018-08-06 14:49:54,516 - 7972 - DEBUG - set(config) MINSCORE="20" 2018-08-06 14:49:54,516 - 7972 - DEBUG - set(environment) MINSCORE="20" 2018-08-06 14:49:54,516 - 7972 - DEBUG - get(config) LANGUAGES="en" 2018-08-06 14:49:54,516 - 7972 - DEBUG - get(default) SYSTEMENCODING=None 2018-08-06 14:49:54,516 - 7972 - DEBUG - set(config) SYSTEMENCODING="UTF-8" 2018-08-06 14:49:54,517 - 7972 - DEBUG - set(environment) SYSTEMENCODING="UTF-8" 2018-08-06 14:49:54,517 - 7972 - DEBUG - get(default) FETCHMODE=None 2018-08-06 14:49:54,517 - 7972 - DEBUG - set(config) FETCHMODE="BestScore" 2018-08-06 14:49:54,517 - 7972 - DEBUG - set(environment) FETCHMODE="BestScore" 2018-08-06 14:49:54,517 - 7972 - DEBUG - get(default) VIDEOEXTENSIONS=None 2018-08-06 14:49:54,517 - 7972 - DEBUG - set(config) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-06 14:49:54,517 - 7972 - DEBUG - set(environment) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-06 14:49:54,517 - 7972 - DEBUG - get(default) SCANDIRECTORIES=None 2018-08-06 14:49:54,517 - 7972 - DEBUG - get(config) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-06 14:49:54,518 - 7972 - DEBUG - get(config) MAXAGE="24" 2018-08-06 14:49:54,518 - 7972 - DEBUG - get(config) MINSIZE="150" 2018-08-06 14:49:54,518 - 7972 - DEBUG - get(config) FORCE="True" 2018-08-06 14:49:54,519 - 7972 - DEBUG - get(default) SCANDIRECTORIES=None 2018-08-06 14:49:54,522 - 7972 - DEBUG - get(default) XREFPATHS=None 2018-08-06 14:49:54,522 - 7972 - DEBUG - get(config) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv']" 2018-08-06 14:49:54,522 - 7972 - DEBUG - get(config) SINGLE="True" 2018-08-06 14:49:54,522 - 7972 - DEBUG - get_files('/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv') with 11 filter(s) 2018-08-06 14:49:54,523 - 7972 - DEBUG - Allowed Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv (suffix) 2018-08-06 14:49:54,523 - 7972 - INFO - Found 1 matched file(s). 2018-08-06 14:49:54,523 - 7972 - DEBUG - Scanning "/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv" (925.95 MB) 2018-08-06 14:49:54,523 - 7972 - DEBUG - get(default) NOTIFYURLS="" 2018-08-06 14:49:54,523 - 7972 - DEBUG - get(system) TEMPDIR="/tmp/nzbget-david" 2018-08-06 14:49:54,523 - 7972 - DEBUG - get(default) CACHEDIR="/tmp/nzbget-david" 2018-08-06 14:49:54,523 - 7972 - DEBUG - get(default) FORCEENCODING="None" 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(default) TIDYSUB="no" 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(config) MINSCORE="20" 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(default) IGNOREEMBEDDED="no" 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(default) SEARCHMODE="advanced" 2018-08-06 14:49:54,524 - 7972 - INFO - Using advanced search mode 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(config) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-06 14:49:54,524 - 7972 - DEBUG - get(config) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-06 14:49:54,524 - 7972 - DEBUG - Using the following movie providers: opensubtitles, thesubdb, podnapisi 2018-08-06 14:49:54,524 - 7972 - DEBUG - Using the following tv show providers: tvsubtitles, addic7ed 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(default) ADDIC7EDUSER=None 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(default) ADDIC7EDPASS=None 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(default) OPENSUBTITLESUSER=None 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(default) OPENSUBTITLESPASS=None 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(config) LANGUAGES="en" 2018-08-06 14:49:54,525 - 7972 - DEBUG - get(config) FETCHMODE="BestScore" 2018-08-06 14:49:54,525 - 7972 - DEBUG - Fetch Mode: BestScore 2018-08-06 14:49:54,539 - 7972 - DEBUG - get(config) SYSTEMENCODING="UTF-8" 2018-08-06 14:49:54,540 - 7972 - DEBUG - get(config) THROTTLETHRESHOLD="5" 2018-08-06 14:49:54,540 - 7972 - DEBUG - get(config) THROTTLE="3" 2018-08-06 14:49:54,548 - 7972 - DEBUG - get_files('/media/david/My Book/TV/Fresh Meat/Season 1') with 1 filter(s) 2018-08-06 14:49:54,554 - 7972 - DEBUG - Scanning [advanced] using /media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv lang=en 2018-08-06 14:49:54,554 - 7972 - DEBUG - get(config) TVCATEGORIES="tv" 2018-08-06 14:49:54,555 - 7972 - DEBUG - Guessing using: Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv 2018-08-06 14:49:55,103 - 7972 - DEBUG - { [1.00] "mimetype": "video/x-matroska", [1.00] "episodeNumber": 2, [1.00] "vtype": "series", [1.00] "container": "mkv", [1.00] "format": "HDTV", [0.85] "series": "Fresh Meat", [1.00] "screenSize": "720p", [1.00] "season": 1, [1.00] "type": "episode" } 2018-08-06 14:49:55,103 - 7972 - DEBUG - Type: series 2018-08-06 14:49:55,103 - 7972 - INFO - Scanning video 'Fresh Meat - S01E02 - Episode 2 HDTV-720p.mkv' in '/media/david/My Book/TV/Fresh Meat/Season 1' 2018-08-06 14:49:55,103 - 7972 - DEBUG - Size is 970923724 2018-08-06 14:49:55,669 - 7972 - DEBUG - Computed hashes {u'opensubtitles': u'e67091b1acbf3ec9', u'thesubdb': u'1dba861b675e5219db5547634b38fa1f'} 2018-08-06 14:49:55,669 - 7972 - DEBUG - Found subtitles set([]) 2018-08-06 14:49:55,767 - 7972 - DEBUG - Found resolution 720p with enzyme 2018-08-06 14:49:55,768 - 7972 - DEBUG - Found video_codec h264 with enzyme 2018-08-06 14:49:55,768 - 7972 - DEBUG - Found audio_codec AC3 with enzyme 2018-08-06 14:49:55,768 - 7972 - DEBUG - MKV has no subtitle track 2018-08-06 14:49:55,768 - 7972 - DEBUG - Skipping provider 'opensubtitles': not in the list 2018-08-06 14:49:55,768 - 7972 - DEBUG - Skipping provider 'thesubdb': not in the list 2018-08-06 14:49:55,768 - 7972 - DEBUG - Skipping provider 'podnapisi': not in the list 2018-08-06 14:49:55,951 - 7972 - INFO - Addic7ed using non-authenticated service. 2018-08-06 14:49:55,955 - 7972 - INFO - Listing subtitles with provider 'tvsubtitles' for video <Episode [u'Fresh Meat', 1x2]> with languages set([<Language [en]>]) 2018-08-06 14:49:56,067 - 7972 - DEBUG - Searching episodes {u'season': 1, u'show_id': 1141} 2018-08-06 14:49:57,440 - 7972 - DEBUG - Searching episode {u'episode_id': 41172} 2018-08-06 14:49:58,619 - 7972 - INFO - Found 1 subtitle(s) on tvsubtitles 2018-08-06 14:49:58,619 - 7972 - INFO - Listing subtitles with provider 'addic7ed' for video <Episode [u'Fresh Meat', 1x2]> with languages set([<Language [en]>]) 2018-08-06 14:49:58,639 - 7972 - DEBUG - Searching subtitles {u'season': 1, u'show_id': 1835} 2018-08-06 14:49:59,304 - 7972 - INFO - Found 2 subtitle(s) on addic7ed 2018-08-06 14:49:59,304 - 7972 - DEBUG - Computed score 35 with matches set([u'series', u'episode', u'season']) 2018-08-06 14:49:59,304 - 7972 - DEBUG - Computed score 35 with matches set([u'series', u'episode', u'season']) 2018-08-06 14:49:59,304 - 7972 - DEBUG - Computed score 35 with matches set([u'series', u'episode', u'season']) 2018-08-06 14:49:59,305 - 7972 - INFO - Downloading subtitle <TVsubtitlesSubtitle [en]> with score 35 into u'Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt' 2018-08-06 14:50:00,118 - 7972 - DEBUG - Download URL: http://www.tvsubtitles.net/download-228120.html 2018-08-06 14:50:00,234 - 7972 - DEBUG - Expecting .srt: /media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt 2018-08-06 14:50:00,235 - 7972 - DEBUG - Potential .srt: /tmp/nzbget-david/srt/Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt 2018-08-06 14:50:00,235 - 7972 - DEBUG - Expected not found, retrieving: /tmp/nzbget-david/srt/Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt 2018-08-06 14:50:00,394 - 7972 - ERROR - Could not move Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt to /media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt 2018-08-06 14:50:00,394 - 7972 - DEBUG - move() exception: [Errno 38] Function not implemented: '/media/david/My Book/TV/Fresh Meat/Season 1/Fresh Meat - S01E02 - Episode 2 HDTV-720p.srt' 2018-08-06 14:50:00,394 - 7972 - DEBUG - Exiting with return code: 0
2018-08-06 14:50:00,394 - 7972 - DEBUG - move() exception: [Errno 38] Function not implemented: ...
It seems that the issue is related to your operating system. The error your getting seems to imply that your "My Book" is of a filesystem that requires /dev/shm (shared memory to be mounted). Sources:
The answer given was to add an entry that may be missing from your version of Linux you're using (which doesn't seem to be a standard - Linux 3.13.0-153-generic)
# add line (presumably missing from your /etc/fstab file)
echo "none /dev/shm tmpfs rw,nosuid,nodev,noexec 0" >> /etc/fstab
# mount it
mount -a
Now try again...
david@david-desktop:~/Desktop/Sab-Scripts$ python Subliminal.py -D -s -f "/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv" 2018-08-07 18:50:42,139 - 19460 - DEBUG - Script Mode: shell 2018-08-07 18:50:42,139 - 19460 - DEBUG - Python v2.7.6 2018-08-07 18:50:42,223 - 19460 - DEBUG - OS: Linux 3.13.0-153-generic 2018-08-07 18:50:42,224 - 19460 - DEBUG - set(config) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv']" 2018-08-07 18:50:42,224 - 19460 - DEBUG - set(environment) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv']" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(config) TVCATEGORIES="tv" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(environment) TVCATEGORIES="tv" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(config) UPDATETIMESTAMP="Yes" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(environment) UPDATETIMESTAMP="Yes" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(config) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-07 18:50:42,249 - 19460 - DEBUG - set(environment) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(config) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(environment) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(config) SINGLE="True" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(environment) SINGLE="1" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(config) FORCE="True" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(environment) FORCE="1" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(config) PROVIDERS="opensubtitles, tvsubtitles, podnapisi, addic7ed, thesubdb" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(environment) PROVIDERS="opensubtitles, tvsubtitles, podnapisi, addic7ed, thesubdb" 2018-08-07 18:50:42,250 - 19460 - DEBUG - set(config) LANGUAGES="en" 2018-08-07 18:50:42,251 - 19460 - DEBUG - set(environment) LANGUAGES="en" 2018-08-07 18:50:42,251 - 19460 - DEBUG - get(default) THROTTLETHRESHOLD=None 2018-08-07 18:50:42,251 - 19460 - DEBUG - set(config) THROTTLETHRESHOLD="5" 2018-08-07 18:50:42,251 - 19460 - DEBUG - set(environment) THROTTLETHRESHOLD="5" 2018-08-07 18:50:42,251 - 19460 - DEBUG - get(default) THROTTLE=None 2018-08-07 18:50:42,251 - 19460 - DEBUG - set(config) THROTTLE="3" 2018-08-07 18:50:42,251 - 19460 - DEBUG - set(environment) THROTTLE="3" 2018-08-07 18:50:42,251 - 19460 - DEBUG - get(default) MAXAGE=None 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(config) MAXAGE="24" 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(environment) MAXAGE="24" 2018-08-07 18:50:42,252 - 19460 - DEBUG - get(default) MINSIZE=None 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(config) MINSIZE="150" 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(environment) MINSIZE="150" 2018-08-07 18:50:42,252 - 19460 - DEBUG - get(default) MINSCORE=None 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(config) MINSCORE="20" 2018-08-07 18:50:42,252 - 19460 - DEBUG - set(environment) MINSCORE="20" 2018-08-07 18:50:42,252 - 19460 - DEBUG - get(config) LANGUAGES="en" 2018-08-07 18:50:42,253 - 19460 - DEBUG - get(default) SYSTEMENCODING=None 2018-08-07 18:50:42,253 - 19460 - DEBUG - set(config) SYSTEMENCODING="UTF-8" 2018-08-07 18:50:42,253 - 19460 - DEBUG - set(environment) SYSTEMENCODING="UTF-8" 2018-08-07 18:50:42,253 - 19460 - DEBUG - get(default) FETCHMODE=None 2018-08-07 18:50:42,253 - 19460 - DEBUG - set(config) FETCHMODE="BestScore" 2018-08-07 18:50:42,253 - 19460 - DEBUG - set(environment) FETCHMODE="BestScore" 2018-08-07 18:50:42,253 - 19460 - DEBUG - get(default) VIDEOEXTENSIONS=None 2018-08-07 18:50:42,253 - 19460 - DEBUG - set(config) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-07 18:50:42,254 - 19460 - DEBUG - set(environment) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(default) SCANDIRECTORIES=None 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(config) VIDEOEXTENSIONS=".mkv,.avi,.divx,.xvid,.mov,.wmv,.mp4,.mpg,.mpeg,.vob,.iso" 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(config) MAXAGE="24" 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(config) MINSIZE="150" 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(config) FORCE="True" 2018-08-07 18:50:42,254 - 19460 - DEBUG - get(default) SCANDIRECTORIES=None 2018-08-07 18:50:42,257 - 19460 - DEBUG - get(default) XREFPATHS=None 2018-08-07 18:50:42,257 - 19460 - DEBUG - get(config) ABSOLUTESCANDIRECTORIES="['/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv']" 2018-08-07 18:50:42,257 - 19460 - DEBUG - get(config) SINGLE="True" 2018-08-07 18:50:42,257 - 19460 - DEBUG - get_files('/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv') with 11 filter(s) 2018-08-07 18:50:42,258 - 19460 - DEBUG - Allowed Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv (suffix) 2018-08-07 18:50:42,258 - 19460 - INFO - Found 1 matched file(s). 2018-08-07 18:50:42,258 - 19460 - DEBUG - Scanning "/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv" (649.11 MB) 2018-08-07 18:50:42,258 - 19460 - DEBUG - get(default) NOTIFYURLS="" 2018-08-07 18:50:42,258 - 19460 - DEBUG - get(system) TEMPDIR="/tmp/nzbget-david" 2018-08-07 18:50:42,258 - 19460 - DEBUG - get(default) CACHEDIR="/tmp/nzbget-david" 2018-08-07 18:50:42,259 - 19460 - DEBUG - get(default) FORCEENCODING="None" 2018-08-07 18:50:42,259 - 19460 - DEBUG - get(default) TIDYSUB="no" 2018-08-07 18:50:42,259 - 19460 - DEBUG - get(config) MINSCORE="20" 2018-08-07 18:50:42,259 - 19460 - DEBUG - get(default) IGNOREEMBEDDED="no" 2018-08-07 18:50:42,259 - 19460 - DEBUG - get(default) SEARCHMODE="advanced" 2018-08-07 18:50:42,259 - 19460 - INFO - Using advanced search mode 2018-08-07 18:50:42,292 - 19460 - DEBUG - get(config) MOVIEPROVIDERS="opensubtitles, podnapisi, thesubdb" 2018-08-07 18:50:42,292 - 19460 - DEBUG - get(config) TVSHOWPROVIDERS="tvsubtitles, addic7ed" 2018-08-07 18:50:42,292 - 19460 - DEBUG - Using the following movie providers: opensubtitles, thesubdb, podnapisi 2018-08-07 18:50:42,293 - 19460 - DEBUG - Using the following tv show providers: tvsubtitles, addic7ed 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(default) ADDIC7EDUSER=None 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(default) ADDIC7EDPASS=None 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(default) OPENSUBTITLESUSER=None 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(default) OPENSUBTITLESPASS=None 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(config) LANGUAGES="en" 2018-08-07 18:50:42,293 - 19460 - DEBUG - get(config) FETCHMODE="BestScore" 2018-08-07 18:50:42,293 - 19460 - DEBUG - Fetch Mode: BestScore 2018-08-07 18:50:42,522 - 19460 - DEBUG - get(config) SYSTEMENCODING="UTF-8" 2018-08-07 18:50:42,522 - 19460 - DEBUG - get(config) THROTTLETHRESHOLD="5" 2018-08-07 18:50:42,522 - 19460 - DEBUG - get(config) THROTTLE="3" 2018-08-07 18:50:42,531 - 19460 - DEBUG - get_files('/media/david/My Book/TV/Fresh Meat/Season 2') with 1 filter(s) 2018-08-07 18:50:42,533 - 19460 - DEBUG - Scanning [advanced] using /media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv lang=en 2018-08-07 18:50:42,534 - 19460 - DEBUG - get(config) TVCATEGORIES="tv" 2018-08-07 18:50:42,534 - 19460 - DEBUG - Guessing using: Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv 2018-08-07 18:50:43,098 - 19460 - DEBUG - { [1.00] "mimetype": "video/x-matroska", [1.00] "episodeNumber": 5, [1.00] "vtype": "series", [1.00] "container": "mkv", [1.00] "format": "HDTV", [0.85] "series": "Fresh Meat", [1.00] "screenSize": "720p", [1.00] "season": 2, [1.00] "type": "episode" } 2018-08-07 18:50:43,098 - 19460 - DEBUG - Type: series 2018-08-07 18:50:43,099 - 19460 - INFO - Scanning video 'Fresh Meat - S02E05 - Episode 5 HDTV-720p.mkv' in '/media/david/My Book/TV/Fresh Meat/Season 2' 2018-08-07 18:50:43,099 - 19460 - DEBUG - Size is 680646364 2018-08-07 18:50:43,497 - 19460 - DEBUG - Computed hashes {u'opensubtitles': u'8fa66a7e13710819', u'thesubdb': u'5c1bc9e618dc3323d19de42b0d2495cf'} 2018-08-07 18:50:43,497 - 19460 - DEBUG - Found subtitles set([]) 2018-08-07 18:50:43,595 - 19460 - DEBUG - Found resolution 720p with enzyme 2018-08-07 18:50:43,595 - 19460 - DEBUG - Found video_codec h264 with enzyme 2018-08-07 18:50:43,595 - 19460 - DEBUG - Found audio_codec AAC with enzyme 2018-08-07 18:50:43,595 - 19460 - DEBUG - MKV has no subtitle track 2018-08-07 18:50:43,595 - 19460 - DEBUG - Skipping provider 'opensubtitles': not in the list 2018-08-07 18:50:43,595 - 19460 - DEBUG - Skipping provider 'thesubdb': not in the list 2018-08-07 18:50:43,596 - 19460 - DEBUG - Skipping provider 'podnapisi': not in the list 2018-08-07 18:50:43,828 - 19460 - INFO - Addic7ed using non-authenticated service. 2018-08-07 18:50:43,831 - 19460 - INFO - Listing subtitles with provider 'tvsubtitles' for video <Episode [u'Fresh Meat', 2x5]> with languages set([<Language [en]>]) 2018-08-07 18:50:44,134 - 19460 - INFO - Episode 5 not found 2018-08-07 18:50:44,135 - 19460 - INFO - Found 0 subtitle(s) on tvsubtitles 2018-08-07 18:50:44,135 - 19460 - INFO - Listing subtitles with provider 'addic7ed' for video <Episode [u'Fresh Meat', 2x5]> with languages set([<Language [en]>]) 2018-08-07 18:50:44,283 - 19460 - DEBUG - Searching subtitles {u'season': 2, u'show_id': 1835} 2018-08-07 18:50:44,967 - 19460 - INFO - Found 2 subtitle(s) on addic7ed 2018-08-07 18:50:44,967 - 19460 - DEBUG - Computed score 35 with matches set([u'series', u'episode', u'season']) 2018-08-07 18:50:44,968 - 19460 - DEBUG - Computed score 35 with matches set([u'series', u'episode', u'season']) 2018-08-07 18:50:44,968 - 19460 - INFO - Downloading subtitle <Addic7edSubtitle [en]> with score 35 into u'Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt' 2018-08-07 18:50:45,462 - 19460 - DEBUG - Download URL: http://www.addic7ed.com/updated/1/68609/0 2018-08-07 18:50:45,605 - 19460 - DEBUG - Expecting .srt: /media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt 2018-08-07 18:50:45,605 - 19460 - DEBUG - Potential .srt: /tmp/nzbget-david/srt/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt 2018-08-07 18:50:45,605 - 19460 - DEBUG - Expected not found, retrieving: /tmp/nzbget-david/srt/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt 2018-08-07 18:50:45,675 - 19460 - ERROR - Could not move Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt to /media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt 2018-08-07 18:50:45,675 - 19460 - DEBUG - move() exception: [Errno 38] Function not implemented: '/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt' 2018-08-07 18:50:45,676 - 19460 - DEBUG - Exiting with return code: 0
You're getting the same problem.
2018-08-07 18:50:45,675 - 19460 - DEBUG - move() exception: [Errno 38] Function not implemented: '/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E05 - Episode 5 HDTV-720p.srt'
Did you mount the /dev/shm partition (see my previous post)? What is the output of typing the command:
cat /etc/mtab
Yes I did add the dev/shm line to fstab and rebooted which would mount it I think. When I tried to use the mount command manually it required root which isn't installed. And thanks again for helping. david@david-desktop:~/Desktop/Sab-Scripts$ cat /etc/mtab /dev/sda1 / ext4 rw,errors=remount-ro 0 0 proc /proc proc rw,noexec,nosuid,nodev 0 0 sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0 none /sys/fs/cgroup tmpfs rw 0 0 none /sys/fs/fuse/connections fusectl rw 0 0 none /sys/kernel/debug debugfs rw 0 0 none /sys/kernel/security securityfs rw 0 0 udev /dev devtmpfs rw,mode=0755 0 0 devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0 tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0 none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0 none /run/shm tmpfs rw,nosuid,nodev 0 0 none /run/user tmpfs rw,noexec,nosuid,nodev,size=104857600,mode=0755 0 0 none /sys/fs/pstore pstore rw 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0 rpc_pipefs /run/rpc_pipefs rpc_pipefs rw 0 0 systemd /sys/fs/cgroup/systemd cgroup rw,noexec,nosuid,nodev,none,name=systemd 0 0 nfsd /proc/fs/nfsd nfsd rw 0 0 gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=david 0 0 /dev/sdb1 /media/david/My\040Book fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
/dev/sdb1 /media/david/My\040Book fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
The problem is still unfortunately related to the fuseblk (i presume your My Book is ntfs)? For some reason python can't execute 'move()' under the hood because of it's inability to recognize or handle the fuseblk partition type.
Another thing you could try to do is update your version of python and/or your ntfs drivers (ntfs-3g is probably the package name) . What OS are you using? Ubuntu v14 I'm guessing?
The pickle you're in unfortunately is directly tied to the support your system has for the USB drive you have :frowning_face: .
If you were to copy the movie onto your Linux partition and run the same command; it will probably work fine.
Yes it's Ubuntu v 14. The My Book is a 4 TB with exFAT version 1. Thank you very much for helping me with this.
Unfortunately there isn't a whole lot i can do since you're problem is related to your global system setup and what it supports. However, I just made a small change to the code base which will attempt to handle move() differently if it gets the specific error you're getting right now.
To test this, you need to download Subliminal from this link (which resides on a different branch).
No promises, but I'll be curious if it helps you out or not.
When the script is executed by Sab it doesn't work, but when I execute in the terminal by pointing to a specific episode, the srt file IS MOVED PROPERLY onto the USB hard drive even though it reports that it could not move it: 2018-08-11 08:10:20,907 - 4784 - DEBUG - Expected not found, retrieving: /tmp/nzbget-david/srt/Fresh Meat - S02E03 - Episode 3 HDTV-720p.srt 2018-08-11 08:10:20,928 - 4784 - ERROR - Could not move Fresh Meat - S02E03 - Episode 3 HDTV-720p.srt to /media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E03 - Episode 3 HDTV-720p.srt 2018-08-11 08:10:20,929 - 4784 - DEBUG - move() exception: [Errno 38] Function not implemented: '/media/david/My Book/TV/Fresh Meat/Season 2/Fresh Meat - S02E03 - Episode 3 HDTV-720p.srt' 2018-08-11 08:10:20,929 - 4784 - DEBUG - Exiting with return code: 0
That's strange... and you get this error using the link i provided? Make sure you remove your current copy nzb-subliminal and replace it with the copy from the custom link i shared (above).
The patch i provide shouldn't allow error 38 to happen at all. Regardless, I made one more small patch to it. Use the same link as above and give it one more try. Again, make sure to completely replace your current copy of nzb-submlinal with the one in the shared link.
Good luck! :)
Hi again. Since it works in the terminal despite the error, do you think you could help me get it working in Sabnzbd?
So I have more information on the problem. The problem is the filesystem is exfat. My ubuntu 14.04 has version 1.0.1 of exfat-fuse and the errors are known bugs within version 1.0.1 partly because exfat doesn't support all the permissions that linux supports. I understand that the newer versions have fixed it, but I am having a problem installing a newer version of exfat-fuse.
Hi; for sure i don't mind trying to help you resolve your issue. I'm not sure if you saw my last message? Basically i pushed one small update again; you need to download Subliminal from this link (not the normal master).
At this time we need to get it working from the command line first (without errors). I realize your focus is Sabnzbd; but it's much easier to debug from the command line. Once we nail that problem, we can work on SABnzbd.
Make sure you remove any traces of your old version so that you can pull in and replace it with this updated ver. Then run the script from the command line with the -D (--debug) and report.
I haven't heard back in a while; did you end up getting it to work another way? I can't help you unless any further until you grab the copy from the link i provided in the previous message and run it again with the --debug switch. It will show any additional debug information added that can help isolate your issue further.
I merged the changes made on a branch (#65) for your situation into the master branch for others who experience the same issue. The changes shouldn't causes to much additional overhead.
I'm going to close your ticket since i haven't heard back from you in a while. Feel free to reach out if you're still having difficulties.
Thanks for providing this wonderful script / wrapper for sabnzbd. It seems to work, except that it is unable to move the selected file into the folder with the video. Videos are kept in season folders. This is an ubuntu 14.04 installation and the destination drive is an external USB. Here is an example: 2018-08-01 13:58:39,691 - 4018 - ERROR - Could not move fresh_meat.1x05.720p_hdtv_x264-fov.en.srt to /media/david/My Book/TV/Fresh Meat.1x05.720p HDTV x264-FoV/fresh_meat.1x05.720p_hdtv_x264-fov.en.srt
Any assistance you could provide would be greatly appreciated. David