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.89k stars 10k forks source link

Discord - Add extractor #31460

Open upintheairsheep opened 1 year ago

upintheairsheep commented 1 year ago

Checklist

Example URLs

Discord servers: https://discord.gg/H5MNcFW63r https://discord.gg/wN9Nmh9pWT https://discord.gg/S9uJ794 https://discord.gg/8TgbHAG https://discord.gg/Y4WdVpZn9P Discord generic video links: https://cdn.discordapp.com/attachments/1005103698357276693/1005125050107707542/trim.564C434A-0822-48BF-84BF-740DD454B924.mov

Note: Discord forum, individual message links, direct message lists (DMs), and server channels can be copied, however you require to be in the server.

Description

Discord is an extremely popular chat site where users do post video attachments and external links at times. Please add support for downloading all the video attachments on a Discord server, when a username and password, or preferably cookies are provided, along with their common metadata: description, thumbnails, dates, the user who created it, custom reactions if you implement the field, tons of sites include them, and if not, make the 👍 emoji count as a "like" and a 👎 count as a "dislike". Playlist metadata, including server names, server descriptions, channel descriptions, server icons, the server owner, server banners, and server join backgrounds are possible metadata that can be added.

dirkf commented 1 year ago

Any particular reason for ignoring the checkboxes in the template?

upintheairsheep commented 1 year ago

I have checked all of them by the way, I have previously forgotten do do so beforehand.

nopeless commented 1 year ago

I feel like this is out of scope of this command line application. In fact, most videos can be obtained without any authentication or stream handlers. The link itself is the direct link to a blob. If you need to download all videos from a server, set up a discord bot (or, at your own risk, a user agent bot) which fetches blob embeds or video urls (which also results in blob embeds if it can be rendered by discord) and downloads them to a file

rautamiekka commented 1 year ago

Pretty sure the same applies to some other extractors.