Resolve issues

This commit is contained in:
Cooper Ransom 2024-03-27 17:33:33 -04:00
parent 001183ca81
commit c87abb2c32
3 changed files with 13 additions and 11 deletions

View File

@ -162,4 +162,4 @@
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
</html>

View File

@ -1,19 +1,19 @@
window.__CONFIG__ = {
// The URL for the CORS proxy, the URL must NOT end with a slash!
// If not specified, the onboarding will not allow a "default setup". The user will have to use the extension or set up a proxy themselves
VITE_CORS_PROXY_URL: "",
VITE_CORS_PROXY_URL: "https://sudo-proxy.up.railway.app",
// The READ API key to access TMDB
VITE_TMDB_READ_API_KEY: "",
VITE_TMDB_READ_API_KEY: "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhZTljNGE2ZDE1ZDFiODZiNzdlMWQyYmI5ZGY0MzdmYyIsInN1YiI6IjY1YjNmMWI0NTk0Yzk0MDE2MzNkZDBjNSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.kAX7TkbKuJkNty6IsjcCLnoENFicVZn6d6DkLQsy3p8",
// The DMCA email displayed in the footer, null to hide the DMCA link
VITE_DMCA_EMAIL: null,
VITE_DMCA_EMAIL: "dev@sudo-flix.lol",
// Whether to disable hash-based routing, leave this as false if you don't know what this is
VITE_NORMAL_ROUTER: false,
VITE_NORMAL_ROUTER: true,
// The backend URL to communicate with
VITE_BACKEND_URL: null,
VITE_BACKEND_URL: "backend.sudo-flix.lol",
// A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-<id>" and "movie-<id>"
VITE_DISALLOWED_IDS: "",

View File

@ -29,8 +29,6 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
const location = useLocation();
const [extensionState, setExtensionState] =
useState<ExtensionStatus>("unknown");
const [title, setTitle] = useState(t("player.scraping.notFound.title"));
const [icon, setIcon] = useState(Icons.WAND);
const error = useMemo(() => {
const data = props.data;
@ -58,8 +56,10 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
return (
<ErrorLayout>
<ErrorContainer>
<IconPill icon={Icons.LOCK}>{t("player.scraping.notFound.badge")}</IconPill>
<Title>t("player.scraping.extensionFailure.disabledTitle")</Title>
<IconPill icon={Icons.LOCK}>
{t("player.scraping.notFound.badge")}
</IconPill>
<Title>{t("player.scraping.extensionFailure.disabledTitle")}</Title>
<Paragraph>
<Trans
i18nKey="player.scraping.extensionFailure.text"
@ -101,7 +101,9 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
return (
<ErrorLayout>
<ErrorContainer>
<IconPill icon={Icons.WAND}>{t("player.scraping.notFound.badge")}</IconPill>
<IconPill icon={Icons.WAND}>
{t("player.scraping.notFound.badge")}
</IconPill>
<Title>{t("player.scraping.notFound.title")}</Title>
<Paragraph>{t("player.scraping.notFound.text")}</Paragraph>
<div className="flex gap-3">