Browse Source

Merge branch 'dev' into colors

pull/615/head
mrjvs 2 years ago committed by GitHub
parent
commit
e2f895ff0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/hooks/useProviderScrape.tsx
  2. 2
      src/pages/parts/player/ScrapeErrorPart.tsx

2
src/hooks/useProviderScrape.tsx

@ -23,7 +23,7 @@ export interface ScrapingSegment { @@ -23,7 +23,7 @@ export interface ScrapingSegment {
embedId?: string;
status: "failure" | "pending" | "notfound" | "success" | "waiting";
reason?: string;
error?: unknown;
error?: any;
percentage: number;
}

2
src/pages/parts/player/ScrapeErrorPart.tsx

@ -35,6 +35,8 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) { @@ -35,6 +35,8 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
Object.values(data.sources).forEach((v) => {
str += `${v.id}: ${v.status}\n`;
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`;
});
return str;

Loading…
Cancel
Save