1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Set 4K to higher priority

This commit is contained in:
Cooper Ransom 2024-03-28 14:19:10 -04:00
parent 5b1d8dc5a0
commit 40671c80a7
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import classNames from "classnames";
import React, { useCallback, useEffect } from "react";
import React, { useCallback } from "react";
import { useTranslation } from "react-i18next";
import { Icon, Icons } from "@/components/Icon";

View file

@ -38,7 +38,7 @@ const qualitySorting: Record<SourceQuality, number> = {
"480": 20,
"720": 30,
"1080": 40,
"4k": 25, // 4k has lower priority, you need faster internet for it
"4k": 35, // 4k has lower priority, you need faster internet for it
};
const sortedQualities: SourceQuality[] = Object.entries(qualitySorting)
.sort((a, b) => b[1] - a[1])