Change default value of named parameter...

..."game_ids" in "channel_videos_generator" from "None" to empty list []
This commit is contained in:
FunnyPocketBook 2022-07-05 19:46:11 +02:00 committed by Ivan Habunek
parent 533c91d133
commit 2402c3bfca
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -268,7 +268,7 @@ def get_channel_videos(channel_id, limit, sort, type="archive", game_ids=[], aft
return response["data"]["user"]["videos"]
def channel_videos_generator(channel_id, max_videos, sort, type, game_ids=None):
def channel_videos_generator(channel_id, max_videos, sort, type, game_ids=[]):
def _generator(videos, max_videos):
for video in videos["edges"]:
if max_videos < 1: