Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download from freedomplatform.tv ? #31312

Open
abrogard opened this issue Oct 27, 2022 · 8 comments
Open

How to download from freedomplatform.tv ? #31312

abrogard opened this issue Oct 27, 2022 · 8 comments
Labels
incomplete site-support-request Add extractor(s) for a new domain

Comments

@abrogard
Copy link

Checklist

  • [x ] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE
I apologise if I shouldn't be here because perhaps it's for developers or programmers or like that?

I'm a long time youtubedl user is all and I want to get this stuff about covid and vaccines and whatnot that people like Kennedy want us to have. But circumstances seem to have forced them into the arms of professional marketers who block downloading and so on..
Anyway, I find I can't download this: 'unsupported URL' and I'd appreciate any help anyone can give:

https://freedomplatform.tv/the-real-anthony-fauci-the-movie/?utm_source=ActiveCampaign&utm_medium=email&utm_content=No+one+told+you+the+dark+truth+of+the+pandemic&utm_campaign=fauci_2028&vgo_ee=cX8ncKBFRCTUpAhuVS9TTYvy7T5YEJ8ohjC9vauJg30%3D

@dirkf
Copy link
Contributor

dirkf commented Oct 27, 2022

I apologise if I shouldn't be here because perhaps it's for developers or programmers or like that?

As a yt-dl user, you're quite welcome to suggest new sites and there's even a template that you should have used.

To assist you with the immediate problem, as well as anyone who might create extractors for the site involved, I've had a look at the page.

The page uses zealstream.com to play the videos.

You can use your browser's View Source function to find the player links (2) like https://playerv2.zealstream.com/i?v=6oaru8o4qd5yk8d1.

Take the value of the v parameter (6oaru8o4qd5yk8d1 in the first case) and form a URL for the player JSON using the value in the name part of the last path component: https://assets.player.zealstream.com/vid/6oaru8o4qd5yk8d1.json

This JSON contains links to the m3u8 manifest with the various formats of the video and to the VTT subtitles. You can use yt-dl to fetch some version of the video from the manifest:

$ youtube-dl -v -F 'https://vod01-ycjetns7kv.zmnet.net/ycjetns7kv/pub/e34006e7-3c12-4120-8d91-ddd3f415e403/master.m3u8' --referer 'https://playerv2.zealstream.com/i?v=6oaru8o4qd5yk8d1'
[debug] System config: ['--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://vod01-ycjetns7kv.zmnet.net/ycjetns7kv/pub/e34006e7-3c12-4120-8d91-ddd3f415e403/master.m3u8', '--referer', 'https://playerv2.zealstream.com/i?v=6oaru8o4qd5yk8d1']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.5.2 (CPython) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[generic] master: Requesting header
[generic] master: Downloading m3u8 information
[info] Available formats for master:
format code  extension  resolution note
350          mp4        320x180     350k , avc1.64001e, mp4a.40.2
800          mp4        640x360     800k , avc1.64001e, mp4a.40.2
1000         mp4        854x480    1000k , avc1.64001e, mp4a.40.2
3000         mp4        1280x720   3000k , avc1.64001e, mp4a.40.2
5000         mp4        1920x1080  5000k , avc1.64001e, mp4a.40.2 (best)
$ 

You have to cause the Referer (sic) header to be set as in the command-line above to match the player URL, here, and when fetching the player JSON. In the latter case, navigate to the JSON URL from the respective player URL, or use wget or curl on the command line with the appropriate options.

@abrogard
Copy link
Author

abrogard commented Oct 27, 2022 via email

@dirkf
Copy link
Contributor

dirkf commented Oct 28, 2022

To summarise:

  1. get the player URLs from the page
  2. for each player URL extract the video ID
  3. use the video ID to make a JSON URL
  4. fetch the JSON using that URL (actually, this doesn't need Referer)
  5. use yt-dl to download from the URL that is the manifest in the JSON.

At step 4 you can use your browser.

If you need subtitles as well, also download from the URL (captions_file) that matches your language, if any, in the captions_object. By accident you can actually use yt-dl for this as well, using a similar command-line to the one quoted above with the subtitle URL instead. In the specific case the only difference is changing master.m3u8 to captions.vtt.

wget and curl are command-line tools to download web pages. curl is pre-installed in Windows 10 build 1803 and later; otherwise https://stackoverflow.com/questions/9507353/how-do-i-install-and-use-curl-on-windows. Both programs support the --referer option, similar to yt-dl.

@abrogard
Copy link
Author

You're streets ahead of me.
The thing is I don't know what to do after I get as far as what you've shown.
I get that far and understand what i"m doing, sort of. But when I get all that I don't really know what it is all about nor what to do with it.
Screenshot (1447)

@dirkf
Copy link
Contributor

dirkf commented Oct 28, 2022

You said

I'm a long time youtubedl user ...

But if not, or anyway, you can read about yt-dl options in the Manual.

I showed the output with -v -F (--verbose --list-formats) to illustrate the video formats found. Either use your normal options instead, or pick a format from the list, say -f 800.

@abrogard
Copy link
Author

abrogard commented Oct 28, 2022 via email

@dirkf
Copy link
Contributor

dirkf commented Oct 28, 2022

You hit the anyway branch of the or, then.

Let us know if you succeeded so that the issue can be closed.

@dirkf dirkf added site-support-request Add extractor(s) for a new domain incomplete and removed question labels Oct 28, 2022
@abrogard
Copy link
Author

abrogard commented Oct 29, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete site-support-request Add extractor(s) for a new domain
Projects
None yet
Development

No branches or pull requests

2 participants