aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils/EpisodeNameParser.hpp
blob: dfb843dc22201231dffc70bd7376a184c3a645ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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::string_view resolution; // optional
        std::string_view file_ext;   // optional
    };

    std::optional<EpisodeNameParts> episode_name_extract_parts(std::string_view episode_name);
}