if, then del

This commit is contained in:
jbannon 2022-06-26 21:56:05 +00:00
parent a3509d50c4
commit 1abd94508f

View file

@ -132,7 +132,9 @@ class YoutubeSplitVideoDownloader(
entry_dict["id"] = _split_video_uid(source_uid=entry_dict["id"], idx=idx) entry_dict["id"] = _split_video_uid(source_uid=entry_dict["id"], idx=idx)
# Remove track and artist since its now split # Remove track and artist since its now split
if "track" in entry_dict:
del entry_dict["track"] del entry_dict["track"]
if "artist" in entry_dict:
del entry_dict["artist"] del entry_dict["artist"]
return YoutubePlaylistVideo(entry_dict=entry_dict, working_directory=self.working_directory) return YoutubePlaylistVideo(entry_dict=entry_dict, working_directory=self.working_directory)