Migrate the chapter importer to Swift.

This commit is contained in:
Damiano Galassi committed 2017-07-31 17:52:08 +02:00
1 parent 514ab21fb7
commit 23f626be9f
10 files changed
+317 -44

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
//
// ChapterSearchController.swift
// Subler
//
// Created by Damiano Galassi on 31/07/2017.
//
import Cocoa
class ChapterSearchController: NSWindowController {
override func windowDidLoad() {
super.windowDidLoad()
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
}
}
+83
View File
@@ -0,0 +1,83 @@
//
// ChapterDB.swift
// Subler
//
// Created by Damiano Galassi on 31/07/2017.
//
import Foundation
class ChapterDB : ChapterService {
func search(title: String, duration: UInt64) -> [ChapterResult] {
guard let url = URL(string: "http://www.chapterdb.org/chapters/search?title=\(title.urlEncoded())"),
let data = fetch(url: url)
else { return [] }
let delta: UInt64 = 10000
return parse(data: data).filter { $0.duration < (duration + delta) && $0.duration > (duration - delta) }
}
private func fetch(url: URL) -> Data? {
let header = ["ApiKey": "ETET7TXFJH45YNYW0I4A"]
return SBMetadataHelper.downloadData(from: url, httpMethod: "GET", httpBody: nil, headerOptions: header, cachePolicy: .default)
}
private func title(node: XMLNode) -> String? {
guard let nodes = try? node.nodes(forXPath: "./*:title") else { return nil }
return nodes.first?.stringValue
}
private func confirmations(node: XMLNode) -> UInt? {
guard let nodes = try? node.nodes(forXPath: "./@confirmations"),
let confirmations = nodes.first?.stringValue else { return nil }
return UInt(confirmations)
}
private func duration(node: XMLNode) -> UInt64? {
guard let nodes = try? node.nodes(forXPath: "./*:source/*:duration"),
let duration = nodes.first?.stringValue else { return nil }
return TimeFromString(duration, 1000)
}
private func parse(node: XMLNode) -> ChapterResult? {
guard let title = title(node: node),
let confirmations = confirmations(node: node),
let duration = duration(node: node),
let times = try? node.nodes(forXPath: "./*:chapters/*:chapter/@time"),
let names = try? node.nodes(forXPath: "./*:chapters/*:chapter/@name") else { return nil }
var currentTime: UInt64 = 0
var chapters: [Chapter] = Array()
for (time, name) in zip(times.flatMap { $0.stringValue }, names.flatMap { $0.stringValue }) {
let timestamp = TimeFromString(time, 1000)
if timestamp < currentTime {
break;
}
else {
currentTime = timestamp
}
let chapter = Chapter(name: name, timestamp: timestamp)
chapters.append(chapter)
}
if chapters.count > 0 {
let result = ChapterResult(title: title, duration: duration, confimations: confirmations, chapters: chapters)
return result
}
return nil
}
private func parse(data: Data) -> [ChapterResult] {
guard let document = try? XMLDocument(data: data, options: []),
let children = try? document.nodes(forXPath: "//*:chapterInfo") else { return [] }
return children.flatMap { parse(node: $0) }
}
}
@@ -0,0 +1,24 @@
//
// ChapterImporter.swift
// Subler
//
// Created by Damiano Galassi on 31/07/2017.
//
import Foundation
public protocol ChapterService {
func search(title: String, duration: UInt64) -> [ChapterResult]
}
public enum ChapterSearch {
case movieSeach(service: ChapterService, title: String, duration: UInt64)
public func search(completionHandler: @escaping ([ChapterResult]) -> Void) -> MetadataSearchTask {
switch self {
case let .movieSeach(service, title, duration):
return MetadataSearchInternalTask(search: service.search(title: title, duration: duration),
completionHandler: completionHandler)
}
}
}
@@ -0,0 +1,20 @@
//
// ChapterResult.swift
// Subler
//
// Created by Damiano Galassi on 31/07/2017.
//
import Foundation
public struct Chapter {
let name: String
let timestamp: UInt64
}
public struct ChapterResult {
let title: String
let duration: UInt64
let confimations: UInt
let chapters: [Chapter]
}
@@ -0,0 +1,146 @@
//
// MetadataHelper.swift
// Subler
//
// Created by Damiano Galassi on 31/07/2017.
//
import Foundation
public protocol MetadataSearchTask {
func runAsync() -> MetadataSearchTask
func run() -> MetadataSearchTask
func cancel()
}
class MetadataSearchInternalTask<T> : MetadataSearchTask {
private var cancelled: Bool = false
private let search: () -> T
private let completionHandler: (T) -> Void
init(search: @escaping @autoclosure () -> T, completionHandler: @escaping (T) -> Void) {
self.search = search
self.completionHandler = completionHandler
}
public func runAsync() -> MetadataSearchTask {
DispatchQueue.global(priority: .background).async {
_ = self.run()
}
return self
}
public func run() -> MetadataSearchTask {
let results = self.search()
if self.cancelled == false {
self.completionHandler(results)
}
return self
}
public func cancel() {
self.cancelled = true
}
}
public protocol MetadataSearchCancelToken {
func cancel()
var sessionTask: URLSessionTask? { get set }
}
// MARK: - Filename
enum FilenameType {
case movie(title: String)
case tvShow(seriesName: String, season: Int?, episode: Int?)
}
private func parseAnimeFilename(_ filename: String) -> FilenameType? {
guard let regex = try? NSRegularExpression(pattern: "^\\[(.+)\\](?:(?:\\s|_)+)?([^()]+)(?:(?:\\s|_)+)(?:(?:-\\s|-_|Ep)+)([0-9]+)", options: [.caseInsensitive]) else { return nil }
var result: FilenameType?
regex.enumerateMatches(in: filename, options: [],
range: NSRange(filename.startIndex..., in: filename)) {
(match, flags, stop) in
if let seriesNameRange = match?.range(at: 2), let episodeRange = match?.range(at: 3) {
let seriesName = (filename as NSString).substring(with: seriesNameRange)
let episode = Int((filename as NSString).substring(with: episodeRange))
if seriesName.count > 0 {
result = FilenameType.tvShow(seriesName: seriesName, season: 1, episode: episode)
}
}
}
return result
}
private func parseFilename(_ filename: String) -> FilenameType? {
guard let path = Bundle(for: MP42File.self).path(forResource: "ParseFilename", ofType: "") else { return nil }
let stdOut = Pipe()
let stdOutWrite = stdOut.fileHandleForWriting
// Use the ParseFilename perl script
let task = Process()
task.launchPath = "/usr/bin/perl"
task.arguments = ["-I\(path)/lib", "\(path)/ParseFilename.pl", filename]
task.standardOutput = stdOutWrite
task.launch()
task.waitUntilExit()
stdOutWrite.closeFile()
let outputData = stdOut.fileHandleForReading.readDataToEndOfFile()
let outputString = String(describing: outputData)
let lines = outputString.components(separatedBy: "\n")
if lines.count > 0 {
if lines.first == "tv" {
if lines.count >= 4 {
let newSeriesName = lines[1].replacingOccurrences(of: ".", with: " ")
return FilenameType.tvShow(seriesName: newSeriesName, season: Int(lines[2]), episode: Int(lines[3]))
}
}
else if lines.first == "movie" {
if lines.count >= 2 {
let newTitle = lines[1].replacingOccurrences(of: ".", with: " ")
.replacingOccurrences(of: "(", with: " ")
.replacingOccurrences(of: ")", with: " ")
.replacingOccurrences(of: "[", with: " ")
.replacingOccurrences(of: "]", with: " ")
.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
return FilenameType.movie(title: newTitle)
}
}
}
return nil
}
extension String {
func parsedAsFilename() -> FilenameType? {
if let parsed = parseAnimeFilename(self) {
return parsed
}
else if let parsed = parseFilename(self) {
return parsed
}
return nil
}
}
// MARK: - URL Utilities
extension String {
func urlEncoded() -> String {
return self.precomposedStringWithCompatibilityMapping.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed) ?? ""
}
}
@@ -78,7 +78,6 @@ public enum MetadataNameSearch {
return MetadataSearchInternalTask(search: service.search(TVSeries: tvSeries, language: language),
completionHandler: completionHandler)
}
}
}
@@ -109,40 +108,3 @@ public enum MetadataSearch {
}
}
}
public protocol MetadataSearchTask {
func runAsync() -> MetadataSearchTask
func run() -> MetadataSearchTask
func cancel()
}
private class MetadataSearchInternalTask<T> : MetadataSearchTask {
private var cancelled: Bool = false
private let search: () -> T
private let completionHandler: (T) -> Void
fileprivate init(search: @escaping @autoclosure () -> T, completionHandler: @escaping (T) -> Void) {
self.search = search
self.completionHandler = completionHandler
}
public func runAsync() -> MetadataSearchTask {
DispatchQueue.global(priority: .background).async {
_ = self.run()
}
return self
}
public func run() -> MetadataSearchTask {
let results = self.search()
if self.cancelled == false {
self.completionHandler(results)
}
return self
}
public func cancel() {
self.cancelled = true
}
}
@@ -237,7 +237,7 @@ final public class TheMovieDBService {
// MARK: - Service calls
public func search(movie: String, language: String) -> [TMDBMovieSearchResult] {
let encodedName = SBMetadataHelper.urlEncoded(movie)
let encodedName = movie.urlEncoded()
guard let url = URL(string: basePath + "search/movie?api_key=" + key + "&query=" + encodedName + "&language=" + language),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TMDBMovieSearchResult]>.self)
@@ -255,7 +255,7 @@ final public class TheMovieDBService {
}
public func search(series: String, language: String) -> [TMDBTVSearchResult] {
let encodedName = SBMetadataHelper.urlEncoded(series)
let encodedName = series.urlEncoded()
guard let url = URL(string: basePath + "search/tv?api_key=" + key + "&query=" + encodedName + "&language=" + language),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[TMDBTVSearchResult]>.self)
@@ -254,7 +254,7 @@ final public class TheTVDBService {
// MARK: - Service calls
public func fetch(series: String, language: String) -> [SeriesSearchResult] {
let encodedName = SBMetadataHelper.urlEncoded(series)
let encodedName = series.urlEncoded()
guard let url = URL(string: basePath + "search/series?name=" + encodedName),
let result = sendJSONRequest(url: url, language: language, type: Wrapper<[SeriesSearchResult]>.self)
+3 -3
View File
@@ -241,11 +241,11 @@ public struct iTunesStore: MetadataService {
// Determine artistId/collectionId
guard let url = { () -> URL? in
if let seasonNum = seasonNum {
let searchTerm = SBMetadataHelper.urlEncoded("\(seriesName) \(store.season) \(seasonNum)")
let searchTerm = "\(seriesName) \(store.season) \(seasonNum)".urlEncoded()
return URL(string: "https://itunes.apple.com/search?country=\(store.country2)&lang=\(store.language2.lowercased())&term=\(searchTerm)&attribute=tvSeasonTerm&entity=tvSeason&limit=250")
}
else {
let searchTerm = SBMetadataHelper.urlEncoded(seriesName)
let searchTerm = seriesName.urlEncoded()
return URL(string: "https://itunes.apple.com/search?country=\(store.country2)&lang=\(store.language2.lowercased())&term=\(searchTerm)&attribute=showTerm&entity=tvShow&limit=250")
}
}()
@@ -363,7 +363,7 @@ public struct iTunesStore: MetadataService {
public func search(movie: String, language: String) -> [SBMetadataResult] {
guard let store = iTunesStore.store(language: language),
let url = URL(string: "https://itunes.apple.com/search?country=\(store.country2)&lang=\(store.language2)&term=\(SBMetadataHelper.urlEncoded(movie))&entity=movie&limit=150"),
let url = URL(string: "https://itunes.apple.com/search?country=\(store.country2)&lang=\(store.language2)&term=\(movie.urlEncoded())&entity=movie&limit=150"),
let results = sendJSONRequest(url: url, type: Wrapper<Track>.self)
else { return [] }
+20
View File
@@ -30,6 +30,8 @@
A925AA8518378D8A00BE84D4 /* MP42Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A925AA8218378D7900BE84D4 /* MP42Foundation.framework */; };
A925AA8818378DD000BE84D4 /* MP42Foundation.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = A925AA8218378D7900BE84D4 /* MP42Foundation.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
A93DD7681DACCE930052749A /* SBComboBoxCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = A93DD7671DACCE930052749A /* SBComboBoxCellView.m */; };
A9433A8D1F2F5C3600BB38CA /* ChapterResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9433A8C1F2F5C3600BB38CA /* ChapterResult.swift */; };
A9433A911F2F5D8A00BB38CA /* ChapterDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9433A901F2F5D8A00BB38CA /* ChapterDB.swift */; };
A94721931D49DC0000858DD8 /* SBMetadataPrefsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A94721911D49DC0000858DD8 /* SBMetadataPrefsViewController.m */; };
A94A6A591ED1C5CC00049F7D /* ParseFilename in Resources */ = {isa = PBXBuildFile; fileRef = A94A6A581ED1C5CA00049F7D /* ParseFilename */; };
A95B8DA91B09F37800F2F152 /* Subler_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = A95B8DA81B09F37800F2F152 /* Subler_Tests.m */; };
@@ -46,6 +48,8 @@
A984DB740F52DD4B001A20B2 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = A984DB730F52DD4B001A20B2 /* dsa_pub.pem */; };
A98D98461F0280CB00A77ABC /* TheMovieDB.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D98451F0280CB00A77ABC /* TheMovieDB.swift */; };
A98D98481F02820F00A77ABC /* TheMovieDBService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A98D98471F02820F00A77ABC /* TheMovieDBService.swift */; };
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */; };
A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */; };
A998DABF1BA54CFF004D7969 /* SBMediaTagsController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A998DABD1BA54CFF004D7969 /* SBMediaTagsController.xib */; };
A99EEA3F12B801AE002367D3 /* SBDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AC012B79E230040517A /* SBDocument.xib */; };
A9A0542E1DEEC3E000D1AFA4 /* SBLanguageTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A0542D1DEEC3E000D1AFA4 /* SBLanguageTransformer.m */; };
@@ -61,6 +65,7 @@
A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9AB485E17F0AEFD000AA72E /* MovieView.xib */; };
A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9AB486017F0AEFD000AA72E /* SoundView.xib */; };
A9AB486817F0AEFD000AA72E /* VideoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9AB486217F0AEFD000AA72E /* VideoView.xib */; };
A9AE70E11F2F7B3D001CF27C /* MetadataHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */; };
A9AF6A7518D0496400FAAB08 /* SBQueueAction.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */; };
A9B46A8C12B79B240040517A /* SBFileImport.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46A7F12B79B240040517A /* SBFileImport.m */; };
A9B46A8E12B79B240040517A /* SBPrefsController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46A8312B79B240040517A /* SBPrefsController.m */; };
@@ -213,6 +218,8 @@
A925AA7B18378D7800BE84D4 /* MP42Foundation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MP42Foundation.xcodeproj; path = MP42Foundation/MP42Foundation.xcodeproj; sourceTree = "<group>"; };
A93DD7661DACCE930052749A /* SBComboBoxCellView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBComboBoxCellView.h; path = Classes/SBComboBoxCellView.h; sourceTree = "<group>"; };
A93DD7671DACCE930052749A /* SBComboBoxCellView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBComboBoxCellView.m; path = Classes/SBComboBoxCellView.m; sourceTree = "<group>"; };
A9433A8C1F2F5C3600BB38CA /* ChapterResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterResult.swift; path = Classes/MetadataImporters/ChapterResult.swift; sourceTree = "<group>"; };
A9433A901F2F5D8A00BB38CA /* ChapterDB.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterDB.swift; path = Classes/MetadataImporters/ChapterDB.swift; sourceTree = "<group>"; };
A94721901D49DC0000858DD8 /* SBMetadataPrefsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBMetadataPrefsViewController.h; path = Classes/SBMetadataPrefsViewController.h; sourceTree = "<group>"; };
A94721911D49DC0000858DD8 /* SBMetadataPrefsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBMetadataPrefsViewController.m; path = Classes/SBMetadataPrefsViewController.m; sourceTree = "<group>"; };
A94A6A581ED1C5CA00049F7D /* ParseFilename */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ParseFilename; path = Utilities/ParseFilename; sourceTree = "<group>"; };
@@ -238,6 +245,8 @@
A98D98471F02820F00A77ABC /* TheMovieDBService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = TheMovieDBService.swift; path = Classes/MetadataImporters/TheMovieDBService.swift; sourceTree = "<group>"; };
A991319913F0615700DCAA12 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
A991319B13F0668300DCAA12 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterImporter.swift; path = Classes/MetadataImporters/ChapterImporter.swift; sourceTree = "<group>"; };
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ChapterSearchController.swift; path = Classes/ChapterSearchController.swift; sourceTree = "<group>"; };
A9A0542C1DEEC3E000D1AFA4 /* SBLanguageTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBLanguageTransformer.h; path = Classes/SBLanguageTransformer.h; sourceTree = "<group>"; };
A9A0542D1DEEC3E000D1AFA4 /* SBLanguageTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBLanguageTransformer.m; path = Classes/SBLanguageTransformer.m; sourceTree = "<group>"; };
A9A8CEF71E43754400BC2AE1 /* SBQueueScriptCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueScriptCommand.h; path = Classes/SBQueueScriptCommand.h; sourceTree = "<group>"; };
@@ -254,6 +263,7 @@
A9AB485117F0AEAC000AA72E /* SBSoundViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBSoundViewController.m; path = Classes/PropertyView/SBSoundViewController.m; sourceTree = "<group>"; };
A9AB485217F0AEAC000AA72E /* SBVideoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBVideoViewController.h; path = Classes/PropertyView/SBVideoViewController.h; sourceTree = "<group>"; };
A9AB485317F0AEAC000AA72E /* SBVideoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBVideoViewController.m; path = Classes/PropertyView/SBVideoViewController.m; sourceTree = "<group>"; };
A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MetadataHelper.swift; path = Classes/MetadataImporters/MetadataHelper.swift; sourceTree = "<group>"; };
A9AF6A7318D0496400FAAB08 /* SBQueueAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueueAction.h; path = Classes/SBQueueAction.h; sourceTree = "<group>"; };
A9AF6A7418D0496400FAAB08 /* SBQueueAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueueAction.m; path = Classes/SBQueueAction.m; sourceTree = "<group>"; };
A9B3411B1679CA3E00E6EE0C /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; };
@@ -613,6 +623,7 @@
CD71FEA212F1B5AF00F0A98D /* SBMetadataSearchController.m */,
CD56963012FAAD680029FADB /* SBArtworkSelector.h */,
CD56963112FAAD680029FADB /* SBArtworkSelector.m */,
A99189D01F2F88F700623ED7 /* ChapterSearchController.swift */,
A9D4B8621C05BC61007845C4 /* SBChapterSearchController.h */,
A9D4B8631C05BC61007845C4 /* SBChapterSearchController.m */,
A909440E1DD4C85B00E9F89C /* Table View */,
@@ -659,6 +670,7 @@
A981754E1D49F11B00750709 /* SBMetadataResultMap.h */,
A981754F1D49F11B00750709 /* SBMetadataResultMap.m */,
A902E1D41F29DD8900D73C17 /* SBMetadataImporter.swift */,
A9AE70E01F2F7B3D001CF27C /* MetadataHelper.swift */,
A9CBAB1D1F29C083001C26B3 /* MetadataImporter.swift */,
A9E97F131F274F1100DBA586 /* iTunesStore.swift */,
A98D98451F0280CB00A77ABC /* TheMovieDB.swift */,
@@ -668,6 +680,9 @@
A901C51C1C04F03F00430DC3 /* SBChapterImporter.h */,
A901C51D1C04F03F00430DC3 /* SBChapterImporter.m */,
A9D4B8681C05CBEB007845C4 /* SBChapterResult.h */,
A99189CC1F2F87EC00623ED7 /* ChapterImporter.swift */,
A9433A8C1F2F5C3600BB38CA /* ChapterResult.swift */,
A9433A901F2F5D8A00BB38CA /* ChapterDB.swift */,
A9D4B8691C05CBEB007845C4 /* SBChapterResult.m */,
A901C51A1C04F03F00430DC3 /* SBChapterDB.h */,
A901C51B1C04F03F00430DC3 /* SBChapterDB.m */,
@@ -848,6 +863,7 @@
A960E96317D4B00900FC6ED9 /* SBImageBrowserView.m in Sources */,
A9DA3B9D1B918D5C00F1E40C /* SBExceptionAlertController.m in Sources */,
A94721931D49DC0000858DD8 /* SBMetadataPrefsViewController.m in Sources */,
A99189CD1F2F87EC00623ED7 /* ChapterImporter.swift in Sources */,
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */,
A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */,
A93DD7681DACCE930052749A /* SBComboBoxCellView.m in Sources */,
@@ -860,6 +876,7 @@
A96946531BA3F83D0048C004 /* SBMediaTagsController.m in Sources */,
A9AB485417F0AEAC000AA72E /* SBChapterViewController.m in Sources */,
A9AB485817F0AEAC000AA72E /* SBVideoViewController.m in Sources */,
A9433A911F2F5D8A00BB38CA /* ChapterDB.swift in Sources */,
A9A8CEF91E43754400BC2AE1 /* SBQueueScriptCommand.m in Sources */,
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */,
A9C703121C05E08B00C89151 /* SBMetadataHelper.m in Sources */,
@@ -887,13 +904,16 @@
A90300C41DAE6E27008237D8 /* SBSetPrefsViewController.m in Sources */,
A917286119FD288B00348DF8 /* SBLogger.m in Sources */,
A91B196C1F2B0DCB0008675F /* QueueAction.swift in Sources */,
A99189D11F2F88F700623ED7 /* ChapterSearchController.swift in Sources */,
A909440A1DD4B80000E9F89C /* SBComboBoxCell.m in Sources */,
A9D4B8641C05BC61007845C4 /* SBChapterSearchController.m in Sources */,
A9E97F141F274F1100DBA586 /* iTunesStore.swift in Sources */,
A9433A8D1F2F5C3600BB38CA /* ChapterResult.swift in Sources */,
A9EEA5F218D65490008B54B4 /* SBOptionsViewController.m in Sources */,
A902E1D51F29DD8900D73C17 /* SBMetadataImporter.swift in Sources */,
CD3F2A881761A143000D4C73 /* XMLReader.m in Sources */,
A9AB485517F0AEAC000AA72E /* SBEmptyViewController.m in Sources */,
A9AE70E11F2F7B3D001CF27C /* MetadataHelper.swift in Sources */,
A9A0542E1DEEC3E000D1AFA4 /* SBLanguageTransformer.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;