Commit 261e3747 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

library: fix tv show name corruption caused by older MLKit releases (close #10435)

parent d42f25d6
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -361,6 +361,15 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
else if (file.isShowEpisode) {
if ( < 2)
[_foundMedia addObject:file];
/* older MediaLibraryKit versions don't send a show name in a popular
* corner case. hence, we need to work-around here and force a reload
* afterwards as this could lead to the 'all my shows are gone'
* syndrome (see #10435, #10464, #10432 et al) */
if ( == 0) { = NSLocalizedString(@"UNTITLED_SHOW", @"");
[self performSelector:@selector(updateViewContents) withObject:nil afterDelay:0.1];
} else if (file.isAlbumTrack) {
if (file.albumTrack.album.tracks.count < 2)
[_foundMedia addObject:file];
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