Add podgrab featureset

This commit is contained in:
Cody Cook 2025-06-16 23:07:36 -07:00
commit 4527504c80
5 changed files with 71 additions and 11 deletions

View file

@ -90,6 +90,12 @@ def add(podcast_id):
if stats and stats.get('new_episodes', 0) > 0:
flash(f'Podcast added successfully! Found {stats["new_episodes"]} episodes.', 'success')
elif stats and stats.get('feed_status') == 'all_episodes_have_errors':
error_msg = stats.get('error_message', 'Unknown error')
status_code = stats.get('status_code', '')
status_info = f" (Status code: {status_code})" if status_code else ""
flash(f'Podcast added successfully! Found episodes but all have download issues: {error_msg}{status_info}. You can try updating later.', 'warning')
logger.warning(f"All episodes have download errors for podcast: {podcast.title}")
else:
flash('Podcast added successfully! No episodes found yet. The feed might be empty or inaccessible.', 'info')
logger.warning(f"No episodes found for podcast: {podcast.title}")