Page 1 of 1

Adding More Subtitle Providers

Posted: 09 Jul 2016, 09:02
by viking
I wonder if it would be possible to add more subtitle providers [in addition to opensubtitles.org]?
Sometimes, I cannot find a particular subtitle on subtitle.org, but I may find it elsewhere, e.g. addic7ed.com.
I believe that they have an API: https://www.npmjs.com/package/addic7ed-api

There may also be other (even better?) providers with API

Re: Adding More Subtitle Providers

Posted: 09 Jul 2016, 11:24
by rednoah
addic7ed doesn't have an API and FileBot doesn't do page scrapers. If addic7ed developers wanted 3rd party programs to access their stuff, they'd have an open API.

Re: Adding More Subtitle Providers

Posted: 09 Jul 2016, 16:15
by viking
OK. What is the "API" shown here https://www.npmjs.com/package/addic7ed-api?

Re: Adding More Subtitle Providers

Posted: 09 Jul 2016, 17:00
by rednoah
That's just code that scrapes the HTML page, and provides an "API" so other people don't have to deal with it. When I refer to "API" I mean a web service meant to be used by 3rd party programs. A HTML page is not that.

PS: they make money from ads on page views, so there's a reason these sites want you to go there yourself ;)

Re: Adding More Subtitle Providers

Posted: 01 Sep 2016, 05:19
by viking
http://thesubdb.com/
This one seems really good and they have an API (with hash search).
Opensubtitles.org doesn't always have my subtitles, and I then turn to this site. Would be great if they could be added to FileBot.

Re: Adding More Subtitle Providers

Posted: 02 Sep 2016, 02:06
by rednoah
I'll look into it. The API should be sound, but last time i checked a few years ago i rarely got any results.

Re: Adding More Subtitle Providers

Posted: 17 Sep 2016, 16:22
by Theabim
Can you also add https://subscene.com

Re: Adding More Subtitle Providers

Posted: 17 Sep 2016, 16:53
by rednoah
Theabim wrote:Can you also add https://subscene.com
subscene.com most certainly would not agree with that, legally speaking. Also, there's no API.

Re: Adding More Subtitle Providers

Posted: 17 Sep 2016, 17:01
by Theabim
Ok thanks anyway

Re: Adding More Subtitle Providers

Posted: 21 Nov 2016, 05:48
by viking
I am often forced to manually look up subtitles on subscene because they are not available on opensubtitles :(
How about this API:
https://github.com/mamins1376/Subscene-API
(https://pypi.python.org/pypi/subscene-api/)
Would that work? Would it download subtitles?

Re: Adding More Subtitle Providers

Posted: 21 Nov 2016, 06:42
by rednoah
Yes, but it wouldn't be strictly legal.
Subscene wrote:4.2.3 No Unauthorized Copying, Broadcasting or Screen Scraping.
Also, FileBot hasn't done any screen scraping for a long time, and I prefer keeping it that way.

Re: Adding More Subtitle Providers

Posted: 21 Nov 2016, 10:06
by viking
Is the github API doing screen scraping?

If it does, then isn't the scraping already done by the API, so FileBot wouldn't actually do any scraping?

Re: Adding More Subtitle Providers

Posted: 21 Nov 2016, 21:18
by rednoah
Still violates the Terms of Service. Still breaks whenever the website changes. So not gonna happen.

Besides, it's a Python API so writing my own scraper (or resurrecting the old FileBot Subscene scraper from years ago) would probably be easier than to include a Python runtime just to use that API.

Feel free to contact Subscene and ask them to make a web service for 3rd party programs.

Re: Adding More Subtitle Providers

Posted: 21 Nov 2016, 21:41
by viking
rednoah wrote:Feel free to contact Subscene and ask them to make a web service for 3rd party programs.
It has been asked, but they said that they were "too busy" to write an API (and this was in April 2009 :roll: )
http://v2.subscene.com/forums/p/43717/488790.aspx