mirror of
https://github.com/movie-web/movie-web.git
synced 2025-02-02 23:52:40 +01:00
Merge branch 'dev' into dev
This commit is contained in:
commit
004238d1ba
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "movie-web",
|
"name": "movie-web",
|
||||||
"version": "4.2.0",
|
"version": "4.2.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://movie-web.app",
|
"homepage": "https://movie-web.app",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -63,7 +63,8 @@ function useBaseScrape() {
|
|||||||
const lastIdTmp = lastId.current;
|
const lastIdTmp = lastId.current;
|
||||||
setSources((s) => {
|
setSources((s) => {
|
||||||
if (s[id]) s[id].status = "pending";
|
if (s[id]) s[id].status = "pending";
|
||||||
if (lastIdTmp && s[lastIdTmp]) s[lastIdTmp].status = "success";
|
if (lastIdTmp && s[lastIdTmp] && s[lastIdTmp].status === "pending")
|
||||||
|
s[lastIdTmp].status = "success";
|
||||||
return { ...s };
|
return { ...s };
|
||||||
});
|
});
|
||||||
setCurrentSource(id);
|
setCurrentSource(id);
|
||||||
|
@ -37,7 +37,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
|||||||
if (v.reason) str += `${v.reason}\n`;
|
if (v.reason) str += `${v.reason}\n`;
|
||||||
if (v.error?.message)
|
if (v.error?.message)
|
||||||
str += `${v.error.name ?? "unknown"}: ${v.error.message}\n`;
|
str += `${v.error.name ?? "unknown"}: ${v.error.message}\n`;
|
||||||
if (v.error) str += `${v.error.toString()}\n`;
|
else if (v.error) str += `${v.error.toString()}\n`;
|
||||||
});
|
});
|
||||||
return str;
|
return str;
|
||||||
}, [props, location]);
|
}, [props, location]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user