Skip to content

Commit

Permalink
Fixed episode numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Aug 28, 2024
1 parent 1f2ed8d commit f648cd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/service/download_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ impl DownloadService {

if let Some(settings_for_podcast) = settings_for_podcast {
if settings_for_podcast.episode_numbering {
tag.set_title(format!("{} - {}", index, &podcast_episode.name));
PodcastEpisode::update_episode_numbering_processed(conn, true,
&podcast_episode.episode_id);
if !podcast_episode.episode_numbering_processed {
tag.set_title(format!("{} - {}", index, &podcast_episode.name));
PodcastEpisode::update_episode_numbering_processed(conn, true,
&podcast_episode.episode_id);
}
} else {
tag.set_title(&podcast_episode.name);
PodcastEpisode::update_episode_numbering_processed(conn, false, &podcast_episode
Expand Down

0 comments on commit f648cd3

Please sign in to comment.