Commit bb01837
Changed files (1)
src
others
src/others/podcast.py
@@ -67,7 +67,9 @@ async def summary_pods(client: Client):
if retry > 3:
logger.error(f"Failed download podcast {feed_title} -- {entry['title']}")
await send2tg(client, message, texts=f"Failed download podcast {feed_title} -- {entry['title']}", reply_msg_id=-1)
- continue
+ break
+ if not Path(path).is_file():
+ continue
thumb_url = glom(entry, "image.href", default="") or glom(feed, "feed.image.href", default="")
thumb = await download_file(thumb_url)
thumb = thumb if Path(thumb).is_file() else None