11 #include "InfoScanner.h" 12 #include "VideoDatabase.h" 13 #include "addons/Scraper.h" 26 class IVideoInfoTagLoader;
33 parent_name_root =
false;
36 m_allExtAudio =
false;
40 bool parent_name_root;
57 void Start(
const std::string& strDirectory,
bool scanAll =
false);
69 long AddVideo(
CFileItem *pItem,
const CONTENT_TYPE &content,
bool videoFolder =
false,
bool useLocal =
true,
const CVideoInfoTag *showInfo = NULL,
bool libraryImport =
false);
83 static void ApplyThumbToFolder(
const std::string &folder,
const std::string &imdbThumb);
93 void GetArtwork(
CFileItem *pItem,
const CONTENT_TYPE &content,
bool bApplyToDir=
false,
bool useLocal=
true,
const std::string &actorArtPath =
"");
101 static void GetSeasonThumbs(
const CVideoInfoTag &show, std::map<
int, std::map<std::string, std::string> > &art,
const std::vector<std::string> &artTypes,
bool useLocal =
true);
104 bool EnumerateEpisodeItem(
const CFileItem *item, EPISODELIST& episodeList);
106 static std::string GetMovieSetInfoFolder(
const std::string& setTitle);
109 virtual void Process();
110 bool DoScan(
const std::string& strDirectory)
override;
123 bool ProgressCancelled(
CGUIDialogProgress* progress,
int heading,
const std::string &line1);
154 const ADDON::ScraperPtr &scraper,
164 bool GetEpisodeAndSeasonFromRegExp(
CRegExp ®,
EPISODE &episodeInfo,
int defaultSeason);
178 bool GetEpisodeTitleFromRegExp(
CRegExp& reg,
EPISODE& episodeInfo);
185 void FetchActorThumbs(std::vector<SActorInfo>& actors,
const std::string& strPath);
187 static int GetPathHash(
const CFileItemList &items, std::string &hash);
199 std::string GetFastHash(
const std::string &directory,
const std::vector<std::string> &excludes)
const;
211 std::string GetRecursiveFastHash(
const std::string &directory,
const std::vector<std::string> &excludes)
const;
221 bool CanFastHash(
const CFileItemList &items,
const std::vector<std::string> &excludes)
const;
236 bool EnumerateSeriesFolder(
CFileItem* item, EPISODELIST& episodeList);
237 bool ProcessItemByVideoInfoTag(
const CFileItem *item, EPISODELIST &episodeList);
241 std::string m_strStartDir;
243 std::set<std::string> m_pathsToCount;
244 std::set<int> m_pathsToClean;
247 static void AddLocalItemArtwork(CGUIListItem::ArtMap& itemArt,
248 const std::vector<std::string>& wantedArtTypes,
const std::string& itemPath,
249 bool addAll,
bool exactName);
257 static std::string GetArtTypeFromSize(
unsigned int width,
unsigned int height);
Definition: VideoInfoScanner.h:28
Base class for video tag loaders.
Definition: IVideoInfoTagLoader.h:25
Represents a list of files.
Definition: FileItem.h:713
Definition: VideoInfoScanner.h:47
Definition: VideoDatabase.h:393
Definition: Application.h:74
Definition: InfoScanner.h:17
Definition: ScraperUrl.h:30
Definition: GUIDialogProgress.h:16
Definition: VideoInfoTag.h:51
INFO_RET
Return values from the information lookup functions.
Definition: InfoScanner.h:23
Represents a file on a share.
Definition: FileItem.h:102
Definition: ScraperUrl.h:21