SubSync icon indicating copy to clipboard operation
SubSync copied to clipboard

OpenSubtitles API-limit reached

Open Zumzod opened this issue 5 years ago • 1 comments

Just upgraded from 1.4 to 1.6.2 and ran the script for my movies and series and it worked great. The problem is that for all my series it seems like I have reached the limit for how many subtitles it can download. If I play a clip the subtitle says In order to continue you have to login for the whole movie..

I created an account at OpenSubtitles and entered the info in Opensubtitles.auth-file but I got the same "error". Did some research and it seems like there is a limit on 100 Subtitles per 24 hours and 1000 if you pay for VIP.

I'm wondering if its possible to see if the API-returns that you have reached the limit and not download the file. Right now it downloaded 100's of 1kb .srt-files that said that I have to login.

If anyone else had the same problem here is a batch script that will remove all .srt-files that are smaller than 200kb in this folder and all subfolders.

@echo off
setlocal
for /f  "usebackq delims=;" %%A in (`dir /s /b *.srt`) do If %%~zA LSS 200 del "%%A"
pause

Zumzod avatar Feb 14 '20 07:02 Zumzod

Thanks for reporting it! I havnt worked on the project now for a while. But I will look into it as soon as I get some time on my hands :)

zerratar avatar Feb 14 '20 15:02 zerratar