diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-09-16 01:30:16 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-09-16 01:30:16 +0200 |
commit | d14f96048d30b0f536f59b70bf999d4d6e9bb0d0 (patch) | |
tree | 36a7a76ae3c99cb7dd69d52b0539ae8ef799fa17 /src/plugins | |
parent | 3b541a9a4c0423178d68a1c34ab85efa9d97fc3b (diff) |
Update example config (and some other minor changes)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/LocalAnime.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/LocalAnime.cpp b/src/plugins/LocalAnime.cpp index 5e4c1d7..e5c8e81 100644 --- a/src/plugins/LocalAnime.cpp +++ b/src/plugins/LocalAnime.cpp @@ -90,7 +90,7 @@ namespace QuickMedia { static time_t update_modified_time_from_episodes(LocalAnimeItem &item) { if(std::holds_alternative<LocalAnime>(item)) { LocalAnime &anime = std::get<LocalAnime>(item); - time_t last_modified = 0; + time_t last_modified = anime.modified_time_seconds; for(LocalAnimeItem &item : anime.items) { last_modified = std::max(last_modified, update_modified_time_from_episodes(item)); @@ -100,7 +100,7 @@ namespace QuickMedia { return last_modified; } else if(std::holds_alternative<LocalAnimeSeason>(item)) { LocalAnimeSeason &season = std::get<LocalAnimeSeason>(item); - time_t last_modified = 0; + time_t last_modified = season.modified_time_seconds; for(LocalAnimeItem &item : season.episodes) { last_modified = std::max(last_modified, update_modified_time_from_episodes(item)); @@ -117,7 +117,7 @@ namespace QuickMedia { } static time_t update_modified_time_from_episodes(LocalAnime &anime) { - time_t last_modified = 0; + time_t last_modified = anime.modified_time_seconds; for(LocalAnimeItem &item : anime.items) { last_modified = std::max(last_modified, update_modified_time_from_episodes(item)); @@ -163,7 +163,7 @@ namespace QuickMedia { } } - for(auto anime_it : anime_by_name) { + for(auto &anime_it : anime_by_name) { GroupedAnime &grouped_anime = anime_it.second; for(auto season_it : grouped_anime.seasons_by_name) { LocalAnimeSeason &season = season_it.second; |