aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-06-10 22:39:39 +0200
committerdec05eba <dec05eba@protonmail.com>2023-06-10 22:39:39 +0200
commitfd402fc4ea57eababbe5e568835e7b5e070bd0c0 (patch)
treed585bf62d46df4deae9ac6446c692b72d8a1cfa6 /src/plugins
parent82d937254fb411475db54c829018ef5e4d220f7c (diff)
Fix auto_group_episodes == false not displaying episode names correctly
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/LocalAnime.cpp7
1 files changed, 4 insertions, 3 deletions
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<EpisodeNameParts> 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]";