diff --git a/deno/package.json b/deno/package.json index e537e50d..d44a7a7f 100644 --- a/deno/package.json +++ b/deno/package.json @@ -1,6 +1,6 @@ { "name": "youtubei.js", - "version": "6.0.1", + "version": "6.0.2", "description": "A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).", "type": "module", "types": "./dist/src/platform/lib.d.ts", diff --git a/deno/src/utils/DashManifest.js b/deno/src/utils/DashManifest.js index 14989928..520fbc3a 100644 --- a/deno/src/utils/DashManifest.js +++ b/deno/src/utils/DashManifest.js @@ -55,7 +55,7 @@ function DashManifest({ "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance", "xsi:schemaLocation": "urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" }, /* @__PURE__ */ DashUtils.createElement("period", null, audio_sets.map((set, index) => /* @__PURE__ */ DashUtils.createElement("adaptation-set", { - id: `audio_${index}`, + id: index, mimeType: set.mime_type, startWithSAP: "1", subsegmentAlignment: "true", @@ -66,7 +66,7 @@ function DashManifest({ schemeIdUri: "urn:mpeg:dash:role:2011", value: set.track_role }), set.track_name && /* @__PURE__ */ DashUtils.createElement("label", { - id: `audio_${index}` + id: index }, set.track_name), set.channels && /* @__PURE__ */ DashUtils.createElement("audio-channel-configuration", { schemeIdUri: "urn:mpeg:dash:23003:3:audio_channel_configuration:2011", value: set.channels @@ -81,7 +81,7 @@ function DashManifest({ }), /* @__PURE__ */ DashUtils.createElement(SegmentInfo, { info: rep.segment_info }))))), video_sets.map((set, index) => /* @__PURE__ */ DashUtils.createElement("adaptation-set", { - id: `video_${index}`, + id: index + audio_sets.length, mimeType: set.mime_type, startWithSAP: "1", subsegmentAlignment: "true", @@ -108,7 +108,7 @@ function DashManifest({ info: rep.segment_info }))))), image_sets.map(async (set, index) => { return /* @__PURE__ */ DashUtils.createElement("adaptation-set", { - id: `thumbs_${index}`, + id: index + audio_sets.length + video_sets.length, mimeType: await set.getMimeType(), contentType: "image" }, set.representations.map(async (rep) => /* @__PURE__ */ DashUtils.createElement("representation", { diff --git a/deno/src/utils/DashManifest.tsx b/deno/src/utils/DashManifest.tsx index 7cddd700..76a74c1f 100644 --- a/deno/src/utils/DashManifest.tsx +++ b/deno/src/utils/DashManifest.tsx @@ -90,7 +90,7 @@ function DashManifest({ { audio_sets.map((set, index) => ( + } @@ -143,7 +143,7 @@ function DashManifest({ { video_sets.map((set, index) => ( { return