Skip to content

Commit

Permalink
Add constant playerParams
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Aug 16, 2023
1 parent c427449 commit 97b8b36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const (
Size1Kb = 1024
Size1Mb = Size1Kb * 1024
Size10Mb = Size1Mb * 10

playerParams = "CgIQBg=="
)

var (
Expand Down Expand Up @@ -203,7 +205,7 @@ func (c *Client) videoDataByInnertube(ctx context.Context, id string) ([]byte, e
Context: prepareInnertubeContext(*c.client),
ContentCheckOK: true,
RacyCheckOk: true,
Params: "CgIQBg==",
Params: playerParams,
PlaybackContext: &playbackContext{
ContentPlaybackContext: contentPlaybackContext{
// SignatureTimestamp: sts,
Expand Down Expand Up @@ -247,7 +249,7 @@ func prepareInnertubePlaylistData(ID string, continuation bool, clientInfo clien
Continuation: ID,
ContentCheckOK: true,
RacyCheckOk: true,
Params: "CgIQBg==",
Params: playerParams,
}
}

Expand All @@ -256,7 +258,7 @@ func prepareInnertubePlaylistData(ID string, continuation bool, clientInfo clien
BrowseID: "VL" + ID,
ContentCheckOK: true,
RacyCheckOk: true,
Params: "CgIQBg==",
Params: playerParams,
}
}

Expand Down

0 comments on commit 97b8b36

Please sign in to comment.