GithubHelp home page GithubHelp logo

Add subtitles support about tvshows HOT 7 OPEN

victorpimentel avatar victorpimentel commented on September 25, 2024
Add subtitles support

from tvshows.

Comments (7)

lardissone avatar lardissone commented on September 25, 2024

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

from tvshows.

aricore avatar aricore commented on September 25, 2024

I would also like to see this feature!

from tvshows.

SergD avatar SergD commented on September 25, 2024

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.

from tvshows.

eduo avatar eduo commented on September 25, 2024

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).

from tvshows.

victorpimentel avatar victorpimentel commented on September 25, 2024

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.

from tvshows.

lardissone avatar lardissone commented on September 25, 2024

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 <
[email protected]>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:
#3 (comment)

from tvshows.

fcoury avatar fcoury commented on September 25, 2024

πŸ‘

from tvshows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.