Do not list dst playlist if src is empty
This commit is contained in:
@@ -199,6 +199,9 @@ def copy_playlist_items(yt_api,
|
||||
limit: int = -1,
|
||||
dry_run: bool = False):
|
||||
src_playlist_items = list_playlist(yt_api, src_playlist_id)
|
||||
if not src_playlist_items:
|
||||
print(f"No items found in source playlist {src_playlist_id}")
|
||||
return
|
||||
dst_playlist_items = list_playlist(yt_api, dst_playlist_id)
|
||||
|
||||
dst_videos = {pl_item['snippet']['resourceId']['videoId']
|
||||
|
||||
Reference in New Issue
Block a user