Adding More Subtitle Providers

All your suggestions, requests and ideas for future development
Post Reply
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Adding More Subtitle Providers

Post 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
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Adding More Subtitle Providers

Post by viking »

OK. What is the "API" shown here https://www.npmjs.com/package/addic7ed-api?
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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 ;)
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Adding More Subtitle Providers

Post 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.
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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.
:idea: Please read the FAQ and How to Request Help.
Theabim
Posts: 5
Joined: 17 Sep 2016, 15:46

Re: Adding More Subtitle Providers

Post by Theabim »

Can you also add https://subscene.com
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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.
:idea: Please read the FAQ and How to Request Help.
Theabim
Posts: 5
Joined: 17 Sep 2016, 15:46

Re: Adding More Subtitle Providers

Post by Theabim »

Ok thanks anyway
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Adding More Subtitle Providers

Post 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?
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Adding More Subtitle Providers

Post 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?
User avatar
rednoah
The Source
Posts: 23932
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding More Subtitle Providers

Post 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.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: Adding More Subtitle Providers

Post 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
Post Reply