Skip to content

Commit

Permalink
fix new usage with youtube.js v12 + fix av01 default usage
Browse files Browse the repository at this point in the history
  • Loading branch information
unixfox committed Dec 11, 2024
1 parent 5aba65b commit a451972
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/helpers/youtubePlayerReq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export const youtubePlayerReq = async (innertubeClient: Innertube, videoId: stri
serviceIntegrityDimensions: {
poToken: innertubeClient.session.po_token
},
innertubeClientUsed
client: innertubeClientUsed
});
};
7 changes: 6 additions & 1 deletion src/routes/invidious_routes/dashManifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ dashManifest.get("/:videoId", async (c) => {
.streaming_data.adaptive_formats
.filter((i) => {
if (i.mime_type.includes("mp4")) {
if (i.has_video) {
if (
i.has_video &&
JSON.stringify(
videoInfo.streaming_data?.adaptive_formats,
).includes("av01")
) {
if (i.mime_type.includes("av01")) {
return true;
} else {
Expand Down

0 comments on commit a451972

Please sign in to comment.