patrickdessalle/periscope — pull request #24 by fernandog (2013-08-03 16:36:05+00:00)
Title: [Opensubtitles] Option to search by show name, season and episode 

Changed the code of Opensubtitle so It can find tvshows using showname + season + episode. To filter the results, it compares the release group. If its the same, download it. Added debug.info so user can see this comparison result.

For example: subtitle groups is "SKGTV" but filename is "AFG".
I won't download.

I added a option to config to user can choose to use hash for tvshows or not. Added the initial values for config: user and pass blank and tvshowhash = no.

In my experience, hash its not a good way - don't show all results (subtitle exist but it cant find)

Using this regex. The last group is the release group (used to filter results)
(?P.*)S(?P[0-9]{2})E(?P[0-9]{2}).(?P[a-zA-Z0-9].*)-(?P.*)

It only searches by show name, season and episode if regex matches AND tvshowhash = yes. Otherwise use hash.