abbi031892 / periscope

Automatically exported from code.google.com/p/periscope
0 stars 0 forks source link

Missing language in the config file of Podnapisi: pb -- Brazilian portuguese #138

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. periscope name -l pb

What is the expected output? What do you see instead?

WARNING:periscope.plugins.SubtitleDatabase:Ooops, you found a missing language 
in the config file of Podnapisi: pb. Send a bug report to have it added.
INFO:periscope.periscope:Searching on TheSubDB 
WARNING:periscope.plugins.SubtitleDatabase:Ooops, you found a missing language 
in the config file of OpenSubtitles: pb. Send a bug report to have it added.
ERROR:periscope.plugins.SubtitleDatabase:Error occured
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/periscope-0.2.4-py2.7.egg/periscope/plugins/SubtitleDatabase.py", line 44, in searchInThread
    subs = self.process(filename, langs)
  File "/usr/local/lib/python2.7/site-packages/periscope-0.2.4-py2.7.egg/periscope/plugins/OpenSubtitles.py", line 96, in process
    return self.query(moviehash=filehash, langs=langs, bytesize=size, filename=fname)
  File "/usr/local/lib/python2.7/site-packages/periscope-0.2.4-py2.7.egg/periscope/plugins/OpenSubtitles.py", line 126, in query
    if langs: search['sublanguageid'] = ",".join([self.getLanguage(lang) for lang in langs])
TypeError: sequence item 0: expected string, NoneType found
INFO:periscope.periscope:Searching on BierDopje 
INFO:periscope.periscope:Searching on SubsWiki 
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
WARNING:periscope.plugins.SubtitleDatabase:Ooops, you found a missing language 
in the config file of Podnapisi: pb. Send a bug report to have it added.
INFO:periscope.plugins.SubtitleDatabase:Podnapisi writing 0 items to queue
INFO:__main__:**************************************************
INFO:__main__:Downloaded 0 subtitles
INFO:__main__:**************************************************

What version of the product are you using? On what operating system?
Linux opensuse 12.2.
periscope --version
0.2.4

Please provide any additional information below.

Original issue reported on code.google.com by marcelo....@gmail.com on 26 Oct 2012 at 4:30

GoogleCodeExporter commented 8 years ago

Original comment by patrick....@gmail.com on 3 Nov 2012 at 8:31

GoogleCodeExporter commented 8 years ago
The correct value for Brazilian Portuguese is pt_br

Original comment by patrick....@gmail.com on 24 Feb 2013 at 12:13