Skip to content

Commit 5386424

Browse files
committed
- Added the mpvraw player entry, proposed in trizen/pipe-viewer#191
Let's mpv to extract the streaming URLs with `yt-dlp`, which also supports sponsorblock and the streams loads faster.
1 parent 5016b15 commit 5386424

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bin/gtk-youtube-viewer

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ my %CONFIG = (
190190
fs => q{--fullscreen},
191191
arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl --no-terminal *VIDEO*},
192192
},
193+
mpvraw => {
194+
arg => q{--ytdl-raw-options-append="format-sort=ext,res:*RESOLUTION*" --no-terminal *URL*},
195+
cmd => q{mpv},
196+
fs => q{--fullscreen},
197+
srt => q{--sub-file=*SUB*},
198+
},
193199
},
194200
video_player_selected => undef, # autodetect it later
195201

bin/youtube-viewer

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,14 @@ my %CONFIG = (
217217
arg => q{--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*},
218218
novideo => q{--no-video},
219219
},
220+
221+
mpvraw => {
222+
arg => q{--ytdl-raw-options-append="format-sort=ext,res:*RESOLUTION*" *URL*},
223+
cmd => q{mpv},
224+
fs => q{--fullscreen},
225+
novideo => q{--no-video},
226+
srt => q{--sub-file=*SUB*},
227+
},
220228
},
221229

222230
video_player_selected => (

0 commit comments

Comments
 (0)