acomputerguru / periscope

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

spaces mess up tvshowregex #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. most common rename of tvshows breaks periscope
2. renamed shows to showname - 1x12.avi 
3. periscope searches for a show named showname%20- without season/episode
4. when trimming showName = showName[:-2] it searches for correct show and 
season but episode 1 instead of 12
5. spaces in filename mess up tvshowregex

What is the expected output? What do you see instead?
expected (with trim):
DEBUG:root:Looking for subs @ 
http://api.bierdopje.com/23459DC262C0A742/GetAllSubsFor/3733/7/12/en

instead:
DEBUG:root:Looking for subs @ 
http://api.bierdopje.com/23459DC262C0A742/GetAllSubsFor/3733/7/1/en

What version of the product are you using? On what operating system?
most recent (svn checkout on 14th of jan)

Please provide any additional information below.
Let periscope download all found subs, save them with suffix quality (sdtv, 
sd-dvd, hdtv etc) 
With the above problem the only way subs will be found is from opensubtitles 
(based on hash). All other providers search for showname%20-. 

Original issue reported on code.google.com by marsj...@gmail.com on 15 Jan 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Sickbeard has a regexes.py which parses all possible namings. periscope could 
use the same system to parse the filenames it gets for a tvshowregexp. 

Original comment by marsj...@gmail.com on 15 Jan 2011 at 9:42

Attachments: