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

[Twitter] Please add option to skip youtube videos #1416

Closed
Skyofflad opened this issue Mar 29, 2021 · 2 comments
Closed

[Twitter] Please add option to skip youtube videos #1416

Skyofflad opened this issue Mar 29, 2021 · 2 comments

Comments

@Skyofflad
Copy link

Skyofflad commented Mar 29, 2021

Gallery-dl downloads youtube videos from tweets even when option twitter.videos is set to false.
--filter "extension != 'mp4'" also doesn't work.
So i had to add this to config: "image-filter": "extension == 'jpg' or extension == 'png'", but it skips gifs.
Please add special option to skip yt vids, if possible.

@Skyofflad Skyofflad changed the title Twitter downloads youtube videos even when forbidden [Twitter] Please add option to skip youtube videos Mar 31, 2021
@Skyofflad
Copy link
Author

Sorry for the inconvenience, i didn't realize that yt vids are managed by twitter.cards option.

@mikf
Copy link
Owner

mikf commented Apr 1, 2021

Youtube videos or links to other video platforms only come from Twitter cards and get downloaded with youtube-dl when cards is enabled. ebd142e changes that to only download those when videos is also enabled. (cards can include images like here)

"image-filter": "extension == 'jpg' or extension == 'png'", but it skips gifs.

How about "extension == 'jpg' or extension == 'png' or extension == 'gif'" to also include gifs? Or "extension in ('jpg', 'png', 'gif')" in short?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants