Good afternoon, I wanted to download the stream from:
https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1
I get a mpd link, but it is the advertisement, but nothing regarding the video. I tried checking the network tab, but I didn't see anything strange except a long list of dash links that end with "master-video=1234567-12345.dash" or "master-audio=1234567-12345.dash"
If you could help me downloading this show, thank you a lot.
+ Reply to Thread
Results 1 to 7 of 7
-
-
Code:
N_m3u8DL-RE "https://dplus-it-prod-vod.akamaized.net/ssai/dep4-c1/v1/playlist/dash/2acd5b40-cd64-48ee-a25a-b2d4f37488fa/hdntl=exp=1677229745~acl=/ssai/dep4-c1/v1/playlist/dash/2acd5b40-cd64-48ee-a25a-b2d4f37488fa/*~data=hdntl~hmac=7d9e52f748c240c676cfb31b51a83037fff7e136f6d9feed81d0f2d3dae64d07/60e9ca1f-6907-5b86-b6e3-3eb5f5cec1b7.mpd?correlationId=dngTqFawM7&ctx=CghkcGx1c19pdBIxVVNFUklEOmRwbGF5OmNjM2NmODk2LWVkNDYtNDM2My1hY2Q1LWYwY2YxZTZhMGRjMxokMDAwZDBiMzQtZWFiYy00MzY2LWExMDYtYTBkNzU4NzVkYTM0IiQyYWNkNWI0MC1jZDY0LTQ4ZWUtYTI1YS1iMmQ0ZjM3NDg4ZmEqJDYwZTljYTFmLTY5MDctNWI4Ni1iNmUzLTNlYjVmNWNlYzFiNzIOMTUxLjM2LjE1Mi4xMjk6b01vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS8xMDkuMC4wLjAgU2FmYXJpLzUzNy4zNkILCLHa3J8GEN3jm1RIA1IkNjQ0MDA3YWUtZWZjNy01MWQ5LWJiNmQtMTA2MDYwYmI1ZmEw"
[Attachment 69392 - Click to enlarge] -
Discovery+ is directly supported by yt-dlp, so you can use the regular URL without messing around:
Code:yt-dlp -F "https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1" [DiscoveryPlusItaly] Extracting URL: https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1 [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading token [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading JSON metadata [DiscoveryPlusItaly] 1917793: Downloading JSON metadata [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading MPD manifest [info] Available formats for 1917793: ID EXT RESOLUTION FPS │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── dash-thumb733300502 mhtml unknown │ mhtml │ images DASH storyboards (jpeg) dash-audio_ita=125000 m4a audio only │ ~ 57.66MiB 125k dash │ audio only mp4a.40.2 125k 48k [it] DASH audio, m4a_dash dash-video=139000 mp4 416x234 25 │ ~ 64.12MiB 139k dash │ avc1.4D400C 139k video only DASH video, mp4_dash dash-video=267000 mp4 640x360 25 │ ~123.17MiB 267k dash │ avc1.4D4016 267k video only DASH video, mp4_dash dash-video=508000 mp4 960x540 25 │ ~234.34MiB 508k dash │ avc1.4D401F 508k video only DASH video, mp4_dash dash-video=932000 mp4 1280x720 25 │ ~429.94MiB 932k dash │ avc1.4D401F 932k video only DASH video, mp4_dash dash-video=1804000 mp4 1280x720 25 │ ~832.19MiB 1804k dash │ avc1.4D401F 1804k video only DASH video, mp4_dash dash-video=3280000 mp4 1920x1080 25 │ ~ 1.48GiB 3280k dash │ avc1.4D4028 3280k video only DASH video, mp4_dash dash-video=6124000 mp4 1920x1080 25 │ ~ 2.76GiB 6124k dash │ avc1.4D4028 6124k video only DASH video, mp4_dash
-
Discovery+ is a subscription based streaming site, which we are not supposed to discuss. However, some shows appear to be "free" and the UK channels are mainly free-to-air (like Quest and Really) so I guess we can continue.
d+ has indeed recently changed. I'm currently working on suitable script for myself. Yes, it is L3 encrypted and getting the key is relatively straight forward.
As you've discovered, using straight forward yt-dlp --allow-u will give you one advert (albeit in glorious 1080p lol).
It's similar in someways to STV encrypted, in that there's a ton of adverts to download (which are unencrypted) and the main video is usually split into 3 or 4 chunks (encrypted). If you use this (as a start) you can download the 1080p streams and m4a audio:
Code:os.system(f'yt-dlp --allow-u -f all[height=1080] -o encryptVid.%(format_id)s.%(ext)s -N 6 "{mpd_url}"') os.system(f'yt-dlp --allow-u -f all[vcodec=none][ext=m4a] -o encryptAud.%(format_id)s.%(ext)s -N 6 "{mpd_url}"')
Code:for filename in os.listdir(): if filename.endswith('.m4a') and (os.path.getsize(filename) < 2000000): os.remove(filename) if filename.endswith('.mp4') and (os.path.getsize(filename) < 50000000): os.remove(filename)
Then you're left with the "true" (none advert) streams. Some shows have different bitrates for audio and/or video (so you will need to remove the lower spec'd ones), most shows are split over 3-4 files so after decryption they will need joining together.
It's that last sentence I'm just working on at the moment: to automate it so that the script caters for all d+ downloads.
ADDENDUM: I now notice that the OP was talking about the Italian d+. I live in the UK, so I'm looking at the UK d+. I'm assuming both use similar techniques.Last edited by deccavox; 25th Feb 2023 at 07:12.
-
At present Discovery Italy uses a different layout. And as mentioned above yt-dlp has a specific extractor for the service
https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/discovery.py
And n-m3u8dl-re works with no issues on the service.
Similar Threads
-
Need help to download videos
By Superfil in forum Video Streaming DownloadingReplies: 48Last Post: 18th Sep 2024, 11:56 -
Help download with VIX Free
By axnspain in forum Video Streaming DownloadingReplies: 14Last Post: 18th Sep 2022, 14:32 -
How to download the subtitles from Discoveryplus?
By notion in forum SubtitleReplies: 6Last Post: 27th May 2022, 10:08 -
Can't download videos
By Daveridge in forum Newbie / General discussionsReplies: 6Last Post: 4th Dec 2021, 15:12 -
U2 concert for free download help please
By olli66 in forum Video Streaming DownloadingReplies: 4Last Post: 31st Oct 2020, 00:52