Skip to content

Commit

Permalink
filter for none urls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Jan 15, 2021
1 parent 12169a6 commit 2aa350b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoytdl/AYTDL.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def main():
urls_to_update = [str(current)[2:-3]]

# download for real
for url in urls_to_update:
print("[downloading] " + url)
for url in filter(lambda x: x is not None, urls_to_update):
print("[downloading] " + str(url))
a.download_to_temp(url, dateafter)

if a.config.embed_thumbnail:
Expand Down

0 comments on commit 2aa350b

Please sign in to comment.