If you use the PostProcess part of this script, you'll need to make sure you configure NZBDrone and CouchPotato to ignore .srt file types (otherwise it'll just remove them).Ayla wrote:After I have downloaded this script from github and placed it in NZBGet's Scripts folder, what changes do I need to make in NZBGet settings to make it work?
I would like it to download the subtitle, before Nzbdrone renames and moves the video file (also, I would like to set it up so that Nzbdrone moves the subtitle file as well).
I'm kind of surprised your losing your settings when you do a git pull. I don't lose them at all (i'm running CentOS 6.5); perhaps that makes a difference? I honestly don't like the idea of multiple configuration files, especially since they're handled so nicely in NZBGet. If you're worried about losing your settings, i think you can use the backup option that is built into the NZBGet GUI (in the configuration). Then you can do a restore afterwards.Ayla wrote:PS. Have you considered moving the settings to a file of it's own, so that when we do a git pull, the settings aren't overwritten?
Yes, sorry, I hadn't tested the script yet, I just saw that the settings was at the top of the .py file, so assumed they would be overwritten on updates.hugbug wrote:He doesn't loose the settings. The question was a wild shot
These are not the settings. That's a description of the settings, which NZBGet web interface uses when presenting the settings page.Ayla wrote:I just saw that the settings was at the top of the .py file
Ah, I didn't know that. Very cool that the settings are available in the web UI - thanks for the help!hugbug wrote:These are not the settings. That's a description of the settings, which NZBGet web interface uses when presenting the settings page.Ayla wrote:I just saw that the settings was at the top of the .py file
Don't edit the py-file. Instead open NZBGet settings page, you'll see a section for that script, change all settings there.
Code: Select all
/Users/martin/Library/Application Support/NZBGet/scripts/nzbget-subliminal/Subliminal.py
Code: Select all
*:00,*:30
Code: Select all
/Volumes/Promise/Movies, /Volumes/Promise/TV Shows
That's correct.Ayla wrote:It seems to work even though the script is in a subfolder in NZBGet's scripts folder, is that correct?
My full path is:Code: Select all
/Users/martin/Library/Application Support/NZBGet/scripts/nzbget-subliminal/Subliminal.py
If the logging (options InfoTarget, etc. in NZBGet) is active, each time a script is executed a line is added to the log, something like:Ayla wrote:Also, how can I confirm that the script is running/working?
Code: Select all
Executing script Subliminal.py
Code: Select all
ERROR Wed Aug 27 2014 11:30:04 Subliminal: Could not locate subtitle previously fetched!
INFO Wed Aug 27 2014 11:30:04 Subliminal: Matched 1 possible subtitle(s) for T.R.2014.720p.WEB-DL.x264-ETRG.mkv
INFO Wed Aug 27 2014 11:30:04 Subliminal: Found 0 subtitles
INFO Wed Aug 27 2014 11:30:04 Subliminal: Listing subtitles with provider 'opensubtitles' for video <Movie [u'The Rover', 2014]> with languages set([<Language [und]>])
INFO Wed Aug 27 2014 11:30:03 Subliminal: Downloading subtitle <PodnapisiSubtitle [en]> with score 30 into u'/Volumes/Promise/Movies/The Rover (2014)/T.R.2014.720p.WEB-DL.x264-ETRG.en.srt'
INFO Wed Aug 27 2014 11:30:03 Subliminal: Computed score 30 with matches set([u'year', u'video_codec', u'title', u'resolution', u'release_group'])
INFO Wed Aug 27 2014 11:30:03 Subliminal: Computed score 30 with matches set([u'year', u'video_codec', u'title', u'resolution', u'release_group'])
INFO Wed Aug 27 2014 11:30:03 Subliminal: Found 0 subtitles
INFO Wed Aug 27 2014 11:30:03 Subliminal: Listing subtitles with provider 'opensubtitles' for video <Movie [u'The Rover', 2014]> with languages set([<Language [en]>, <Language [da]>])
INFO Wed Aug 27 2014 11:30:03 Subliminal: Found 0 subtitles
INFO Wed Aug 27 2014 11:30:02 Subliminal: Listing subtitles with provider 'thesubdb' for video <Movie [u'The Rover', 2014]> with languages set([<Language [en]>])
INFO Wed Aug 27 2014 11:30:02 Subliminal: Found 2 subtitles
INFO Wed Aug 27 2014 11:30:01 Subliminal: Listing subtitles with provider 'podnapisi' for video <Movie [u'The Rover', 2014]> with languages set([<Language [en]>, <Language [da]>])
INFO Wed Aug 27 2014 11:30:01 Subliminal: Skipping provider 'tvsubtitles': no video to search for
INFO Wed Aug 27 2014 11:30:01 Subliminal: Skipping provider 'addic7ed': no video to search for
INFO Wed Aug 27 2014 11:30:01 Subliminal: Scanning video 'T.R.2014.720p.WEB-DL.x264-ETRG.mkv' in '/Volumes/Promise/Movies/The Rover (2014)'
INFO Wed Aug 27 2014 11:30:01 Subliminal: Skipping - Subtitles already exist for: T.R.2014.720p.WEB-DL.x264-ETRG
Really? So it downloads a rar file and just leaves it like that? Are you sure the download you fetched from UseNet isn't the one that came with the rar file containing subs?Ayla wrote:I can see that for some movies a .rar file was downloaded (inside was a .sub file).
Is there any way to avoid this?
Users browsing this forum: No registered users and 35 guests