feat: search pagination

adds support for getting past the first page of search results
This commit is contained in:
2025-10-03 01:16:56 +02:00
parent 7eb4452fec
commit 468795a7a2
3 changed files with 27 additions and 5 deletions

View File

@@ -83,3 +83,14 @@ def producePlaylistContinuation(plid: str, offset: int = 0) -> str:
b64_ctoken = bbpbToB64(bbpb_dicts, urlsafe=True, padding=True)
return b64_ctoken
def produceSearchParams(page: int = 1) -> str:
msge = {
"9:int": 20 * (page - 1), # pagination
"30:int": 1 # no self-harm censorship
}
bbpb_dicts = fdictToBbpb(msge)
b64_params = bbpbToB64(bbpb_dicts, urlsafe=True, padding=True)
return b64_params