Sitelet https://github.com/gpodder/gpodder/pull/1059
Skip to content

Return an audio mime-type from Youtube-DL when given a video extension. - #1059

Merged
elelay merged 1 commit into
gpodder:masterfrom
auouymous:fix-audio-download-mime-type
Jun 6, 2021
Merged

elelay merged 1 commit into
gpodder:masterfrom
auouymous:fix-audio-download-mime-type

Conversation

@auouymous

Copy link
Copy Markdown
Member

This uses audio icon and player when audio formats are downloaded with youtube-dl. Both youtube-dl and built-in download a weba file, but youtube-dl uses its ext field (which contains webm) and produces the wrong mime-type.

This also guarantees all supported youtube-dl sites will produce an audio mime-type if youtube-dl has the wrong ext value.

@elelay
elelay merged commit bfeb2d6 into gpodder:master Jun 6, 2021
@elelay

elelay commented Jun 6, 2021

Copy link
Copy Markdown
Member

Merged, thanks!

@auouymous
auouymous deleted the fix-audio-download-mime-type branch June 7, 2021 02:15
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

Successfully merging this pull request may close these issues.

2 participants