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