manojmj92 / subtitle-downloader

Python script to automatically download subtitles for any movie/tv series episode.
GNU General Public License v3.0
780 stars 238 forks source link

Script is broken #6

Closed alagu closed 10 years ago

alagu commented 10 years ago

Hey there,

Looks like the script is broken - it keeps throwing 404.

python /Users/alagu/bin/Subtitle_Downloader.py /Users/alagu/Movies/Swades/Swades1.avi                   
Traceback (most recent call last):
  File "/Users/alagu/bin/Subtitle_Downloader.py", line 49, in <module>
    sub_downloader(path)
  File "/Users/alagu/bin/Subtitle_Downloader.py", line 44, in sub_downloader
    response = urllib2.urlopen(req).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
manojmj92 commented 10 years ago

Hey this is because you are trying to get a subtitle which probably doesnt exist in database.

I see that you are trying to get sub for a hindi movie. The tool is mainly aimed for english movies. Can you try with some english movie and tell me if the problem persists? It works fine for me now.

Regards,

Manoj

On Sun, Oct 12, 2014 at 11:45 AM, Alagu notifications@github.com wrote:

Hey there,

Looks like the script is broken - it keeps throwing 404.

python /Users/alagu/bin/Subtitle_Downloader.py /Users/alagu/Movies/Swades/Swades1.avi Traceback (most recent call last): File "/Users/alagu/bin/Subtitle_Downloader.py", line 49, in sub_downloader(path) File "/Users/alagu/bin/Subtitle_Downloader.py", line 44, in sub_downloader response = urllib2.urlopen(req).read() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(_args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found

— Reply to this email directly or view it on GitHub https://github.com/manojmj92/subtitle-downloader/issues/6.

Regards,

Manoj M J www.manojmj.com

alagu commented 10 years ago

Thanks @manojmj92 - looks like you were right. It is for a hindi movie. Will try on an English movie.