Skip to content

Commit

Permalink
fix(Innertube): Properly encoded params in getPost() (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Feb 13, 2025
1 parent b5c9581 commit 7d5c972
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
19 changes: 4 additions & 15 deletions protos/generated/misc/params.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions protos/misc/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ message CommunityPostParams {
}

message Field2 {
int64 p1 = 2;
int64 p2 = 3;
uint32 p1 = 2;
uint32 p2 = 3;
}

Field1 f1 = 25;
Expand Down
2 changes: 1 addition & 1 deletion src/Innertube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export default class Innertube {
}
});

const params = encodeURIComponent(u8ToBase64(writer.finish()));
const params = encodeURIComponent(u8ToBase64(writer.finish()).replace(/\+/g, '-').replace(/\//g, '_'));

const browse_endpoint = new NavigationEndpoint({ browseEndpoint: { browseId: channel_id, params: params } });

Expand Down

0 comments on commit 7d5c972

Please sign in to comment.