-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update interface, remove update ytdl menu item
- Loading branch information
Showing
6 changed files
with
131 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,132 +1,109 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Document</title> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
body { | ||
padding: 16px; | ||
margin: 0; | ||
font-size: 13px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
} | ||
p { | ||
margin: 0; | ||
} | ||
small, | ||
.small { | ||
font-size: 11px; | ||
} | ||
.secondary { | ||
color: rgba(0, 0, 0, 0.5); | ||
} | ||
.pref-section { | ||
margin-bottom: 12px; | ||
} | ||
.pref-help { | ||
margin-top: 2px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="pref-section"> | ||
Use custom youtube-dl/yt-dlp: | ||
<div style="margin-top: 2px"> | ||
<input | ||
type="text" | ||
data-pref-key="ytdl_path" | ||
style="width: 100%; margin-top: 2px" | ||
/> | ||
</div> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Document</title> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
padding: 16px; | ||
margin: 0; | ||
font-size: 13px; | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
} | ||
|
||
small, | ||
.small { | ||
font-size: 11px; | ||
} | ||
|
||
.secondary { | ||
color: rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
.pref-section { | ||
margin-bottom: 12px; | ||
} | ||
|
||
.pref-help { | ||
margin-top: 2px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="pref-section"> | ||
Use custom youtube-dl/yt-dlp: | ||
<p class="small secondary pref-help"> | ||
Enter the path to the youtube-dl or yt-dlp binary. | ||
If you are using Homebrew, the path is usually <code>/opt/homebrew/bin/yt-dlp</code>. | ||
</p> | ||
<div style="margin-top: 2px"> | ||
<input type="text" data-pref-key="ytdl_path" style="width: 100%; margin-top: 2px" /> | ||
</div> | ||
<div class="pref-section"> | ||
Default video and audio quality: | ||
<div style="margin-top: 4px; line-height: 24px"> | ||
<div> | ||
<label | ||
><input | ||
type="radio" | ||
name="video_quality" | ||
value="best" | ||
data-pref-key | ||
/> | ||
Best video and audio</label | ||
> | ||
</div> | ||
<div> | ||
<label | ||
><input | ||
type="radio" | ||
name="video_quality" | ||
value="use_max" | ||
data-pref-key | ||
/> | ||
Video not larger than:</label | ||
> | ||
<input | ||
type="number" | ||
data-pref-key="max_video_height" | ||
style="width: 4em" | ||
/> | ||
p | ||
</div> | ||
<div> | ||
<label | ||
><input | ||
type="radio" | ||
name="video_quality" | ||
value="custom" | ||
data-pref-key | ||
/> | ||
Custom youtube-dl format:</label | ||
> | ||
<input type="text" data-pref-key="custom_ytdl_format" /> | ||
</div> | ||
</div> | ||
<div class="pref-section"> | ||
Default video and audio quality: | ||
<div style="margin-top: 4px; line-height: 24px"> | ||
<div> | ||
<label><input type="radio" name="video_quality" value="best" data-pref-key /> | ||
Best video and audio</label> | ||
</div> | ||
<div> | ||
<label><input type="radio" name="video_quality" value="use_max" data-pref-key /> | ||
Video not larger than:</label> | ||
<input type="number" data-pref-key="max_video_height" style="width: 4em" /> | ||
p | ||
</div> | ||
<div> | ||
<label><input type="radio" name="video_quality" value="custom" data-pref-key /> | ||
Custom youtube-dl format:</label> | ||
<input type="text" data-pref-key="custom_ytdl_format" /> | ||
</div> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
Excluded URLs: | ||
<div style="margin-top: 2px"> | ||
<input | ||
type="text" | ||
data-pref-key="excluded_urls" | ||
style="width: 100%; margin-top: 2px" | ||
/> | ||
</div> | ||
</label> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
<input | ||
type="checkbox" | ||
data-type="bool" | ||
data-pref-key="try_ytdl_first" | ||
/> | ||
Try youtube-dl first | ||
</label> | ||
<p class="small secondary pref-help"> | ||
Try parsing the URL with youtube-dl first, instead of the default where | ||
it's only after mpv failed to open it. | ||
</p> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
<input type="checkbox" data-type="bool" data-pref-key="use_manifest" /> | ||
Use manifest URL | ||
</label> | ||
<p class="small secondary pref-help"> | ||
Use the master manifest URL for formats like HLS and DASH, if available, | ||
allowing for video/audio selection in runtime. | ||
</p> | ||
</div> | ||
</body> | ||
</html> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
Excluded URLs: | ||
<div style="margin-top: 2px"> | ||
<input type="text" data-pref-key="excluded_urls" style="width: 100%; margin-top: 2px" /> | ||
</div> | ||
</label> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
<input type="checkbox" data-type="bool" data-pref-key="try_ytdl_first" /> | ||
Try youtube-dl first | ||
</label> | ||
<p class="small secondary pref-help"> | ||
Try parsing the URL with youtube-dl first, instead of the default where | ||
it's only after mpv failed to open it. | ||
</p> | ||
</div> | ||
<div class="pref-section"> | ||
<label> | ||
<input type="checkbox" data-type="bool" data-pref-key="use_manifest" /> | ||
Use manifest URL | ||
</label> | ||
<p class="small secondary pref-help"> | ||
Use the master manifest URL for formats like HLS and DASH, if available, | ||
allowing for video/audio selection in runtime. | ||
</p> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters