Spaces:
Runtime error
Runtime error
ahmedJaafari
commited on
Commit
•
37285b4
1
Parent(s):
69e0e2c
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_all_videos(URL, channel_id):
|
|
33 |
pageToken = None
|
34 |
while True:
|
35 |
response = get_videos(URL, channel_id, pageToken)
|
36 |
-
for item in response["items"]:
|
37 |
videos.append(item["id"]["videoId"])
|
38 |
pageToken = response.get("nextPageToken")
|
39 |
if not pageToken:
|
|
|
33 |
pageToken = None
|
34 |
while True:
|
35 |
response = get_videos(URL, channel_id, pageToken)
|
36 |
+
for item in response["items"][:20]:
|
37 |
videos.append(item["id"]["videoId"])
|
38 |
pageToken = response.get("nextPageToken")
|
39 |
if not pageToken:
|