From fd402fc4ea57eababbe5e568835e7b5e070bd0c0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Jun 2023 22:39:39 +0200 Subject: Fix auto_group_episodes == false not displaying episode names correctly --- src/plugins/LocalAnime.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp index cc82df1..3682ea5 100644 --- a/src/plugins/LocalAnime.cpp +++ b/src/plugins/LocalAnime.cpp @@ -416,12 +416,13 @@ namespace QuickMedia { std::string title; - title += "Episode "; std::optional name_parts = episode_name_extract_parts(episode.path.filename()); - if(name_parts) + if(name_parts && get_config().local_anime.auto_group_episodes) { + title += "Episode "; title += name_parts->episode; - else + } else { title += episode.path.filename_no_ext(); + } if(has_finished_watching) title += "\n[Finished watching]"; -- cgit v1.2.3