Merge pull request #26350 from jjd-uk/estuary_media_align
[xbmc.git] / xbmc / video / Episode.h
blobf7722bd81afa639fb84949cfc55e87848828f455
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "XBDateTime.h"
12 #include "utils/ScraperUrl.h"
14 #include <memory>
15 #include <string>
16 #include <vector>
18 class CFileItem;
20 // single episode information
21 namespace KODI::VIDEO
23 struct EPISODE
25 bool isFolder;
26 int iSeason;
27 int iEpisode;
28 int iSubepisode;
29 std::string strPath;
30 std::string strTitle;
31 CDateTime cDate;
32 CScraperUrl cScraperUrl;
33 std::shared_ptr<CFileItem> item;
34 EPISODE(int Season = -1, int Episode = -1, int Subepisode = 0, bool Folder = false)
36 iSeason = Season;
37 iEpisode = Episode;
38 iSubepisode = Subepisode;
39 isFolder = Folder;
41 bool operator==(const struct EPISODE& rhs) const
43 return (iSeason == rhs.iSeason &&
44 iEpisode == rhs.iEpisode &&
45 iSubepisode == rhs.iSubepisode);
49 typedef std::vector<EPISODE> EPISODELIST;