Smaller pagination so server doesn't choke

This commit is contained in:
HugeFrog24
2026-03-14 06:22:54 +01:00
parent bb5a7e1bc3
commit 550de845c1
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -5,7 +5,10 @@
"Bash(grep '$ref')", "Bash(grep '$ref')",
"Bash(grep -c \"^ ''/\" /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.yaml)", "Bash(grep -c \"^ ''/\" /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.yaml)",
"Bash(grep -c ' \"\"/' /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.json)", "Bash(grep -c ' \"\"/' /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.json)",
"Bash(grep -c \"^ ''/\" /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.yaml)" "Bash(grep -c \"^ ''/\" /c/Users/admin/Desktop/jailbirdz-dl/docs/external/peertube/openapi.yaml)",
"Bash(git --no-pager diff HEAD~1 docs/external/peertube/openapi.json)",
"Bash(git --no-pager show HEAD~1:docs/external/peertube/openapi.json)",
"Bash(git --no-pager diff --name-only HEAD~1)"
] ]
} }
} }
+1 -1
View File
@@ -129,7 +129,7 @@ def get_channel_video_names(base: str, token: str, channel_name: str) -> Counter
while True: while True:
r = requests.get( r = requests.get(
f"{base}/api/v1/video-channels/{channel_name}/videos", f"{base}/api/v1/video-channels/{channel_name}/videos",
params={"start": start, "count": 100}, params={"start": start, "count": 25},
headers=api_headers(token), headers=api_headers(token),
timeout=30, timeout=30,
) )