diff --git a/protos/generated/misc/params.ts b/protos/generated/misc/params.ts index 51fcebe4..984e7b58 100644 --- a/protos/generated/misc/params.ts +++ b/protos/generated/misc/params.ts @@ -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 = { }; function createBaseNextParams(): NextParams { - return { videoId: [] }; + return { videoId: [], playlistTitle: undefined }; } export const NextParams: MessageFns = { @@ -2090,6 +2091,9 @@ export const NextParams: MessageFns = { 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 = { message.videoId.push(reader.string()); continue; + case 6: + if (tag !== 50) { + break; + } + + message.playlistTitle = reader.string(); + continue; } if ((tag & 7) === 4 || tag === 0) { break; diff --git a/protos/misc/params.proto b/protos/misc/params.proto index 010cc3ff..415ed78c 100644 --- a/protos/misc/params.proto +++ b/protos/misc/params.proto @@ -228,6 +228,7 @@ message ShortsParam { message NextParams { repeated string video_id = 5; + optional string playlist_title = 6; } message CommunityPostParams { diff --git a/src/utils/ProtoUtils.ts b/src/utils/ProtoUtils.ts index d4e9ad05..06af9c77 100644 --- a/src/utils/ProtoUtils.ts +++ b/src/utils/ProtoUtils.ts @@ -48,7 +48,7 @@ export function encodeCommentActionParams(type: number, args: CommentActionParam return encodeURIComponent(u8ToBase64(writer.finish())); } -export function encodeNextParams(video_ids: string[]): string { - const writer = NextParams.encode({ videoId: video_ids }); +export function encodeNextParams(video_ids: string[], playlist_title?: string): string { + const writer = NextParams.encode({ videoId: video_ids, playlistTitle: playlist_title }); return encodeURIComponent(u8ToBase64(writer.finish()).replace(/\+/g, '-').replace(/\//g, '_')); } \ No newline at end of file