aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils/EpisodeNameParser.hpp
blob: 1ec847ab24fb17b485b776cfb10583e3c9dd18d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}