mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
linting false positives
This commit is contained in:
@@ -140,6 +140,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
api.on(Hls.Events.MANIFEST_PARSED, async () => {
|
api.on(Hls.Events.MANIFEST_PARSED, async () => {
|
||||||
// Defer hls.js's first fragment load until we filter out suboptimal variants
|
// Defer hls.js's first fragment load until we filter out suboptimal variants
|
||||||
api.stopLoad();
|
api.stopLoad();
|
||||||
@@ -149,6 +150,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const decodingInfo = await Promise.all(api.levels.map((level) => mediaCapabilitiesManager.decodingInfo(level)));
|
const decodingInfo = await Promise.all(api.levels.map((level) => mediaCapabilitiesManager.decodingInfo(level)));
|
||||||
|
// eslint-disable-next-line svelte/prefer-svelte-reactivity
|
||||||
const lowestBitrateByHeight = new Map<number, number>();
|
const lowestBitrateByHeight = new Map<number, number>();
|
||||||
for (let i = 0; i < api.levels.length; i++) {
|
for (let i = 0; i < api.levels.length; i++) {
|
||||||
if (!decodingInfo[i].powerEfficient) {
|
if (!decodingInfo[i].powerEfficient) {
|
||||||
|
|||||||
Reference in New Issue
Block a user