dbr / tvnamer

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

Marvel's Agents of Shield #145

Closed AlbertoAIG closed 6 years ago

AlbertoAIG commented 6 years ago

Marvel's Agent of Shield is not rename without human intervention. Tvnamer show:

Processing file: Marvels.Agents.of.S.H.I.E.L.D.S05E17.720p.HDTV.x264-AVS[eztv].mkv

Detected series: Marvels Agents of S H I E L D (season: 5, episode: 17)

Skipping file due to error: Show Marvels Agents of S H I E L D not found on www.thetvdb.com

But with human intervention:

Processing file: Marvels.Agents.of.S.H.I.E.L.D.S05E17.720p.HDTV.x264-AVS[eztv].mkv.mkv

Detected series: Marvels Agents of S H I E L D (season: 5, episode: 17)

ShowNotFound(u'Show Marvels Agents of S H I E L D not found on www.thetvdb.com',) #################### Old filename: Marvels.Agents.of.S.H.I.E.L.D.S05E17.720p.HDTV.x264-AVS[eztv].mkv.mkv New filename: Marvels Agents of S H I E L D 5x17.mkv Rename? ([y]/n/a/q) y

internetpopular commented 6 years ago

The issue is the removal of periods. Add these replacements to your .tvnamer.json file.

"input_series_replacements": {"Marvel's Agents of S H I E L D": "Marvel's Agents of S.H.I.E.L.D.", "Marvels Agents of S H I E L D": "Marvel's Agents of S.H.I.E.L.D."} ,

aidanjt commented 6 years ago

And if you're using the movefiles* stuff and you have Windows clients browsing/copying from your destination directory, don't forget to have a fullpath_replacements, otherwise the directory name will get mangled by Samba, since Windows is such a precious princess about directories that end in a dot:

"move_files_fullpath_replacements": [ { "is_regex": true, "match": "Marvel's Agents of S.H.I.E.L.D./", "replacement": "Marvel's Agents of S.H.I.E.L.D/" } ],

About the series replacement, I use this myself:

"input_series_replacements": { "Marvel*s Agents of S*": 263365 },

The number is the series id of the show on thetvdb.

dbr commented 6 years ago

Yep, thank you both - the input_series_replacements is the best way to deal with this for now as far as I'm aware. Closing