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

Merge movie-web/dev again (4.5.1 -> 4.5.2)

This commit is contained in:
Cooper Ransom 2024-02-29 21:54:03 -05:00
commit 82a85ef349
4 changed files with 15 additions and 10 deletions

View file

@ -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",

View file

@ -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

View file

@ -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": {

View file

@ -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,