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.68k stars 9.97k forks source link

Please implement ytdl for https://www.brighteon.com #30168

Closed astrometrics closed 2 years ago

astrometrics commented 2 years ago

Has many interesting videos, I'd like to ask you guys to implement download videos (the list in the page, just like youtube videos tab). Thanks for ytdl.

astrometrics commented 2 years ago

Hi, a Videos tab typical link: https://www.brighteon.com/channels/hrreport?page=1 a Playlist tab typical link: https://www.brighteon.com/channels/hrreport/playlists?page=1

Obviously to download one video with proper parser would be desirable, but generic is working on this one. Videos list download option would be probably what's most needed.

thanks

dirkf commented 2 years ago

One option for this site would be to use the -o - option and redirect to NUL or /dev/null as appropriate.

To find playlists and then ignore them, an extractor would have to look for the url group in a match for r'<a\s[^>]*?href\s*=\s*(?P<q>\'|"|\b)(?P<url>/[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}(?P=q)'

astrometrics commented 2 years ago

Hi... @dirkf

" -o - option and redirect to NUL or /dev/null as appropriate" by that you mean send the content to /dev/null? "To find playlists and then ignore them"
I just can't make any positive sense of this 2 phrases... care to explain?

regards

dirkf commented 2 years ago

You need to consider the nature of the typical site content to understand why I suggested ignoring, discarding or deleting it.

flashdagger commented 2 years ago

Yeah. Worse than porn: https://pypi.org/project/ytdlp-brighteon/

astrometrics commented 2 years ago

so youtube-dl is a left leaning team/platform that will only support porn? Be trully democratic please. thanks

flashdagger commented 2 years ago

This is getting off-topic, but nevertheless. I don't think the team is biased. youtube-dl implements extractors for all kinds off sites. I just pointed out a solution to your request.

dirkf commented 2 years ago

Some devs don't work on extractors for NSFW sites. Some may not work on extractors for nonsense propaganda sites. Speaking as the author of the PR for the extractor for GBNews, a site not often considered pinko, I think explaining how someone who cared could extract brighteon playlists is about my limit, but @flashdagger has saved that person the trouble.

The ytdlp-plugins extractor would be a simple back-port if the yt-dlp traverse_obj() utility function could be provided.

astrometrics commented 2 years ago

Hi, yes @flashdagger I understood your msg when you wrote it, thanks for the infos, already pip3ed.

@dirkf you shouldn't as a dev pass judgement on a content (as long as it is legal), what you call a disinfo or propaganda website may actually have bona fide scientists telling what they actually found... despite of what Orwell's MiniTruth agent central thinks. Also don't play games with pretentious pseudo cryptic messages, time is precious.

If you mean Brighteon is NSFW, I would have to disagree. Free speech shoundn't be considered dangerous.

Anyway I want to thank the team again for youtube-dl, as a project and as an idea.

rautamiekka commented 2 years ago

a dev pass judgement on a content (as long as it is legal), what you call a disinfo or propaganda website may actually have bona fide scientists telling what they actually found... despite of what Orwell's MiniTruth agent central thinks. Also don't play games with pretentious pseudo cryptic messages, time is precious.

Besides, if you're making a general vid/audio downloader, what the User uses the downloaded content for ain't the dev's business. As long as it exists and is legal, it doesn't matter.