mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 09:32:12 +00:00
feat(protos): Add playlistTitle field to NextParams (#1040)
This commit is contained in:
@@ -234,6 +234,7 @@ export interface ShortsParam_Field1 {
|
||||
|
||||
export interface NextParams {
|
||||
videoId: string[];
|
||||
playlistTitle?: string | undefined;
|
||||
}
|
||||
|
||||
export interface CommunityPostParams {
|
||||
@@ -2082,7 +2083,7 @@ export const ShortsParam_Field1: MessageFns<ShortsParam_Field1> = {
|
||||
};
|
||||
|
||||
function createBaseNextParams(): NextParams {
|
||||
return { videoId: [] };
|
||||
return { videoId: [], playlistTitle: undefined };
|
||||
}
|
||||
|
||||
export const NextParams: MessageFns<NextParams> = {
|
||||
@@ -2090,6 +2091,9 @@ export const NextParams: MessageFns<NextParams> = {
|
||||
for (const v of message.videoId) {
|
||||
writer.uint32(42).string(v!);
|
||||
}
|
||||
if (message.playlistTitle !== undefined) {
|
||||
writer.uint32(50).string(message.playlistTitle);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -2107,6 +2111,13 @@ export const NextParams: MessageFns<NextParams> = {
|
||||
|
||||
message.videoId.push(reader.string());
|
||||
continue;
|
||||
case 6:
|
||||
if (tag !== 50) {
|
||||
break;
|
||||
}
|
||||
|
||||
message.playlistTitle = reader.string();
|
||||
continue;
|
||||
}
|
||||
if ((tag & 7) === 4 || tag === 0) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user