jgreco/mpv-youtube-quality

Add support for Peertube quality

g4570n opened this issue · 1 comments

When I play a video hosted on a Peertube site and press Ctrl + f, I don't get the quality selection options like with Youtube, it would be great if I could add support for Peertube.

mpv https://video.hardlimit.com/videos/watch/972c1a2d-0f25-4348-b4ed-41950f5d23e7

[youtube_quality] 
[youtube_quality] stack traceback:
[youtube_quality] 	/home/g4570n/.config/mpv/scripts/youtube-quality.lua:241: in function </home/g4570n/.config/mpv/scripts/youtube-quality.lua:241>
[youtube_quality] 	[C]: in function 'sort'
[youtube_quality] 	/home/g4570n/.config/mpv/scripts/youtube-quality.lua:241: in function 'download_formats'
[youtube_quality] 	/home/g4570n/.config/mpv/scripts/youtube-quality.lua:88: in function 'fn'
[youtube_quality] 	mp.defaults:202: in function 'fn'
[youtube_quality] 	mp.defaults:60: in function 'handler'
[youtube_quality] 	mp.defaults:339: in function 'handler'
[youtube_quality] 	mp.defaults:448: in function 'call_event_handlers'
[youtube_quality] 	mp.defaults:485: in function 'dispatch_events'
[youtube_quality] 	mp.defaults:441: in function <mp.defaults:440>
[youtube_quality] 	[C]: in ?
[youtube_quality] 	[C]: in ?
[youtube_quality] Lua error: /home/g4570n/.config/mpv/scripts/youtube-quality.lua:241: attempt to compare two nil values

It also seems not to work on all Invidous instances -- it seems to work on https://yewtu.be but not https://iteroni.com. Expanded support would be appreciated.