cursorpro commited on
Commit
e4e5770
Β·
verified Β·
1 Parent(s): 161d16e

Upload 43 files

Browse files
src/routes/invidious_routes/videos.ts CHANGED
@@ -511,7 +511,6 @@ videos.get("/:videoId", async (c) => {
511
  const adaptiveFormats: AdaptiveFormat[] = (streamingDataRaw.adaptiveFormats ?? []).map(
512
  (f: any) => {
513
  const fmt = convertAdaptiveFormat(f);
514
- if (local) fmt.url = localizeUrl(fmt.url, config);
515
  return fmt;
516
  },
517
  );
@@ -519,7 +518,6 @@ videos.get("/:videoId", async (c) => {
519
  // ── Format streams ────────────────────────────────────────────────────────
520
  const formatStreams: FormatStream[] = (streamingDataRaw.formats ?? []).map((f: any) => {
521
  const fmt = convertFormatStream(f);
522
- if (local) fmt.url = localizeUrl(fmt.url, config);
523
  return fmt;
524
  });
525
 
 
511
  const adaptiveFormats: AdaptiveFormat[] = (streamingDataRaw.adaptiveFormats ?? []).map(
512
  (f: any) => {
513
  const fmt = convertAdaptiveFormat(f);
 
514
  return fmt;
515
  },
516
  );
 
518
  // ── Format streams ────────────────────────────────────────────────────────
519
  const formatStreams: FormatStream[] = (streamingDataRaw.formats ?? []).map((f: any) => {
520
  const fmt = convertFormatStream(f);
 
521
  return fmt;
522
  });
523