Skip to content

Commit

Permalink
add embed subtitles checkbox (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxstupo committed Apr 30, 2021
1 parent 11ad193 commit ef13939
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 20 deletions.
20 changes: 10 additions & 10 deletions YDL-UI/Forms/FormAddDownload.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 28 additions & 10 deletions YDL-UI/Forms/Tab/TabGeneral.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions YDL-UI/Forms/Tab/TabGeneral.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public void SetArguments(YdlArguments arguments) {
arguments.PostProcessing.ExtractAudio = (arguments.PostProcessing.AudioFormat != null);

arguments.PostProcessing.EmbedThumbnail = cbEmbedThumbnail.Checked;
arguments.PostProcessing.EmbedSubs = cbEmbedSubtitles.Checked;

arguments.PostProcessing.AddMetadata = cbAddMetadata.Checked;

arguments.PostProcessing.RecodeVideo = cbxRecodeFormat.Enabled ? (VideoFormatRecode?) cbxRecodeFormat.SelectedValue : null;
Expand Down
3 changes: 3 additions & 0 deletions YDL-UI/Forms/Tab/TabGeneral.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

1 comment on commit ef13939

@Maxstupo
Copy link
Owner Author

@Maxstupo Maxstupo commented on ef13939 Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maxstupo/ydl-ui_i18n@bf46b07

Locale Keys:
"download_dialog.general.post_processing.embed_subtitles": "Embed Subtitles",
"download_dialog.general.post_processing.embed_subtitles.tooltip": "Embed subtitles in the video (only for mp4, webm and mkv videos)",

Please sign in to comment.