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.
11 #include "music/Song.h"
16 #define MAX_PATH_SIZE 1024
25 std::string strArtist
;
31 ReplayGain::Info replayGain
;
36 bool ParseFile(const std::string
&strFilePath
);
37 bool ParseTag(const std::string
&strContent
);
38 void GetSongs(VECSONGS
&songs
);
39 std::string
GetMediaPath();
40 std::string
GetMediaTitle();
41 void GetMediaFiles(std::vector
<std::string
>& mediaFiles
);
42 void UpdateMediaFile(const std::string
& oldMediaFile
, const std::string
& mediaFile
);
43 bool IsOneFilePerTrack() const;
44 bool IsLoaded() const;
47 bool Parse(CueReader
& reader
, const std::string
& strFile
= std::string());
50 std::string m_strArtist
; // album artist
51 std::string m_strAlbum
; // album title
52 std::string m_strGenre
; // album genre
53 int m_iYear
= 0; //album year
54 int m_iTrack
= 0; // current track
55 int m_iDiscNumber
= 0; // Disc number
56 ReplayGain::Info m_albumReplayGain
;
58 bool m_bOneFilePerTrack
= false;
61 typedef std::vector
<CCueTrack
> Tracks
;
64 std::string
ExtractInfo(const std::string
&line
);
65 int ExtractTimeFromIndex(const std::string
&index
);
66 int ExtractNumericInfo(const std::string
&info
);
67 bool ResolvePath(std::string
&strPath
, const std::string
&strBase
);