aboutsummaryrefslogtreecommitdiff
path: root/plugins/EpisodeNameParser.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-20 22:52:28 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-20 22:52:28 +0100
commit2beeddb325ecbc03ddd6c741449fabd527a3c8cc (patch)
tree545866dddda5f31aff0fc17713f19963e1517757 /plugins/EpisodeNameParser.hpp
parent5d999a9c97b986ff513aa6df71719914a41cb3eb (diff)
Local-anime: add option to group episodes into anime groups from the name of the anime by using the local_manga.auto_group_episodes config
Diffstat (limited to 'plugins/EpisodeNameParser.hpp')
-rw-r--r--plugins/EpisodeNameParser.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/EpisodeNameParser.hpp b/plugins/EpisodeNameParser.hpp
new file mode 100644
index 0000000..1ec847a
--- /dev/null
+++ b/plugins/EpisodeNameParser.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <string_view>
+#include <optional>
+
+namespace QuickMedia {
+ struct EpisodeNameParts {
+ std::string_view group; // optional
+ std::string_view anime; // required
+ std::string_view season; // optional
+ std::string_view episode; // required
+ };
+
+ std::optional<EpisodeNameParts> episode_name_extract_parts(std::string_view episode_name);
+} \ No newline at end of file