Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dplocki/podcast-downloader into 5…
Browse files Browse the repository at this point in the history
…7-reorganize-readmemd
  • Loading branch information
dplocki committed Mar 27, 2024
2 parents 6c59ff7 + 7aeae42 commit f452bb4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
65 changes: 33 additions & 32 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions podcast_downloader/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,19 @@ def configuration_to_function_rss_to_name(
)

if rss_disable:
logger.info('Skipping the "%s"', rss_source_name)
logger.info('Skipping the "%s"', rss_source_name or rss_source_link)
continue

try:
feed = load_feed(rss_source_link)
if not rss_source_name:
rss_source_name = get_feed_title_from_feed(feed)

except error:
logger.error(f"Error while checking the link: '{rss_source_link}': {error}")
feed = load_feed(rss_source_link)
if feed.bozo and len(feed.entries) == 0:
logger.error(
f"Error while checking the link: '{rss_source_link}': {feed['bozo_exception']}"
)
continue

if not rss_source_name:
rss_source_name = get_feed_title_from_feed(feed)

logger.info('Checking "%s"', rss_source_name)

to_name_function = configuration_to_function_rss_to_name(
Expand Down

0 comments on commit f452bb4

Please sign in to comment.