* minor fixes from prod

This commit is contained in:
Dominika Liberda 2022-11-29 06:18:36 +00:00
parent 04649561f0
commit da609de918
2 changed files with 6 additions and 1 deletions

View file

@ -91,7 +91,11 @@ window.addEventListener('DOMContentLoaded', (event) => {
console.log('selected audio format', audioFormat); console.log('selected audio format', audioFormat);
fps = videoFormat.fps; fps = videoFormat.fps;
if (searchParams.get("q") != null) { // sloppy but idc
videoFormat = formats.find((fmt) => fmt.format_id == searchParams.get("q"));
audioFormat = null;
}
selectStreams(videoFormat, audioFormat) selectStreams(videoFormat, audioFormat)
} }
video.preload="auto"; video.preload="auto";

View file

@ -35,6 +35,7 @@ if [[ "${get_data[v]}" ]]; then
"vcodec": "vp8", "vcodec": "vp8",
"acodec": "vorbis" "acodec": "vorbis"
}]' }]'
subs='[]'
if [[ "${r[host]}" == "${cfg[flash_host]}" ]]; then if [[ "${r[host]}" == "${cfg[flash_host]}" ]]; then
url='http://f.sakamoto.pl/videoplayback_.flv' url='http://f.sakamoto.pl/videoplayback_.flv'
fi fi