RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.21k stars 1.03k forks source link

ARD-Mediathek Bridge failed with error 404 #4170

Closed FH3095 closed 1 month ago

FH3095 commented 1 month ago

Hello,

currently the ARD-Mediathek is failing for me. I sadly have no idea, what changed.

HttpException: https://api.ardmediathek.de/page-gateway/widgets/ard/asset/Y3JpZDovL3dkci5kZS9oYWxsb3RpZXJoZWlt/?pageSize=29 resulted in 404 Not Found in lib/http.php line 26

index.php(72): RssBridge->main()
lib/RssBridge.php(103): DisplayAction->execute()
actions/DisplayAction.php(65): DisplayAction->createResponse()
actions/DisplayAction.php(114): ARDMediathekBridge->collectData()
bridges/ARDMediathekBridge.php(76): getContents()
lib/contents.php(112): HttpException::fromResponse()
lib/http.php(26)

Query string: action=display&bridge=ARDMediathekBridge&token=XXX&path=Y3JpZDovL3dkci5kZS9oYWxsb3RpZXJoZWlt&format=Atom
Version: 2024-02-02 (git.master.955fb6f)
Os: Linux
PHP version: 8.2.20

Greetings FH

dvikan commented 1 month ago

@yue-dongchen @Mar-Koeh

404

dvikan commented 1 month ago

is it possible this particular show has been deleted? @FH3095

FH3095 commented 1 month ago

It's not deleted, it's this one: https://www.ardmediathek.de/serie/hallo-tierheim/staffel-1/Y3JpZDovL3dkci5kZS9oYWxsb3RpZXJoZWlt/1 I also get the same error message for 5 other shows (Including Tagesschau and the default-show with the url https://www.ardmediathek.de/sendung/45-min/Y3JpZDovL25kci5kZS8xMzkx/ ). Sadly, the API for the ARD is not open to the public, so I can't lookup what the correct API call would be.

yue-dongchen commented 1 month ago

Thanks for the ping. I probably can't help and my name should consequently be removed as "maintainer". I don't use RSS-Bridge anymore, and my original commit creating this bridge did not use the API.

Mar-Koeh commented 1 month ago

Hi @FH3095

Thank you for your detailed report! We can do this together.

I sadly have no idea, what changed.

If I open the URL in the error message in a browser windows, I get a 404 https://api.ardmediathek.de/page-gateway/widgets/ard/asset/Y3JpZDovL3dkci5kZS9oYWxsb3RpZXJoZWlt/?pageSize=29

If I open the default URL https://www.ardmediathek.de/sendung/45-min/Y3JpZDovL25kci5kZS8xMzkx , it is using this API URL:

https://api.ardmediathek.de/page-gateway/widgets/ard/asset/Y3JpZDovL25kci5kZS8xMzkx?pageNumber=1&pageSize=12

This URL does open in a browser. There are two differences, I notice. The parameters are different, and the trailing slash disappeared. Let's start by removing the trailing slash:

https://api.ardmediathek.de/page-gateway/widgets/ard/asset/Y3JpZDovL3dkci5kZS9oYWxsb3RpZXJoZWlt?pageSize=29

This URL does open in the browser. Awesome! So removing the trailing slash might help.

After carefully inspecting the code and the API's JSON, we can tell that nothing changed. However, the title attribute hasn't been used so far. Besides that, removing the trailing slash in the API URL fixes it.

Mar-Koeh commented 1 month ago

There's a pull request. https://github.com/RSS-Bridge/rss-bridge/pull/4172

dvikan commented 1 month ago

fixed thanks

FH3095 commented 1 month ago

Thank you for your help!