Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subtitle support #158

Open
tknorris opened this issue Aug 7, 2014 · 4 comments
Open

Add subtitle support #158

tknorris opened this issue Aug 7, 2014 · 4 comments

Comments

@tknorris
Copy link
Contributor

tknorris commented Aug 7, 2014

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
Copy link
Contributor Author

tknorris commented Aug 7, 2014

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
Copy link
Contributor Author

tknorris commented Aug 7, 2014

showID can be pulled for main page quick search.

regex:

option\s+value="(\d+)"\s*>(.*?) *\(*(\d{4})?\)?</option

@tknorris
Copy link
Contributor Author

tknorris commented Aug 7, 2014

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

No UA checking present

@tknorris
Copy link
Contributor Author

Prototype of this in the 2.6.0 branch in my repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant