Convert SBMetadataResult to Swift.
This commit is contained in:
1 parent
aa20d18ded
commit
422e1c9853
28 files changed
+855
-1143
No files matched your search
@@ -14,10 +14,10 @@ public protocol ChapterService {
|
||||
public enum ChapterSearch {
|
||||
case movieSeach(service: ChapterService, title: String, duration: UInt64)
|
||||
|
||||
public func search(completionHandler: @escaping ([ChapterResult]) -> Void) -> MetadataSearchTask {
|
||||
public func search(completionHandler: @escaping ([ChapterResult]) -> Void) -> Runnable {
|
||||
switch self {
|
||||
case let .movieSeach(service, title, duration):
|
||||
return MetadataSearchInternalTask(search: service.search(title: title, duration: duration),
|
||||
return RunnableTask(search: service.search(title: title, duration: duration),
|
||||
completionHandler: completionHandler)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user