Fixed playlist loading bugs.
This commit is contained in:
parent
8d74a3ccef
commit
e78a961fa3
1 changed files with 5 additions and 7 deletions
|
@ -202,14 +202,12 @@
|
||||||
urlEnumerator = [sortedURLs objectEnumerator];
|
urlEnumerator = [sortedURLs objectEnumerator];
|
||||||
while (url = [urlEnumerator nextObject])
|
while (url = [urlEnumerator nextObject])
|
||||||
{
|
{
|
||||||
//File url
|
//Container vs non-container url
|
||||||
if ([[self acceptableContainerTypes] containsObject:[[[url path] pathExtension] lowercaseString]] && ([url fragment] == nil)) {
|
if ([[self acceptableContainerTypes] containsObject:[[[url path] pathExtension] lowercaseString]]) {
|
||||||
if ([url isFileURL] ) {
|
[containedURLs addObjectsFromArray:[AudioContainer urlsForContainerURL:url]];
|
||||||
[containedURLs addObjectsFromArray:[AudioContainer urlsForContainerURL:url]];
|
|
||||||
|
|
||||||
//Make sure the container isn't added twice.
|
//Make sure the container isn't added twice.
|
||||||
[uniqueURLs addObjectsFromArray:containedURLs];
|
[uniqueURLs addObjectsFromArray:containedURLs];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue