Merge 07e8d20cce7016ccfd91f238de2ef6522f6a99e2 into 103f80e617ed26e7be42c890bb6e837cbebbf7e6

This commit is contained in:
Dexterqo 2026-05-18 10:54:55 +01:00 committed by GitHub
commit b101469f70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,12 +28,12 @@
src_url = invidious_companion.public_url.to_s + src_url +
"&check=#{invidious_companion_check_id}" if (invidious_companion)
bitrate = fmt["bitrate"]
bitrate = fmt["bitrate"].as_i // 1000
mimetype = HTML.escape(fmt["mimeType"].as_s)
selected = (i == best_m4a_stream_index)
%>
<source src="<%= src_url %>" type='<%= mimetype %>' label="<%= bitrate %>k" selected="<%= selected %>">
<source src="<%= src_url %>" type='<%= mimetype %>' label="<%= bitrate %> kbps" selected="<%= selected %>">
<% if !params.local && !CONFIG.disabled?("local") %>
<source src="<%= src_url %>&local=true" type='<%= mimetype %>' hidequalityoption="true">
<% end %>