Commit a83d2edc authored by Soomin Lee's avatar Soomin Lee

VLCHTTPFileDownloader: Post NewFileAdded notification

parent d5f0eddd
......@@ -204,6 +204,9 @@
if ([fileManager fileExistsAtPath:_filePath]) {
[fileManager moveItemAtPath:_filePath toPath:finalFilePath error:nil];
[[VLCMediaFileDiscoverer sharedInstance] performSelectorOnMainThread:@selector(updateMediaList) withObject:nil waitUntilDone:NO];
// FIXME: Replace notifications by cleaner observers
[[NSNotificationCenter defaultCenter] postNotificationName:NSNotification.VLCNewFileAddedNotification
object:self];
}
[self.delegate downloadEnded];
......
......@@ -25,7 +25,7 @@
#import <arpa/inet.h>
#if TARGET_OS_IOS
#import "VLC_iOS-Swift.h"
#import "VLC-Swift.h"
#import "VLCMediaFileDiscoverer.h"
#endif
......
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