[PR #4195] [MERGED] Fix podcast re-scan promise #4186

Closed
opened 2026-04-25 00:18:42 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4195
Author: @advplyr
Created: 4/11/2025
Status: Merged
Merged: 4/11/2025
Merged by: @advplyr

Base: masterHead: fix_podcast_episode_scanner_promise


📝 Commits (2)

  • 62194b8 Fix podcast re-scan promise
  • b47d7b7 Update podcast scanner to remove media progress and episodes from playlist

📊 Changes

1 file changed (+28 additions, -10 deletions)

View changed files

📝 server/scanner/PodcastScanner.js (+28 -10)

📄 Description

Brief summary

Re-scan podcasts wasn't waiting for promise to finish when removing episodes. This can result in an inaccurate numEpisodes column.

Removed episodes from scans will now remove the associated media progress and playlist media item.

Which issue is fixed?

No issue


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4195 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 4/11/2025 **Status:** ✅ Merged **Merged:** 4/11/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `fix_podcast_episode_scanner_promise` --- ### 📝 Commits (2) - [`62194b8`](https://github.com/advplyr/audiobookshelf/commit/62194b8781a98acfd4af24348fbc5702af1495d9) Fix podcast re-scan promise - [`b47d7b7`](https://github.com/advplyr/audiobookshelf/commit/b47d7b734de2e1e182a56c10be55f8bd1c06bcd8) Update podcast scanner to remove media progress and episodes from playlist ### 📊 Changes **1 file changed** (+28 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `server/scanner/PodcastScanner.js` (+28 -10) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary Re-scan podcasts wasn't waiting for promise to finish when removing episodes. This can result in an inaccurate `numEpisodes` column. Removed episodes from scans will now remove the associated media progress and playlist media item. ## Which issue is fixed? No issue --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:42 +02:00
adam closed this issue 2026-04-25 00:18:42 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4186