Skip to content

Commit

Permalink
fix bug when channel is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Jourdelune committed Sep 29, 2024
1 parent 091b32b commit c95753f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multi_crawler/crawlers/youtube_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def _get_ytb_data(self, url):
logging.error("Error extracting info from %s: %s", url, e)
return

logging.info("Found music video: %s", info["title"])
# logging.info("Found music video: %s", info["title"])
audio = Audio(
url=url,
title=info["title"],
author=info["channel"],
author=info["channel"] if "channel" in info else "",
description=info["description"],
tags=info["tags"],
)
Expand Down

0 comments on commit c95753f

Please sign in to comment.