morpheus65535 / bazarr

Bazarr is a companion application to Sonarr and Radarr. It manages and downloads subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.
https://www.bazarr.media
GNU General Public License v3.0
2.84k stars 221 forks source link

Titrari provider HTTPError #2709

Open ciotorcristian opened 1 week ago

ciotorcristian commented 1 week ago

Describe the bug

Titrari provider is failing with the following error message:

Using titrari again after 10 minutes, (disabled because: HTTPError) | 2024-10-09 10:32:35 |     Throttling titrari for 10 minutes, until 24/10/09 09:38, because of: HTTPError. Exception info: "'404 Client Error: Not Found for url: https://www.titrari.ro/?page=maicauta&z7=&z2' ~ titrari.py@150" | 2024-10-09 09:28:41 |     Using titrari again after 10 minutes, (disabled because: HTTPError) | 2024-10-09 09:20:42 |     Throttling titrari for 10 minutes, until 24/10/09 03:39, because of: HTTPError. Exception info: "'404 Client Error: Not Found for url: https://www.titrari.ro/?page=maicauta&z7=&z2' ~ titrari.py@150" | 2024-10-09 03:29:14

If further info are needed please tell me and i will try to gather it.

To Reproduce Steps to reproduce the behavior:

  1. Try to download any subtitle in romanian
  2. Receive the above errors

Expected behavior Titrari provider to not throw errors.

Software (please complete the following information): Bazarr Version 1.4.5 Package Version v1.4.5-ls271 by linuxserver.io Sonarr Version 4.0.9.2244 Radarr Version 5.11.0.9244 Operating System Linux-6.1.0-25-amd64-x86_64-with

morpheus65535 commented 1 week ago

The provided url is working as expected. It's either a temporary issue or something on your side. About 2k subtitles get downloaded from this provider daily.

ciotorcristian commented 1 week ago

I tried to narrow the problem down. I have started the upgrade already downloaded subtitles task and after ~100 requests, the errors appear again. When i go to the URL in the error i get the following message: Too many requests. Fuck off!

It seems that the site is refusing any more requests because too many were sent in a short period of time. Is there anything that bazzar can to to prevent this?

morpheus65535 commented 5 days ago

I can properly throttle this provider when they return a 404 with that content. Since they do not send rate-limiting headers, I can't slow down since they do not give me any hint when I should.