dbr / tvnamer

Automatic TV episode file renamer, uses data from thetvdb.com via tvdb_api
https://pypi.python.org/pypi/tvnamer/
The Unlicense
912 stars 115 forks source link

Error with www.thetvdb.com: Could not connect to server: HTTP Error 404: Not Found #87

Closed luivit closed 10 years ago

luivit commented 10 years ago

From a week tvnamer can not connect to tvdb.

tvnamer --verbose --config=/home/pippo/mytvnamerconfig.json /home/pippo/Scrivania/Downloads/ Loading config: /home/pippo/mytvnamerconfig.json Starting tvnamer Found 1 episode Processing file: misfits.s05x05.mp4 Detected series: False (season: 5, episode: 5) 2013-11-24 11:33:12,930 - tvdb_api - DEBUG - Configured language en override show language of en 2013-11-24 11:33:12,930 - tvdb_api - DEBUG - Getting all series data for False 2013-11-24 11:33:12,931 - tvdb_api - DEBUG - Retrieving URL http://thetvdb.com/api/0629B785CE550C8D/series/False/en.xml Skipping file due to error: Error with www.thetvdb.com: Could not connect to server: HTTP Error 404: Not Found

lahwaacz commented 10 years ago

The url http://thetvdb.com/api/0629B785CE550C8D/series/False/en.xml is obviously wrong, there should be '124051' instead of 'False'. Could you post your config file?

dbr commented 10 years ago

Yep, strange, most likely something wonky in the config (maybe the series_id option?)

Works for me:

$ touch 'misfits.s05x05.mp4'
$ tvnamer misfits.s05x05.mp4
INFO - tvnamer started
# Found 1 episode
####################
# Processing file: misfits.s05x05.mp4
# Detected series: misfits (season: 0, episode: 5)
TVDB Search Results:
1 -> Misfits [en] # http://thetvdb.com/?tab=series&id=124051&lid=7 (default)
2 -> Misfits [nl] # http://thetvdb.com/?tab=series&id=124051&lid=13
3 -> Misfits [de] # http://thetvdb.com/?tab=series&id=124051&lid=14
4 -> Misfits [it] # http://thetvdb.com/?tab=series&id=124051&lid=15
5 -> Misfits [es] # http://thetvdb.com/?tab=series&id=124051&lid=16
6 -> Misfits [fr] # http://thetvdb.com/?tab=series&id=124051&lid=17
Enter choice (first number, return for default, 'all', ? for help):
1
Old path: /Users/dbr/code/tvnamer
New path: .
Final filename: Misfits - [00x05] - Simon's Films - Not Aquaman.mp4
####################
Move file?
([y]/n/a/q)
luivit commented 10 years ago

I recreated the config file. And now it works. Strange though, I did not edit that file for many months. Ok, thank you anyway, and sorry for the "false alarm".

thezoggy commented 10 years ago

to point out.. the wrong season was detected...

# Processing file: misfits.s05x05.mp4
# Detected series: misfits (season: 0, episode: 5)

should be season 5 not 0.