Commit bb01837

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-08-14 02:02:44
fix(podcast): fix podcast download retry logic
1 parent 08280b1
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