Remove unused function

This commit is contained in:
Ivan Habunek 2024-08-24 20:05:32 +02:00
parent 38636e2b21
commit 1bdf6a2c02
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -325,23 +325,6 @@ def channel_clips_generator(
return _generator(clips, limit)
def channel_clips_generator_old(channel_id: str, period: ClipsPeriod, limit: int):
cursor = ""
while True:
clips = get_channel_clips(channel_id, period, limit, after=cursor)
if not clips["edges"]:
break
has_next = clips["pageInfo"]["hasNextPage"]
cursor = clips["edges"][-1]["cursor"] if has_next else None
yield clips, has_next
if not cursor:
break
def get_channel_videos(
channel_id: str,
limit: int,