if, then del
This commit is contained in:
parent
a3509d50c4
commit
1abd94508f
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue