diff --git a/package.json b/package.json index 059f694a..97d46cd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sudo-flix", - "version": "4.5.1", + "version": "4.5.2", "private": true, "homepage": "https://sudo-flix.lol", "scripts": { @@ -29,7 +29,7 @@ "@formkit/auto-animate": "^0.8.1", "@headlessui/react": "^1.7.17", "@ladjs/country-language": "^1.0.3", - "@movie-web/providers": "^2.2.0", + "@movie-web/providers": "^2.2.2", "@noble/hashes": "^1.3.3", "@plasmohq/messaging": "^0.6.1", "@react-spring/web": "^9.7.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cb5bd3b7..5e8e69f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,8 +22,8 @@ dependencies: specifier: ^1.0.3 version: 1.0.3 '@movie-web/providers': - specifier: ^2.2.0 - version: 2.2.0 + specifier: ^2.2.2 + version: 2.2.2 '@noble/hashes': specifier: ^1.3.3 version: 1.3.3 @@ -1936,8 +1936,8 @@ packages: engines: {node: '>= 14'} dev: false - /@movie-web/providers@2.2.0: - resolution: {integrity: sha512-7rKUpLPklwOtS5P2CAeh0P3sPIuYvtkKIgm0kVMp+OsSpKd9IcuYm79bbDrA0MDi3IMGik1W6la9Mzy91+8uYQ==} + /@movie-web/providers@2.2.2: + resolution: {integrity: sha512-pTlErE5bdu+b68mUW2YAKOJKz2hwSx63auGAfTkGQ+0SHDMlCV9QQ8S8O9IoSsvdXps7/YlWJWOMX8pmKuYbPQ==} dependencies: cheerio: 1.0.0-rc.12 cookie: 0.6.0 @@ -7378,7 +7378,6 @@ packages: /workbox-google-analytics@7.0.0: resolution: {integrity: sha512-MEYM1JTn/qiC3DbpvP2BVhyIH+dV/5BjHk756u9VbwuAhu0QHyKscTnisQuz21lfRpOwiS9z4XdqeVAKol0bzg==} - deprecated: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained dependencies: workbox-background-sync: 7.0.0 workbox-core: 7.0.0 diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 5f332467..b04c1bb2 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -309,7 +309,7 @@ }, "sources": { "failed": { - "text": "There was an error while trying to find any videos, please try a different source.", + "text": "There was an error while trying to find any videos... Try a different source?", "title": "Failed to scrape" }, "noEmbeds": { diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 5fe8843b..b6bf4fc4 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -1,5 +1,5 @@ import classNames from "classnames"; -import { useCallback, useEffect, useMemo, useRef } from "react"; +import { useCallback, useEffect, useMemo } from "react"; import { useTranslation } from "react-i18next"; import { useAsyncFn } from "react-use"; @@ -208,7 +208,13 @@ export function SettingsPage() { // when backend url gets changed, log the user out first if (state.backendUrl.changed) { await logout(); - setBackendUrl(state.backendUrl.state); + + let url = state.backendUrl.state; + if (url && !url.startsWith("http://") && !url.startsWith("https://")) { + url = `https://${url}`; + } + + setBackendUrl(url); } }, [ state,