This commit is contained in:
Damiano Galassi committed 2019-03-11 18:36:10 +01:00
1 parent 560781c0f7
commit e16ea22a23
17 files changed
+53 -56

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ class QueueSubtitlesAction : NSObject, QueueActionProtocol {
private func loadExternalSubtitles(url: URL) -> [MP42FileImporter] {
let movieFilename = url.deletingPathExtension().lastPathComponent
var importers: [MP42FileImporter] = Array()
var importers: [MP42FileImporter] = []
if let contents = try? FileManager.default.contentsOfDirectory(at: url.deletingLastPathComponent(), includingPropertiesForKeys: nil, options: [.skipsSubdirectoryDescendants, .skipsHiddenFiles, .skipsPackageDescendants]) {
for url in contents {
let ext = url.pathExtension.lowercased()