What steps will reproduce the problem?
#!/bin/sh
echo Filename to process. $1
echo Original filename... $2
echo Show TVDB id........ $3
echo Season number....... $4
echo Episode number...... $5
echo Episode air date.... $6
echo ... will now pass the search info to periscope to snatch a subtitle
/usr/local/bin/periscope "$1" -l fr -l en --force
What is the expected output? What do you see instead?
Loading config from /sickbeard/autoProcessTV/autoProcessTV.cfg
Opening URL:
http://localhost:8081/home/postprocess/processEpisode?nzbName=Glee.S03E14.BDRip.
XviD-DEMAND.nzb&quiet=1&dir=%2Fmedia%2Fbdc64bfe-e36f-4af8-b550-e6fd2dfaa507%2FDo
wnload%2FSeries%2FGlee.S03E14.BDRip.XviD-DEMAND
Processing folder
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND
Processing
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.avi (Glee.S03E14.BDRip.XviD-DEMAND.nzb)
Found result in history: (83610, 3, [])
Parsed Glee.S03E14.BDRip.XviD-DEMAND.nzb into Glee - S3E14 - BDRip.XviD
(DEMAND) [ABD: False]
Checking scene exceptions for a match on Glee
Looking up Glee in the DB
Lookup successful, using tvdb id 83610
Loading show object for tvdb_id 83610
Retrieving episode object for 3x14
The old status had a quality in it, using that: SD DVD
SB snatched this episode so I'm marking it as priority
Is ep a priority download: True
There is no existing file so there's no worries about replacing it
This download is marked a priority download so I'm going to replace an existing
file if I find one
Found release name Glee.S03E14.BDRip.XviD-DEMAND
Destination folder for this episode:
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee
Copying file from
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.avi to
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.avi
Copying file from
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.nfo to
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.nfo-orig
Copying file from
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.sfv to
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.sfv
Copying file from
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.srr to
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.srr
Copying file from
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.jpg to
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.jpg
Executing command ['/sickbeard/searchSubs.sh',
u'/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On
My Way.avi',
u'/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.
XviD-DEMAND/glee.s03e14.bdrip.xvid-demand.avi', '83610', '3', '14',
'2012-02-21']
Absolute path to script: /sickbeard/searchSubs.sh
Script result: Filename to process.
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.avi
Original filename...
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.avi
Show TVDB id........ 83610
Season number....... 3
Episode number...... 14
Episode air date.... 2012-02-21
... will now pass the search info to periscope to snatch a subtitle
INFO:periscope.periscope:Searching subtitles for
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/TV_Shows/Glee/Glee - S03E14 - On My
Way.avi with langs ['fr', 'en']
INFO:periscope.periscope:Searching on OpenSubtitles
INFO:periscope.periscope:Searching on Subtitulos
INFO:periscope.periscope:Searching on Podnapisi
INFO:periscope.periscope:Searching on TheSubDB
INFO:periscope.periscope:Searching on BierDopje
INFO:periscope.periscope:Searching on SubsWiki
ERROR:periscope.plugins.BierDopje:Error raised by plugin
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/periscope-0.2.4-py2.6.egg/periscope/plugins/BierDopje.py", line 69, in process
subs = self.query(fname, langs)
File "/usr/local/lib/python2.6/dist-packages/periscope-0.2.4-py2.6.egg/periscope/plugins/BierDopje.py", line 113, in query
page = urllib2.urlopen(getShowId_url)
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Please use a proper User-Agent to use the API. For
more information see:
http://www.bierdopje.com/forum/algemeen-developers/topic/10004-Useragents-verpli
cht-per-9-April-2012-/last
INFO:periscope.plugins.SubtitleDatabase:BierDopje writing 0 items to queue
INFO:periscope.plugins.SubtitleDatabase:SubsWiki writing 0 items to queue
INFO:periscope.plugins.SubtitleDatabase:TheSubDB writing 0 items to queue
INFO:periscope.plugins.SubtitleDatabase:OpenSubtitles writing 0 items to queue
INFO:periscope.plugins.SubtitleDatabase:Subtitulos writing 0 items to queue
INFO:periscope.plugins.SubtitleDatabase:Podnapisi writing 0 items to queue
INFO:__main__:**************************************************
INFO:__main__:Downloaded 0 subtitles
INFO:__main__:**************************************************
Processing succeeded for
/media/bdc64bfe-e36f-4af8-b550-e6fd2dfaa507/Download/Series/Glee.S03E14.BDRip.Xv
iD-DEMAND/glee.s03e14.bdrip.xvid-demand.avi
What version of the product are you using? On what operating system?
0.2.4
Please provide any additional information below.
The script is executed on my NAS over debian squeeze. After the end of the
download, SABnzbd rename the file and move it into my TV shows folder and then
periscope in launched.
But no subtitles are found....
Original issue reported on code.google.com by nicolas....@gmail.com on 24 Nov 2012 at 4:39
Original issue reported on code.google.com by
nicolas....@gmail.com
on 24 Nov 2012 at 4:39