Compare commits

...

2 Commits

Author SHA1 Message Date
LuanRT
848c7e68e2 chore: v6.0.2 release 2023-08-24 20:07:16 +00:00
LuanRT
bc437015e2 chore: v6.0.1 release 2023-08-22 12:09:04 +00:00
4 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "youtubei.js",
"version": "6.0.0",
"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",

View File

@@ -17,7 +17,7 @@ export default class SearchSubMenu extends YTNode {
if (Reflect.has(data, 'title'))
this.title = new Text(data.title);
if (!Reflect.has(data, 'groups'))
if (Reflect.has(data, 'groups'))
this.groups = Parser.parseArray(data.groups, SearchFilterGroup);
if (Reflect.has(data, 'button'))

View File

@@ -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", {

View File

@@ -90,7 +90,7 @@ function DashManifest({
{
audio_sets.map((set, index) => (
<adaptation-set
id={`audio_${index}`}
id={index}
mimeType={set.mime_type}
startWithSAP="1"
subsegmentAlignment="true"
@@ -107,7 +107,7 @@ function DashManifest({
}
{
set.track_name &&
<label id={`audio_${index}`}>
<label id={index}>
{set.track_name}
</label>
}
@@ -143,7 +143,7 @@ function DashManifest({
{
video_sets.map((set, index) => (
<adaptation-set
id={`video_${index}`}
id={index + audio_sets.length}
mimeType={set.mime_type}
startWithSAP="1"
subsegmentAlignment="true"
@@ -192,7 +192,7 @@ function DashManifest({
{
image_sets.map(async (set, index) => {
return <adaptation-set
id={`thumbs_${index}`}
id={index + audio_sets.length + video_sets.length}
mimeType={await set.getMimeType()}
contentType="image"
>