Add podgrab featureset
This commit is contained in:
parent
233dd5b5c0
commit
4527504c80
5 changed files with 71 additions and 11 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue