Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
MarcoTC
Subtitles Admin
Posts: 44
Joined: Sat Jun 13, 2015 5:15 am

iconv() downloads captcha

Thu Jul 23, 2015 2:47 am

Since I cannot find a way to download the with iconv() converted subtitles using the API, I'm using direct downloads (for example: http://dl.opensubtitles.org/en/download ... 1954602263).

After doing xx downloads, the IP ends up on the captcha block.
Is there a way to do this via the API?
If not, is there a way bypass the captcha by (for example) authorizing via username and password as parameters? (And then when reaching a download limit, an error response?)

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: iconv() downloads captcha

Thu Jul 23, 2015 7:49 am

from where you got that link ?

in SearchSubtitles() XMLRPC response is links like this even you are not logged in (empty username and password):

Code: Select all

[SubDownloadLink] => http://dl.opensubtitles.org/en/download/filead/src-api/vrf-ef3a1f1e6e/sid-f5d2c3grp3kle26jkt1m7b6et4/1954677189.gz [ZipDownloadLink] => http://dl.opensubtitles.org/en/download/subad/src-api/vrf-411f923197/sid-f5d2c3grp3kle26jkt1m7b6et4/6097361 [SubtitlesLink] => http://www.opensubtitles.org/en/subtitles/6097361/sid-f5d2c3grp3kle26jkt1m7b6et4/insurgent-ro
Then you can pass subencoding parameter into it, but dont delete any other parameter. Example:

Code: Select all

http://dl.opensubtitles.org/en/download/subencoding-utf8/filead/src-api/vrf-ef3a1f1e6e/sid-f5d2c3grp3kle26jkt1m7b6et4/1954677189 http://dl.opensubtitles.org/en/download/subencoding-utf8/filead/src-api/vrf-ef3a1f1e6e/sid-f5d2c3grp3kle26jkt1m7b6et4/1954677189.gz http://dl.opensubtitles.org/en/download/subformat-vtt/filead/src-api/vrf-ef3a1f1e6e/sid-f5d2c3grp3kle26jkt1m7b6et4/1954677189
for vtt format subencoding is always utf8. I will update trac. This functions are still in beta.

User avatar
SmallBrother
Site Admin
Posts: 3726
Joined: Sun Mar 04, 2012 12:59 pm
Location: Somewhere on this globe

Re: iconv() downloads captcha

Thu Jul 23, 2015 10:54 am

from where you got that link ?
I think from you on viewtopic.php?f=8&t=14992
;-)
Nowadays a VPN is a must for everyone. A VPN allows you safe surfing and protects you against spying governments and companies.
I advise AirVPN - from € 2,75 per month. Click the below banner for more info.


Image

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: iconv() downloads captcha

Thu Jul 23, 2015 11:34 am

ok got it. Well, it works, but then you will have CAPTCHA there, because it is "anonymous" link.

MarcoTC
Subtitles Admin
Posts: 44
Joined: Sat Jun 13, 2015 5:15 am

Re: iconv() downloads captcha

Thu Jul 23, 2015 8:20 pm

I understand. Excellent. Thank you.

MarcoTC
Subtitles Admin
Posts: 44
Joined: Sat Jun 13, 2015 5:15 am

Re: iconv() downloads captcha

Thu Aug 06, 2015 10:36 pm

Oss,

If I have a IDSubtitleFile, I use the DownloadSubtitles method. However, I cannot pass the encoding type with it.
Is it somehow still possible to generate a valid iconv() download link if I only have the IDSubtitleFile?

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: iconv() downloads captcha

Fri Aug 07, 2015 10:58 am

from API you got something like

[SubDownloadLink] => http://dl.opensubtitles.org/en/download ... 4677189.gz

so you have to convert this automatically to

http://dl.opensubtitles.org/en/download ... 1954677189

so after "download/" you have to add subencoding...

works for you ?

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 23 guests