mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-17 01:51:24 +01:00
Merge branch 'dev' into dev
This commit is contained in:
commit
004238d1ba
3 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "movie-web",
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.1",
|
||||
"private": true,
|
||||
"homepage": "https://movie-web.app",
|
||||
"scripts": {
|
||||
|
|
|
@ -63,7 +63,8 @@ function useBaseScrape() {
|
|||
const lastIdTmp = lastId.current;
|
||||
setSources((s) => {
|
||||
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 };
|
||||
});
|
||||
setCurrentSource(id);
|
||||
|
|
|
@ -37,7 +37,7 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
|||
if (v.reason) str += `${v.reason}\n`;
|
||||
if (v.error?.message)
|
||||
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;
|
||||
}, [props, location]);
|
||||
|
|
Loading…
Reference in a new issue