Skip to content

Conversation

@tpikonen
Copy link
Contributor

@tpikonen tpikonen commented Aug 9, 2022

Fixes #379.

There are some problems with the youtube.py and youtube-dl extension interaction, plus this breaks downloads if ffmpeg is not installed, so setting as draft for now.

@tpikonen tpikonen marked this pull request as draft August 9, 2022 18:30
@tpikonen
Copy link
Contributor Author

Rebased and adapted to current master.

@tpikonen tpikonen marked this pull request as ready for review November 14, 2022 14:02
@tpikonen
Copy link
Contributor Author

So, now that #1382 is merged, this reduced to just a couple of lines. Subtitle embedding works fine when ffmpeg is installed, and even previews work with non-fragment downloads in youtube.

When ffmpeg is not installed, this probably breaks most youtube-dl downloads. The solution is to either detect if ffmpeg is installed, or to put this behind a config var. Any ideas on which one is better?

@auouymous
Copy link
Member

The extension should add a setting that defaults to off to avoid putting subtitles in downloads. When enabled, it should use util.find_command('ffmpeg') and display an error message before disabling the setting if not found.

@tpikonen
Copy link
Contributor Author

Rebased to master and added a checkbox to enable subtitle embedding in the youtube-dl preferences page. If ffmpeg is not found, prevent enabling and show an infobox to inform the user about the requirement.

@auouymous
Copy link
Member

The checkbox and separator should sit below the note that is specifically for the manage-downloads checkbox.

Add a checkbox in youtube-dl preferences to enable subtitle embedding if
ffmpeg is found. If ffmpeg is not found, show an infobox informing the
user that ffmpeg is required.
@tpikonen
Copy link
Contributor Author

Ah, thanks for noticing. Fixed now.

@auouymous auouymous merged commit 54c86d6 into gpodder:master Dec 17, 2022
@auouymous
Copy link
Member

Thanks for the improvement.

@tpikonen tpikonen deleted the ytdl-subs branch December 18, 2022 22:40
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.

[Wish] Subtitles/Transcript for YouTube videos

2 participants