bstrdsmkr / 1Channel

1Channel.ch plugin for XBMC
http://expandedmedia.org/XBMCHUB/phpBB3/viewforum.php?f=31
92 stars 59 forks source link

Add subtitle support #158

Open tknorris opened 10 years ago

tknorris commented 10 years ago

Automatically locate subtitles for episodes from addic7ed.com Show user what epsiodes have subtitles available and which don't. (Label format? Overlay?) Download subtitles of a given language on request Add option to not add to library until subtitles are available?

tknorris commented 10 years ago

Season ajax page: "http://www.addic7ed.com/ajax_loadShow.php?show=&season=&langs=&hd=&hi=

show = showID season = season langs=lang codes (blank = all) hd=1/0 for hd only hi=1/0 hearing impaired

cell = ✔ when present; empty when not

sub regex:

<td>(\d+)</td><td>(\d+)</td><td>.*?</td><td>(.*?)</td><td.*?>(.+?)</td>.*?<td.*?>(.+?)</td><td.*?>(.*?)</td><td.*?>(.*?)</td><td.*?>(.*?)</td><td.*?><a\s+href=\"(.*?)\">.+?</td>
tknorris commented 10 years ago

showID can be pulled for main page quick search.

regex:

option\s+value="(\d+)"\s*>(.*?) *\(*(\d{4})?\)?</option
tknorris commented 10 years ago

srt download does referer check to ensure "http://www.addic7ed.com/" is in the string

No UA checking present

tknorris commented 10 years ago

Prototype of this in the 2.6.0 branch in my repo.