Closed bekopharm closed 1 year ago
We have no GraphQL request for type "sammlung" yet. I'm working on it.
I see. Downloading from e.g. https://www.ardaudiothek.de/sendung/wdr-5-kinderhoerspiel/36244846/
worked just fine 👍
So many stories for our TonUINO|s :100:
I have fixed the error and the script can download a "sammlung" now. But you will only get the first episode of the collection. The parent of an episode is a broadcast but they might be only structured with "1 of 3" in the title. So its not possible right now to fully download a "sammlung". I tried to download also the parent broadcast but that is A LOT because it would download everything not the selected titles from "sammlung".
I will try to match "sammlung" also by title in the future. :)
Rev: b357f987185004b355de890f1d0cf0f09a275fee / master
Having the same error:
python audiothek.py --url 'https://www.ardaudiothek.de/sendung/cixin-liu-trisolaris-trilogie-sci-fi-hoerspiel-serie-wdr/13220399/'
Traceback (most recent call last):
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 105, in <module>
main(url, folder)
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 12, in main
downloadEpisodes(id, folder)
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 51, in downloadEpisodes
image_url = node.get("image").get("url")
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
But the example here from @bekopharm
I see. Downloading from e.g.
https://www.ardaudiothek.de/sendung/wdr-5-kinderhoerspiel/36244846/
worked just fine 👍
does also throw the error:
python3 audiothek.py --url "https://www.ardaudiothek.de/sendung/wdr-5-kinderhoerspiel/36244846/"
Traceback (most recent call last):
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 105, in <module>
main(url, folder)
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 12, in main
downloadEpisodes(id, folder)
File "/Users/WS/Documents/tools/audiothek-downloader/audiothek.py", line 51, in downloadEpisodes
image_url = node.get("image").get("url")
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
Am I using something fundamentally wrong? Or has something changed in the data structure?
DownloadURL was missing in this case but i added a workaround for this. Please update to the newest version.
DownloadURL was missing in this case but i added a workaround for this. Please update to the newest version.
Works now. Thanks!
rev:
be4ade0d4c821f4b2cbad8ec72f7684799d3dc44
cmd:
python3 audiothek.py --url 'https://www.ardaudiothek.de/sammlung/zeit-zum-hoeren-geschichten-in-xxl/12456677/'