Any Updates on this issue?Allright, so, I prepared something you can try.Ahh, So apparently the Cloudflare is the issue. It is blocking me from downloading it. Just confirmed this with a dev on the VLC repository. He said nothing they can do, its on your end. Anything you can do to address the issue?Oh I got it
So, if you get the download prompt, it means the file is downloaded for the first time, coming from our server I control the headers, and can make it start downloading.
if the file has already been queried once, it'll be fetched by the cloudflare cache and just come up in your browser.
https://opensubtitles.stoplight.io/docs ... nload/post
add the parameter "force_download=1" when you request the download link, let me know if it solves your problem
Any Updates on this issue?Allright, so, I prepared something you can try.
Ahh, So apparently the Cloudflare is the issue. It is blocking me from downloading it. Just confirmed this with a dev on the VLC repository. He said nothing they can do, its on your end. Anything you can do to address the issue?
https://opensubtitles.stoplight.io/docs ... nload/post
add the parameter "force_download=1" when you request the download link, let me know if it solves your problem
we need a precise issue to investigateit is quite strange, because it works here, important thing is to always create fresh download. If possible try to send all REQUESTS and RESPONSE, so we can debug further.
Code: Select all
curl --request POST
--url 'https://api.opensubtitles.com/api/v1/download?file_id=4678812'
--header 'Api-Key: <<API-KEY>>'
--header 'Authorization: Bearer <<JWT>>'
Code: Select all
curl -i -X POST -H "Api-Key: [i]APIKEY[/i]" -H "Content-Type:application/json" -d "{\"file_id\": 5342665, \"sub_format\": \"srt\", \"file_name\": \"Subtitle\", \"in_fps\": 24, \"out_fps\": 24, \"timeshift\": 0, \"force_download\": true}" https://api.opensubtitles.com/api/v1/download
{"link":"https://www.opensubtitles.com/download/ ... age":"Your quota will be renewed in 19 hours and 32 minutes (2021-11-20 23:57:00 UTC) ","reset_time":"19 hours and 32 minutes","reset_time_utc":"2021-11-20T23:57:00.000Z"}
Code: Select all
curl https://www.opensubtitles.com/download/A931DC4AD225A6E3A6897646FA437DADB15463D31B2CBDACFC527C1EF26C4900661BBD68F44C0AA11E932AB0BE7499AE8ED70B365E38FC39F3AE50B4C83461BA1D160610E1C46DDBFD9A2E3B4B6FAEF8CC1C9570F09A6A7DC57A1F8734A989E993DD87E95BF3789BE9AE6CBCF10BC20BA1B502A76A596E153A9D770D125900C5246481062743C1633248796096645A958EF702B009CA40494BA1A5495CD4F7DA752321FB0BFCF60791D95E56FC72F6AAA76DB46FB34347BD90672ED08A1DFD9B1BD77BFA71D9CA13767891EC7F7603B768F024ECA645BDD017517B6E2130201FFDC19CE46793D471/subfile/Subtitle.srt --output D:\tmp\Subitle.srt
responsecurl --request POST \
--url 'https://api.opensubtitles.com/api/v1/do ... nload=true' \
--header 'Api-Key: xxx' \
--header 'Authorization: Bearer xxx' \
try to post just simple file_id parameter and nothing more (nothing else is really needed). let us know if it works for you now{
"link": "https://www.opensubtitles.com/download/ ... btitle.srt",
"file_name": "Subtitle.srt",
"requests": 10,
"remaining": 990,
"message": "Your quota will be renewed in 03 hours and 50 minutes (2021-11-21 16:31:32 UTC) ",
"reset_time": "03 hours and 50 minutes",
"reset_time_utc": "2021-11-21T16:31:32.000Z"
}
Code: Select all
curl --request POST \
--url https://api.opensubtitles.com/api/v1/download \
--header 'Api-Key: <<KEY>> \
--header 'Content-Type: application/json' \
--data '{
"file_id": 7098849,
"sub_format": "srt",
"file_name": "test",
"in_fps": 23.976,
"out_fps": 23.976,
"timeshift": 0,
"force_download": true
}'
Code: Select all
{
"link": "https://www.opensubtitles.com/download/A17D9F7D625D51F8B241555F81C7542B38E844EEFD1447D07B6CD7E57F5869A15C57DB9F236B22AF4670D23A40FECFC1EBAD926D19919919BBFEB7AC333D3C2E01AECB80D76E0412D3243CDB4CEE6F09062CC3B456D63D651C7C47066EC81017D6BD1C2C562EA6D13282DED172AA2F4124181ABB2AA3F55A41A70764D2D6116E691F4C7F903BE3731C24574B713697EC52951B08064EDCDCD282C34227A25F88635B5BEBA2ADE4C2E1DD14239ADD61FF5FCC0C04A11B69B321860D8D675ED08067DDE484D246E30EC7BF58E743505DECB0617DEBB803C89E1B4AB614E5A7D44F1A9BDA7529D3E19BA961885162E78E94473BAAD2DC6F6D8F095871897DA3D90D/subfile/test.srt",
"file_name": "test.srt",
"requests": 6,
"remaining": 94,
"message": "Your quota will be renewed in 23 hours and 00 minutes (2022-01-12 19:09:08 UTC) ",
"reset_time": "23 hours and 00 minutes",
"reset_time_utc": "2022-01-12T19:09:08.000Z"
}
Code: Select all
curl --request POST \
--url https://api.opensubtitles.com/api/v1/download \
--header 'Api-Key: <<token>>' \
--header 'Content-Type: application/json' \
--data '{
"file_id": 2391341,
"sub_format": "srt",
"file_name": "test",
"in_fps": 23.976,
"out_fps": 23.976,
"timeshift": 0,
"force_download": true
}'
Code: Select all
{
"link": "https://www.opensubtitles.com/download/3311ADCB033E7838E42D42790EE818250A8A4BA0A4DFD15AAD20BAC062C8DEC9E970736C7D2A50FD1F8C54E9639666557ADAA0793F8B5F5A97AF78670BE7BC354B6D9012A0337CD0FEF2DA0861C76EC9EC377D8E0D11B6907B578A973073AE0BE7B62AE80B29FFBEF203EE01677C0B132F0F632A766FFAC9966E68885F5F00939D69820CC3AABC77FA7430B973D8125D5616CD0C1BD75FE4CF30FBD43A993C653D2778CCC50036B15198C72AD152E839B7AC98CBDC994CE367E86C6E965C1CCB3668A9812DC2EABB93B97EEE54CD86000E279DF8434BAB798E6F924EF5DB34808487F699502829DE71C5F43E2962AF57B72128B5BAEE3AC261E89B5EFF5E6694/subfile/test.srt",
"file_name": "test.srt",
"requests": 12,
"remaining": 88,
"message": "Your quota will be renewed in 06 hours and 18 minutes (2022-01-12 19:09:07 UTC) ",
"reset_time": "06 hours and 18 minutes",
"reset_time_utc": "2022-01-12T19:09:07.000Z"
}
Code: Select all
--header 'Authorization: <<token>>' \
--header 'Api-Key: <<key>>' \
Code: Select all
-H "Authorization: Bearer <<ACCESS_TOKEN>>
Users browsing this forum: No registered users and 3 guests