Remove the EDL option for the skip button since it's not working

This commit is contained in:
rlauu 2024-10-12 10:32:47 +02:00
parent 6c04f26407
commit 75352dd1c4
3 changed files with 7 additions and 26 deletions

View File

@ -150,8 +150,6 @@
<option value="Cut">Cut (player will remove the intro from the video)</option> <option value="Cut">Cut (player will remove the intro from the video)</option>
<option value="Intro">Intro/Credit (show a skip button, *experimental*)</option>
<option value="Mute">Mute (audio will be muted)</option> <option value="Mute">Mute (audio will be muted)</option>
<option value="SceneMarker">Scene Marker (create a chapter marker)</option> <option value="SceneMarker">Scene Marker (create a chapter marker)</option>

View File

@ -11,32 +11,22 @@ public enum EdlAction
None = -1, None = -1,
/// <summary> /// <summary>
/// Completely remove the intro from playback as if it was never in the original video. /// Completely remove the segment from playback as if it was never in the original video.
/// </summary> /// </summary>
Cut, Cut = 0,
/// <summary> /// <summary>
/// Mute audio, continue playback. /// Mute audio, continue playback.
/// </summary> /// </summary>
Mute, Mute = 1,
/// <summary> /// <summary>
/// Inserts a new scene marker. /// Inserts a new scene marker.
/// </summary> /// </summary>
SceneMarker, SceneMarker = 2,
/// <summary> /// <summary>
/// Automatically skip the intro once during playback. /// Automatically skip once during playback.
/// </summary> /// </summary>
CommercialBreak, CommercialBreak = 3
/// <summary>
/// Show a skip button.
/// </summary>
Intro,
/// <summary>
/// Show a skip button.
/// </summary>
Credit,
} }

View File

@ -97,15 +97,8 @@ public static class EdlManager
edlContent += Environment.NewLine; edlContent += Environment.NewLine;
} }
if (action == EdlAction.Intro)
{
edlContent += credit?.ToEdl(EdlAction.Credit);
}
else
{
edlContent += credit?.ToEdl(action); edlContent += credit?.ToEdl(action);
} }
}
File.WriteAllText(edlPath, edlContent); File.WriteAllText(edlPath, edlContent);
} }