Commit 097dfd6b authored by Koen Schmeets's avatar Koen Schmeets
Browse files

Ensure None values don't get included in the images

parent 41525283
......@@ -66,13 +66,19 @@ def resolve_url(url, stream=False):
logger.info(e.message)
return
images = []
if video.bigthumb:
images.append(video.bigthumb)
if video.bigthumbhd:
images.append(video.bigthumbhd)
track = Track(
name=video.title,
comment=video.videoid,
length=video.length * 1000,
album=Album(
name='YouTube',
images=[video.bigthumb, video.bigthumbhd]
images=images
),
uri=uri
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment