11/*
2- * (C) 2023-2024 see Authors.txt
2+ * (C) 2023-2026 see Authors.txt
33 *
44 * This file is part of MPC-BE.
55 *
@@ -29,6 +29,7 @@ class CFileItem
2929{
3030 CStringW m_fpath;
3131 CStringW m_title;
32+ CStringA m_urlext;
3233 ChaptersList m_chapters;
3334
3435 REFERENCE_TIME m_duration = 0 ;
@@ -95,6 +96,15 @@ class CFileItem
9596 return m_title;
9697 };
9798
99+ void SetUrlExt (const CHAR * urlext) {
100+ ASSERT (::PathIsURLW (m_fpath));
101+ m_urlext = urlext;
102+ }
103+
104+ const CStringA& GetUrlExt () const {
105+ return m_urlext;
106+ };
107+
98108 // Chapters
99109 template <class ... Args>
100110 void AddChapter (Args&&... args) {
@@ -128,6 +138,7 @@ class CExtraFileItem
128138 CStringW m_fpath;
129139 CStringW m_title;
130140 CStringA m_lang;
141+ CStringA m_urlext;
131142
132143public:
133144 CExtraFileItem () = default ;
@@ -156,10 +167,6 @@ class CExtraFileItem
156167 return m_fpath;
157168 }
158169
159- void SetPath (const CStringW& fpath) {
160- m_fpath = fpath;
161- }
162-
163170 const CStringW& GetPath () const {
164171 return m_fpath;
165172 };
@@ -168,18 +175,22 @@ class CExtraFileItem
168175 return m_fpath.IsEmpty ();
169176 };
170177
171- // Title
172- void SetTitle (const CStringW& title) {
173- m_title = title;
174- }
175-
176178 const CStringW& GetTitle () const {
177179 return m_title;
178180 };
179181
180182 const CStringA& GetLang () const {
181183 return m_lang;
182184 };
185+
186+ void SetUrlExt (const CHAR * urlext) {
187+ ASSERT (::PathIsURLW (m_fpath));
188+ m_urlext = urlext;
189+ }
190+
191+ const CStringA& GetUrlExt () const {
192+ return m_urlext;
193+ };
183194};
184195
185196using CAudioItemList = std::list<CExtraFileItem>;
0 commit comments