Open victorpimentel opened 13 years ago
I vote for this issue.
For Spanish language the leading subtitles website is: subdivx.com, there's not an official API, but I've seen another project fetching subs from there: https://github.com/rha7dotcom/subdivx
Also: opensutitles.org and subtitulos.es
I would also like to see this feature!
Well, I would rather go for opensubtitles.org since it got an API for this kind of issues (used in Boxee for example) In Subtitulos.es as well as in Addic7ed.com I think they use the WikiSubtitles code which has a great classification for episodes and shows but mess up everything with the .srt files (database numbers and different folders instead of names). In the case of Subtitulos.es there is a guideline, I imagine that addic7ed has one too. So… this is what I figured out.
http://www.subtitulos.es/updated/*language code_/_number of the episode*/0 (The last figure only varies when there are different versions of the episode (like HD, Rips…) and the number has no relation with the type of episode, it's based on the upload time).
Well, the episode number it's also quite random and based on the creation of the chapter in the database. The language code is clear as follows: 1 = English 4 = Neutral Spanish (Only for old subtitles) 5 = Spanish (Spain) 6 = Spanish (Latin)
But if I could chose, my preferred source of subs would be Tusseries.com. Clearly the implementation will be a mess because of the need of login, the topics. The only idea I can come up with is caching all the titles of the attached files and discriminating them in base of the name of the file (they are correctly named)
http://www.tusseries.com/index.php?act=attach&type=post&id=***** (random 5 numbers code)
Anyway, just giving ideas, I would like to help more but my programming abilities are limited to the "Hello World". Of course I wouldn't miss the opportunity to thank you for the awesome work and also because of reviving the Ember-Code dead project we all love. Really, thanks.
One option is to have TVShows search for subs directly. This would involve TVS2 actively polling for data periodically indefinitively.
OpenSubtitles has an API, subs for multiple releases and search both by moviehash and name.
The problem with this approach is that, by necessity, the amount of work TVS2 needs to do at each iteration becomes larger and larger. The less common the language the bigger the amount of subtitles to be searched at each point.
This also goes against TVS2's philosophy of being pushed what it needs. Currently TVS2 "subscribes" to what it needs, but the burden of providing the actual content is on third parties. By actively polling subtitle sites this is reversed (and may not be recommended by the websites themselves, especially those without an API).
A second option would be to be able to "subscribe" to subtitles for series in the same way subscriptions exist for the videos. This service doesn't exist yet but it can be built with existing sources and with the agreement of the involved subtitle sites. Such a service could provide a private API key to tvshows for subtitle feeds (containing all or specific languages) and TVShows would download the subs as they appear, in the same way the videos are currently downloaded. A simple preference set in TVShows would dictate whether to get subs and in what language(s).
We will probably go with the "easiest" option at this point, to search for subtitles when the download is finished. If there are no new subtitles, then the app should poll until the subtitle is downloaded.
Of course polling every 30 minutes is a waste of time, so it would seem that a "exponential" time interval could be used: the first time the app waits 30 minutes, the next one hour, two hours, four hours, twelve hours, a day, etc... If after several days (a week or so) it is not found, then it gives up.
I think the exponential time approach should be different. Because it's probably that subtitles get released hours later, not immediately after torrent is released. I'm pretty sure most of the shows' subtitles (in foreign languages at least) aren't released within the first 30 mins (plus download time, 20-30 mins?).
On Fri, Aug 19, 2011 at 9:29 AM, victorpimentel < reply@reply.github.com>wrote:
We will probably go with the "easiest" option at this point, to search for subtitles when the download is finished. If there are no new subtitles, then the app should poll until the subtitle is downloaded.
Of course polling every 30 minutes is a waste of time, so it would seem that a "exponential" time interval could be used: the first time the app waits 30 minutes, the next one hour, two hours, four hours, twelve hours, a day, etc... If after several days (a week or so) it is not found, then it gives up.
Reply to this email directly or view it on GitHub: https://github.com/victorpimentel/TVShows/issues/3#issuecomment-1850524
:+1:
Add support for automatic downloading of subtitles.