Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
truTV giving ERROR: Unsupported URL #24102
Comments
|
So, did a little bit of exploring on this. It's maybe do-able, but you need an authentication token. When changing the regex in trutv.py, you'd want the regex to parse as series_slug = hot-ones-the-game-show The API link yielded by the extractor would be https://api.trutv.com/v2/web/series/clip/hot-ones-the-game-show/season-1/episode-1/beware-the-bucket Unfortunately, visiting it gives {"message":"Missing Authentication Token"} |
|
I was able to download videos on trutv at 1080p using the m3u8 method. You can download videos this way for now until it is fixed.
|
|
@nhlfarm does browser matter? I'm trying chrome and not having any luck. https://www.trutv.com/shows/tacoma-fd/season-1/episode-1/on-the-hot-seat-explicit |
|
@nhlfarm This does not work on videos with ads, it just grabs up to the first ad. (This is the same issue I ran into with my PR) |
|
@roadzy I don't think browser matters. I just tried downloading the tacoma fd episode and I was able to get the 'layer' link on both chrome and firefox: https://i.imgur.com/ef1LtB7.jpg After that, I just copied the link from chrome by right clicking -> Copy -> Copy link address. Then, I changed the two times 'layer3' appears into 'layer7' and executed it on youtube-dl: https://i.imgur.com/VkoKoRV.png |
|
@ThatNerdyPikachu I am able to download full episodes with the method I posted above. I have ublock origin on both chrome and firefox, and thought that maybe it was able to give a layer link that bypasses the ads when downloading with youtube-dl. But then I turned off ublock origin on chrome, then got the m3u8 layer link: https://i.imgur.com/t7Lkg8I.png |
|
@nhlfarm seems to work except, I keep getting this: Looks like its chopped into 3 sections on the page. The file it creates is only part 1 which is only 10 minutes. I know for Nick Jr/MTV, it downloads each part and I have a script that merges them as one file. |
|
@roadzy I got that error before too, and I believe it's because it's downloading the video using ffmpeg, which is the default HLS downloader. However, I was still able to download the episodes fully, although the fps was not maximized (i.e. 29.970000 fps). I would download and get the same errors you're getting (non-monotonous DTS), which would cause the videos to be like 28.84415 fps for example. The fix that worked for me (which should also work for you as well) was to choose the HLS downloader as HLS native instead. You just have to add "--hls-prefer-native" without the quotations into the command and you should download the video using HLS native, as seen in the example of my previous post. I didn't get any errors after doing this and was able to download them fully at 29.970000 fps all the time. |
|
@nhlfarm what are you doing to get the full 24 minutes? I'm only getting to the first ad break. Mine is like 10 minutes. I've tried multiple episodes. |
|
@roadzy I'm literally just doing the exact steps of what I posted above, and I'm able to get the full episodes. I haven't encountered the error that you and nerdypikachu are getting where only up to the first ad break is downloaded. I have all the full Adam Ruins Everything episodes downloaded and tried multiple episodes of tacoma pd and haven't downloaded any 10 minute ones; only the full episodes. Have you tried it with/without adblock or with a different browser, or updating youtube-dl and ffmpeg? I would try those and also try using the master link and downloading the 720p version and see if it downloads the full episode for you. |
|
@nhlfarm just curious... can you try this and see if you get the whole clip or just 12 minutes like i am?
|
|
@roadzy I just tried to execute that but got HTTP Error 403: Forbidden, probably because the session already expired since I am trying it 15 hours after you posted it. Instead, I downloaded and uploaded a random episode of tacoma, with screenshots of every step I did:
|
|
@nhlfarm I figured it out. The issue was with ffmpeg. When you ran --hls-prefer-native it would fail over to ffmpeg. From the first day I started using youtube-dl, it has always just used ffmpeg. I didn't know there was another option. So digging further, I found out I needed pycrypto to get the native to work. Once it switched to the native, 10 minute episode became 24 minute. Also I had the DTS issue with fox.com using ffmpeg and it fixed that too! What is it using to encode? Should I always be using hls-prefer-native ? Thanks for all your help! |
|
@roadzy For me, since I started using youtube-dl it has defaulted to using the native HLS downloader, which is what was always used to download videos for me, and I never got any problems. When trying to download from trutv is when I realized youtube-dl could also use ffmpeg to download videos, but I kept getting errors unlike with native HLS. It's weird that your youtube-dl defaults to using ffmpeg instead of native HLS, maybe it's an outdated version. But I'm glad to hear you got it working and are able to download the full episodes. When using the '--hls-prefer-native' I am not 100% sure of what it is using to encode, I just know that it's amazing and I will always use it over ffmpeg. So I just add '--hls-prefer-native' to all of commands now, and I recommend you do too, since you said your youtube-dl defaults to ffmpeg. |
I'll test my PR with the native HLS mode and report back. |
Checklist
Verbose log
Description
Error when trying to download from TruTV. It seems as if it defaults to the generic extractor instead of using the specific one. TBS seems to still work, which has the same player and URL structure.