aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorgarret1317 <garret@airmail.cc>2025-07-11 08:16:11 +0100
committergarret1317 <garret@airmail.cc>2025-07-11 08:16:11 +0100
commitbff766d60b340a8d48d689428727bd131558f2be (patch)
treec1b9a33c043e3896402ba97bcb82dd1bcd7aa544
parent489e31032bb62a690a4d3b8f029259a3e7e051f9 (diff)
downloadyt-dlp-rajiko-bff766d60b340a8d48d689428727bd131558f2be.tar.gz
yt-dlp-rajiko-bff766d60b340a8d48d689428727bd131558f2be.tar.bz2
yt-dlp-rajiko-bff766d60b340a8d48d689428727bd131558f2be.zip
make protobuf hasNextPage default to false, not None
-rwxr-xr-xmisc/protostuff.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/protostuff.py b/misc/protostuff.py
index a461c02..9e5c19f 100755
--- a/misc/protostuff.py
+++ b/misc/protostuff.py
@@ -86,7 +86,7 @@ headers = {
response = requests.post('https://api.annex.radiko.jp/radiko.PodcastService/ListPodcastEpisodes', headers=headers,
data=add_grpc_header(protobug.dumps(ListPodcastEpisodesRequest(
- channel_id="09f27a48-ae04-4ce7-a024-572460e46eb7",
+ channel_id="1c931755-4d85-46f3-814c-7c13d771cf3c",
dontknow=1,
page_length=100, # site uses 20
# cursor="ef693874-0ad2-48cc-8c52-ac4de31cbf54" # here you put the id of the last episode you've seen in the list
@@ -137,10 +137,11 @@ class PodcastEpisode:
@protobug.message
class ListPodcastEpisodesResponse:
episodes: list[PodcastEpisode] = protobug.field(1)
- hasNextPage: protobug.Bool | None = protobug.field(2, default=None)
+ hasNextPage: protobug.Bool = protobug.field(2, default=False)
episodes_response = protobug.loads(episodes, ListPodcastEpisodesResponse)
for e in episodes_response.episodes:
print(e.title, e.id)
+print(episodes_response.hasNextPage)