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

Subdivx not working #2714

Open santiagomartinez opened 1 month ago

santiagomartinez commented 1 month ago

Hi all! I just saw this issue: https://github.com/morpheus65535/bazarr/issues/2702 But in my case even after downloading tag v1.4.6-beta.2 I'm seeing in the logs:

2024-10-12 01:49:51|DEBUG   |subliminal_patch.providers.subdivx|Titles to look at: ['Requiem for a Dream', '夢之安魂曲', '梦的挽歌', '레퀴엠', 'Реквієм по мрії']|
2024-10-12 01:49:51|DEBUG   |urllib3.connectionpool          |https://www.subdivx.com:443 "GET /inc/gt.php?gt=1 HTTP/1.1" 200 None|
2024-10-12 01:49:51|DEBUG   |subliminal_patch.providers.subdivx|Query: Requiem for a Dream|
2024-10-12 01:49:51|DEBUG   |urllib3.connectionpool          |https://www.subdivx.com:443 "POST /inc/ajax.php HTTP/1.1" 200 None|
2024-10-12 01:49:51|DEBUG   |subliminal_patch.providers.subdivx|JSONDecodeError: b''|
2024-10-12 01:49:51|DEBUG   |urllib3.connectionpool          |https://www.subdivx.com:443 "GET /inc/gt.php?gt=1 HTTP/1.1" 200 None|
2024-10-12 01:49:51|DEBUG   |subliminal_patch.providers.subdivx|Query: Requiem for a Dream (2000)|
2024-10-12 01:49:51|DEBUG   |urllib3.connectionpool          |https://www.subdivx.com:443 "POST /inc/ajax.php HTTP/1.1" 200 None|
2024-10-12 01:49:51|DEBUG   |subliminal_patch.providers.subdivx|JSONDecodeError: b''|

Can anyone please confirm it is still working and it is on my side or it is not working again?

Thank you very much!

morpheus65535 commented 1 month ago

Could it be a temporary bug (returning an empty response) since it seems to work for other users now? Let me know.

santiagomartinez commented 1 month ago

It seems to be down right now. I'll let you know with new tests results after it returns. Thanks!

santiagomartinez commented 1 month ago

Disregard the following, Bazarr is working now. Probably I was screwing something in the curls. Thanks!


It seems to be returning empty. I tested it with curl. I don't understand why because I compare it to the request payload seen in the browser where it works ok and both payloads match. I'm probably missing something

Token: curl -X GET "https://subdivx.com/inc/gt.php?gt=1" -H "Content-Type: application/json"

Search:

curl -X POST "https://subdivx.com/inc/ajax.php" \
-H "Content-Type: application/json" \
-d '{"tabla": "resultados", "filtros": "", "buscar395a": "inside out", "token": "<TOKEN_VALUE>"}'
morpheus65535 commented 1 month ago

Could it be that they implemented Cloudflare protection?

alvarochvz commented 1 month ago

image

Apparently?

morpheus65535 commented 4 weeks ago

I can confirm they've implemented Cloudflare protection. I won't fight against them. If someone's interested, I'll accept a PR.

alvarochvz commented 4 weeks ago

Is this worth looking into? https://trash-guides.info/Prowlarr/prowlarr-setup-flaresolverr/

I have never used it honestly i am not sure how well it will playout with bazarr 🤔

Is it even worth looking into?

morpheus65535 commented 4 weeks ago

I've already tried to implement it without success but it may worth trying again.

pombocaesar commented 2 weeks ago

None of the other providers for Spanish are working correctly, it would be greatly appreciated if you could fix this one. Cheers

LanusFac commented 1 week ago

I’m having the same problem here. Bazarr just stopped working out of the blue when using SubDivx.

Has anyone managed to find the answer?

morpheus65535 commented 1 week ago

I’m having the same problem here. Bazarr just stopped working out of the blue when using SubDivx.

Has anyone managed to find the answer?

There's no fix.

pombocaesar commented 1 week ago

I’m having the same problem here. Bazarr just stopped working out of the blue when using SubDivx. Has anyone managed to find the answer?

There's no fix.

A couple weeks ago you mentioned trying without luck and it would probably worth another shot (I assume after this issue gaining popularity). Does your last message mean you already retried and couldn't or that you are certain through some new information that it definitely can't be achieved?

anderson-oki commented 1 week ago

@pombocaesar

Putting in simple words, the provider implemented protection against non-humans to prevent automation. You can't simply bypass that. And we respect that they are protecting against robots.

morpheus65535 commented 1 week ago

I agree with @anderson-oki. To better answer your question, I haven't retried and I din't have time to implement such feature for now.

anderson-oki commented 1 week ago

Just in case someone wants to invest time, i did a very quick check, and it seems that subdivx is not using the subliminal_patch http session that uses cloudscraper and it is simply using the requests.

One could try the luck with cloudscraper.

morpheus65535 commented 1 week ago

Just in case someone wants to invest time, i did a very quick check, and it seems that subdivx is not using the subliminal_patch http session that uses cloudscraper and it is simply using the requests.

One could try the luck with cloudscraper.

I tried with no luck.

dvillaseca commented 15 hours ago

Hi, after doing some testing, they are using the most basic detection with cloudflare on the get token request, if you use the cloudscraper library it can by bypassed but it's tricky, only the get token and ajax request should be done with cloudscraper and not the rest besides the new throttling they added