command line mode on Mac OS X not working

Bug #904301 reported by Evil Clay
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SubDownloader
Confirmed
Undecided
Unassigned

Bug Description

EC:~ clay$ /Applications/SubDownloader.app/Contents/MacOS/SubDownloader -cli --video "/Volumes/Data/Torrents/The Simpsons 23x08.avi"
[16:12] INFO::subdownloader.cli.main # Scanning /Volumes/Data/Torrents/The Simpsons 23x08.avi ...
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]100% Time: 00:00:00
[16:12] INFO::subdownloader.cli.main # Videos found: 1 Subtitles found: 17
[16:12] INFO::subdownloader.cli.main # Looks like some of your videos might need subtitles :)
[16:12] INFO::subdownloader.cli.main # Starting subtitle search, please wait...
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]100% Time: 00:00:00
Traceback (most recent call last):
  File "/Applications/SubDownloader.app/Contents/Resources/__boot__.py", line 31, in <module>
    _run('run.py')
  File "/Applications/SubDownloader.app/Contents/Resources/__boot__.py", line 28, in _run
    execfile(path, globals(), globals())
  File "/Applications/SubDownloader.app/Contents/Resources/run.py", line 79, in <module>
    cli.start_session()
  File "cli/main.pyc", line 33, in start_session
  File "cli/main.pyc", line 219, in do_matching
  File "FileManagement/Subtitle.pyc", line 140, in AutoDetectLang
  File "languages/autodetect_lang.pyc", line 134, in __init__
ValueError: no language files found
2011-12-14 16:12:13.518 SubDownloader[82043:707] SubDownloader Error

the -l EN or --lang=EN makes no difference

Subdownloader 2.0.15, Mac OS X Lion 10.7.2

you probably need to rewrite this part in autodetect_lang.py and/or not use auto detect if language is specified:

if os.path.isdir(sys.path[0]): #for Linux is /program_folder/
            program_folder = sys.path[0]
        else: #for Windows is the /program_folder/run.py
            program_folder = os.path.dirname(sys.path[0])

Revision history for this message
Mario Oswaldo Gomes da Silva (marreco) wrote :

Have the same problem

Changed in subdownloader:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.