abbi031892 / periscope

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

Bierdopje plugin not wokring #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Traceback (most recent call last):
  File "/volume1/@appstore/periscope/periscope/downloadSub.py", line 25, in <module>
    subtitle1 = subdl.downloadSubtitle(filepath, ['en'])    # English
  File "/volume1/@appstore/periscope/periscope/periscope.py", line 176, in downloadSubtitle
    subtitles = self.listSubtitles(filename, langs)
  File "/volume1/@appstore/periscope/periscope/periscope.py", line 136, in listSubtitles
    plugin = getattr(plugins, name)()
  File "/volume1/@appstore/periscope/periscope/plugins/BierDopje.py", line 65, in __init__
    self.showid_cache = os.path.join(bd.xdg_config_home, "periscope", "bierdopje_showid.cache")
NameError: global name 'bd' is not defined

The BierDopje plugin is not working.
I am using SVN revision 133.

Original issue reported on code.google.com by jeroen.v...@gmail.com on 30 Apr 2011 at 12:27

GoogleCodeExporter commented 8 years ago
BierDopje in SVN is currently being reworked. The previous API key has been 
blocked due to high traffic. We're working on it in order to make it acceptable 
for BierDopje by implementing cache.

Original comment by patrick....@gmail.com on 30 Apr 2011 at 1:32

GoogleCodeExporter commented 8 years ago
Seems also related to the xdg implementation. The path reference doesn't work 
on my Synology device.

After changing this line in BierDopje.py and changing my API key, it worked 
fine:

        self.showid_cache = os.path.join("/volume1/@appstore/periscope", "periscope", "bierdopje_showid.cache")

Original comment by Aart.Wes...@gmail.com on 9 May 2011 at 4:18

GoogleCodeExporter commented 8 years ago
Also in revision 134 I still get simular errors.

Original comment by pvenp...@gmail.com on 11 May 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Same errors here, a fresh svn checkout:

Traceback (most recent call last):
  File "C:\Python27\Scripts\periscope", line 5, in <module>
    pkg_resources.run_script('periscope==dev', 'periscope')
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 489, in run_script
  File "build\bdist.win-amd64\egg\pkg_resources.py", line 1214, in run_script
  File "C:\Python27\lib\site-packages\periscope-dev-py2.7.egg\EGG-INFO\scripts\p
eriscope", line 115, in <module>

  File "C:\Python27\lib\site-packages\periscope-dev-py2.7.egg\EGG-INFO\scripts\p
eriscope", line 79, in main

  File "build\bdist.win-amd64\egg\periscope\periscope.py", line 176, in download
Subtitle
  File "build\bdist.win-amd64\egg\periscope\periscope.py", line 136, in listSubt
itles
  File "build\bdist.win-amd64\egg\periscope\plugins\BierDopje.py", line 59, in _
_init__
NameError: global name 'bd' is not defined

Original comment by zinu.to...@gmail.com on 11 May 2011 at 9:12

GoogleCodeExporter commented 8 years ago
sudo apt-get install python-xdg en hij doet t weer

Original comment by k...@koensadza.nl on 11 May 2011 at 9:59

GoogleCodeExporter commented 8 years ago
Now a fix for Windows...

Original comment by zinu.to...@gmail.com on 12 May 2011 at 9:33

GoogleCodeExporter commented 8 years ago
Issue 95 has been merged into this issue.

Original comment by patrick....@gmail.com on 18 May 2011 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by patrick....@gmail.com on 18 May 2011 at 9:09

GoogleCodeExporter commented 8 years ago
Too bad, no ipkg python-xdg for Syno NAS. How can I fix this manually?

Original comment by mjvbarne...@gmail.com on 18 May 2011 at 3:35

GoogleCodeExporter commented 8 years ago
Update to the latest.

If you don't have a Freedesktop compatible env, use the option --cache-folder 
on the command line and point to a folder that will stay between reboot (like 
/home/<your_user>/.config/periscope)

./periscope -l en --cache-folder /home/my_user/.config/periscope <my_video_file>

Original comment by patrick....@gmail.com on 20 May 2011 at 5:17

GoogleCodeExporter commented 8 years ago
Issue 99 has been merged into this issue.

Original comment by patrick....@gmail.com on 20 May 2011 at 5:18

GoogleCodeExporter commented 8 years ago
0.2.4 should generate a folder if none is given.

This should (i hope) fix all your issues.

Can someone confirm that 0.2.4 works ?

Original comment by patrick....@gmail.com on 29 May 2011 at 3:10

GoogleCodeExporter commented 8 years ago
Got it working!

Original comment by jeroen.v...@gmail.com on 1 Jul 2011 at 9:57