1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-21 14:47:41 +01:00
This commit is contained in:
Cooper Ransom 2024-03-28 23:22:28 -04:00
commit 4412783424
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -38,7 +38,7 @@ const qualitySorting: Record<SourceQuality, number> = {
"480": 20, "480": 20,
"720": 30, "720": 30,
"1080": 40, "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) const sortedQualities: SourceQuality[] = Object.entries(qualitySorting)
.sort((a, b) => b[1] - a[1]) .sort((a, b) => b[1] - a[1])