emericg / OpenSubtitlesDownload

Automatically find and download the right subtitles for your favorite videos!
https://emeric.io/OpenSubtitlesDownload
GNU General Public License v3.0
595 stars 66 forks source link

Failure after downloading a number of subtitles #16

Closed ghost closed 9 years ago

ghost commented 9 years ago

error is: gzip: stdin: not in gzip format Cannot write to '-' (Broken pipe).

I changed gunzip to gunzip -f and found that the file it downloaded is "you are not logged-in. Sorry, maximum download count for IP: xxxx to download"

edtsz commented 9 years ago

opensubtitles.org has a limit of connections in a day. Did it work again?

emericg commented 9 years ago

Yes you may have hit the download limit, I need to investigate what is the file sent on this case. I though the initial connection would fail with the "maximum download count" error (which is a documentated error code) so no download would start...

ghost commented 9 years ago

Yes, the reason why download failed is that I hit the limit of opensubtitles.org and it will work again after 24 hours. But there is no "maximum download count" error instead of the error I mentioned. The file I get after I tried "gunzip -f" is actually a srt file that matches the name of the video, but the content of the srt file is actually html text complaining that my ip hit the limit.

edtsz commented 9 years ago

@yielder if you read the code, you'll see 2 ou 3 times about this error, but, probably, your connection didn't match the same status code to show you the correct error.