Commit fba37cda authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLMediaLibrary: coughcough

parent 61b01f53
......@@ -438,7 +438,7 @@ static NSString *kUpdatedToTheMojoWireDatabaseFormat = @"upgradedToDatabaseForma
}
episode.name = tvEpisodeName;
if (!episode.name || [episode.name isEqualToString:@""])
if (episode.name.length < 1)
episode.name = file.title;
file.seasonNumber = seasonNumber;
file.episodeNumber = episodeNumber;
......@@ -613,7 +613,7 @@ static NSString *kUpdatedToTheMojoWireDatabaseFormat = @"upgradedToDatabaseForma
// Prepare a fetch request for all items
for (NSString *path in filepaths) {
NSURL *url = [NSURL fileURLWithPath:path];
NSString *urlString = [[url absoluteString] stringByReplacingOccurrencesOfString:@"file:///" withString:@"file://localhost/"];
NSString *urlString = [url absoluteString];
[fetchPredicates addObject:[NSPredicate predicateWithFormat:@"url == %@", urlString]];
urlToObject[urlString] = path;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment