From dbaa890976139d2215c50a3b600477d387abc547 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Mon, 24 Jul 2017 23:01:05 +0200 Subject: [PATCH] Added handling for when there simply is no video Just return None if no video could be found. Makes it skip instead of error out. --- spotdl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spotdl.py b/spotdl.py index 9f192b7..1d51f41 100755 --- a/spotdl.py +++ b/spotdl.py @@ -81,6 +81,9 @@ def generate_youtube_url(raw_song): if meta_tags is None: break + if not videos: + return None + if args.manual: print(song) print('')