next
This commit is contained in:
parent
46073e6e3a
commit
1c44e0cc7f
1 changed files with 3 additions and 0 deletions
|
@ -227,8 +227,11 @@ def extract_video(video_id: str) -> dict:
|
||||||
|
|
||||||
|
|
||||||
def next_download(videos: list[str]) -> str | None:
|
def next_download(videos: list[str]) -> str | None:
|
||||||
|
index = 0
|
||||||
for video_id in videos:
|
for video_id in videos:
|
||||||
|
index += 1
|
||||||
if not Path(f"{video_id}.mp4").exists():
|
if not Path(f"{video_id}.mp4").exists():
|
||||||
|
log.info(f"{index} ∕ {len(videos)}")
|
||||||
return video_id
|
return video_id
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue