Bouni / ard-mediathek

commandline download of ARD videos
MIT License
16 stars 3 forks source link

RuntimeError: The document id could not be found #24

Closed donfellone closed 5 years ago

donfellone commented 5 years ago

Hi,

I really like your project and wish it'd work for me, but i got an error, unfortunately:

python3 PATH/ard-mediathek.py "https://www.ardmediathek.de/ard/player/Y3JpZDovL3dkci5kZS9CZWl0cmFnLTk4ZDVjNDBlLWJkOTktNDg2YS05YTFiLTk2MGQ1M2UzNzNlZA/" --filename handball_test Traceback (most recent call last): File "/Users/Downloads/ard-mediathek-master/ard-mediathek.py", line 37, in main(sys.argv) File "/Users/Downloads/ard-mediathek-master/ard-mediathek.py", line 30, in main amd.download() File "/Users/Downloads/ard-mediathek-master/ard_media_downloader.py", line 50, in download video_url = self.get_video_url() File "/Users/Downloads/ard-mediathek-master/ard_media_downloader.py", line 79, in get_video_url raise RuntimeError("The document id could not be found.") RuntimeError: The document id could not be found.

Do you have any solution?

Thank you so much for your work!!

czhu commented 5 years ago

the url needs to be quoted like "url"

steffenschroeder commented 5 years ago

The URL does not contain a documentId, hence the video cannot be found. If you start with http://mediathek.daserste.de/ and search there, you'll get http://mediathek.daserste.de/Sportschau/Stark-am-Kreis-Spanien-in-Kleins-Gegner/Video?bcastId=53524&documentId=59625378 which should work for you.