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.87k stars 223 forks source link

LegendasDivx and legendas.tv - Problem downloading subtitles #1040

Closed khr0n closed 4 years ago

khr0n commented 4 years ago

Describe the bug LegendasDivx is not wotking, it keeps calling an error. Legendas.tv most of the times gives 404 error

To Reproduce Steps to reproduce the behavior:

  1. Enable LegedasDivx and Legendas.tv as a provider'
  2. Search for subtitles

Expected behavior Subtitles download

Screenshots 123

Throttling legendastv for 10 minutes, until 20/07/29 14:24, because of: HTTPError. Exception info: '404 Client Error: Not Found for url: http://legendas.tv/notfound' Throttling legendasdivx for 20 minutes, until 20/07/29 13:59, because of: ServiceUnavailable. Exception info: 'LegendasDivx.pt :: Uncaught error: %r'

Software (please complete the following information):

morpheus65535 commented 4 years ago

Legendas.tv is working properly for me. Can you provide a debug log while reproducing the search (reset providers throttling first).

I can't do nothing for LegendasDivx.pt as I don't have an account and registrations are closed.

khr0n commented 4 years ago

as requested i attached the log. as for legendasdivx i will try to get an account so you can check, but manually its working. previous version of bazarr was working.

bazarr.log

morpheus65535 commented 4 years ago

@josdion did you made changes to LegendasDivx?

khr0n commented 4 years ago

no. all settigs are the same. this only happened after the update of bazarr

morpheus65535 commented 4 years ago

@khr0n the question wasn't for you. :-P

Do you have lxml module installed? It's in requirements.txt and is required by Legendas.tv.

khr0n commented 4 years ago

@morpheus65535 , sorry for that. legendas.tv is working now, only legedasdivx not working

morpheus65535 commented 4 years ago

NP. We'll wait for @josdion feedback before going further in investigation.

morpheus65535 commented 4 years ago

@redglory I see that you've made some changes in May. Could it be causing issue? Can you confirm if it works for you?

josdion commented 4 years ago

@josdion did you made changes to LegendasDivx?

I don't think so. I've changed subdivx using some of the code from legendasdivx .

morpheus65535 commented 4 years ago

@josdion did you made changes to LegendasDivx?

I don't think so. I've changed subdivx using some of the code from legendasdivx .

Oh, ok perfect then. Thanks!

khr0n commented 4 years ago

new debug log. hope this helps solving the issue. bazarr.log

morpheus65535 commented 4 years ago

@redglory this one's for you! :-)

redglory commented 4 years ago

@redglory this one's for you! :-)

Ok I'll take a look :)

redglory commented 4 years ago

@khr0n what branch are you using?

@morpheus65535, it seems to be related to cloudscraper. This lib has been updated on past 2/3 weeks.

I'm using RetryingCFSession from libs/subliminal_patch/http.py which inherits from CloudScraper

@khr0n 's query got redirected (too much downloads ?!) and the culprit code was: ` # Check if Cloudflare anti-bot is on try: if self.isChallengeRequest(resp): if resp.request.method != 'GET':

Work around if the initial request is not a GET,

                # Supersede with a GET then re-request the original METHOD.
                CloudScraper.request(self, 'GET', resp.url)
                resp = ourSuper.request(method, url, *args, **kwargs)
            else:
                # Solve Challenge
                resp = self.sendChallengeResponse(resp, **kwargs)`
morpheus65535 commented 4 years ago

@redglory I've rolled back to previous version of CF libs as it was causing issues with other providers also.

@khr0n can you confirm if the issue is still there in latest dev branch?

khr0n commented 4 years ago

@morpheus65535 is there any way i can use (update) bazarr to run on dev branch on windows 10?

morpheus65535 commented 4 years ago

https://github.com/morpheus65535/bazarr/wiki/Installation#windows

morpheus65535 commented 4 years ago

@khr0n following our discussion on Discord, can I consider this one as fixed?

n0pe0n commented 4 years ago

I'm still having difficulties, still continue to make the same mistake as our friend @khr0n.

right now it's running on version 9.01 and the old one I had (v0.8.4.4) this provider worked perfect.

khr0n commented 4 years ago

Yes. its fixed for me in dev branch.

n0pe0n commented 4 years ago

here is also solved! v0.9.0.2 works well!