ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.43k stars 9.96k forks source link

MotorTrend On Demand #25580

Open Veritas413 opened 4 years ago

Veritas413 commented 4 years ago

Checklist

Example URLs

Description

Used to be able to download just fine from https://www.motortrendondemand.com/ - looks like they changed something to break it, or changed their backend hosting.\ Tried with login and cookies, which used to work, but now it doesn't. Found a closed request from last year (https://github.com/ytdl-org/youtube-dl/issues/23317) but the solution doesn't seem to work anymore, and the video IDs from the URL changed format. In addition, it looks like they're now requiring logins. I can provide to someone working on the issue, if they don't want to sign up for a free trial that requires a CC.

ualnwe commented 4 years ago

Seems they've switched from a Kaltura backend to Discovery's own backend: disco/dplay?

Should be able to adapt an existing disco/dplay extractor to work, and it seems the auth/token flow is similar too.

cjwil commented 4 years ago

I'm not sure how helpful this is to devs but hopefully it will be a helpful workaround until its fixed.

In Firefox if you open the inspect element on a video and switch to the network tab, you may have to refresh the page but sort the information by type and find the one that says dash in the type column. Then copy that file's url and paste that into youtube-dl and it should work. I've tested it a few times and a couple videos and it seems to be working like the old way did.

Veritas413 commented 4 years ago

I'm not sure how helpful this is to devs but hopefully it will be a helpful workaround until its fixed.

In Firefox if you open the inspect element on a video and switch to the network tab, you may have to refresh the page but sort the information by type and find the one that says dash in the type column. Then copy that file's url and paste that into youtube-dl and it should work. I've tested it a few times and a couple videos and it seems to be working like the old way did.

Nice! That appears to be a sufficient workaround! It's a pain, but it's better than nothing.

cjwil commented 4 years ago

Adding to this again because it seems they've made more changes. If when searching for the URL in the inspector, the file name is only "Master.mpd" and the URL contains "&KeyName=primary&Signature" you must put the URL in quotes for youtube-dl or the & symbols mess with the URL

dgcurtis commented 3 years ago

Also, if you want the subtitles/captions, you can search for "Mastercaption". Make sure you enable CC in the video. If you right-click and get the curl link, you can paste that into your shell and redirect the output to a vtt file. Then you can merge the video and vtt with ffmpeg.

JamesRokas commented 3 years ago

Hey i know this is an old thread, but does anybody have a suggestion on parameters to use for any motortrend content so it keeps the file names?

cjwil commented 3 years ago

I'm not sure if it's possible to do that with youtube-dl due to the way that MotorTrend serves their videos but I use Sonarr for that.

JamesRokas commented 3 years ago

Yeah i just kind of gave up and i’ve been naming them all myself and grabbing them one by one. it takes a while but worth it i guess. i’ll look into sonar though! i’ve heard really good things about it but haven’t had the time to get into it

cjwil commented 3 years ago

You do have the option of copy and pasting the name into the terminal as well like youtube-dl -o "NAME" "URL" however symbols like exclamation points can mess this up

JamesRokas commented 3 years ago

most of them do have exclamation marks in the name so i’ll just keep doing what i’m doing hahaha. thank you though. i really appreciate it!

xxtensazenxx commented 2 years ago

Sorry to re-open this thread but downloading the .mpd file does not work anymore, it just downloads the ad. Anyone have this working still in 2022?

Veritas413 commented 2 years ago

Still working for me. Firefox, CTRL+Shift+I, Network tab, refresh page, start video, pause video. Sort by type or filter to find an octet-stream called master.mpd - right click, copy URL Paste into youtube-dl or yt-dlp, using [-o "WhateverYouWantTheVideoToBeCalled.mp4"]

dgcurtis commented 2 years ago

Yeah, still works here too. I keep hoping the extractor gets fixed but since it's been a few years, it's not looking hopeful.