File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1795,15 +1795,18 @@ bool CPlayerPlaylistBar::ParseM3UPlayList(CString fn)
17951795 }
17961796 }
17971797 title = str.TrimLeft ();
1798- } else if (StartsWith (str, L" #EXTALB:" )) {
1798+ }
1799+ else if (StartsWith (str, L" #EXTALB:" )) {
17991800 DeleteLeft (8 , str);
18001801 album = str;
1801- } else if (StartsWith (str, L" #EXT-X-STREAM-INF:" )) {
1802+ }
1803+ else if (StartsWith (str, L" #EXT-X-STREAM-INF:" )) {
18021804 DeleteLeft (18 , str);
18031805 title = str;
18041806
18051807 audioId = RegExpParse (str.GetString (), LR"( AUDIO=\"(\S*?)\")" );
1806- } else if (StartsWith (str, L" #EXT-X-MEDIA:" ) && str.Find (L" TYPE=AUDIO" ) >= 13 ) {
1808+ }
1809+ else if (StartsWith (str, L" #EXT-X-MEDIA:" ) && str.Find (L" TYPE=AUDIO" ) >= 13 ) {
18071810 const auto id = RegExpParse (str.GetString (), LR"( GROUP-ID=\"(\S*?)\")" );
18081811 if (!id.IsEmpty ()) {
18091812 const auto url = RegExpParse (str.GetString (), LR"( URI=\"(.*?)\")" );
@@ -1813,6 +1816,9 @@ bool CPlayerPlaylistBar::ParseM3UPlayList(CString fn)
18131816 }
18141817 }
18151818 }
1819+ else if (str == L" #EXT-X-PLAYLIST-TYPE:EVENT" ) {
1820+ return false ;
1821+ }
18161822 } else {
18171823 const auto path = MakePath (CombinePath (base, str));
18181824 if (!fn.CompareNoCase (path)) {
You can’t perform that action at this time.
0 commit comments