diff --git a/Example/MPMoviePlayerController-Subtitles.xcodeproj/project.xcworkspace/xcuserdata/mhergon.xcuserdatad/UserInterfaceState.xcuserstate b/Example/MPMoviePlayerController-Subtitles.xcodeproj/project.xcworkspace/xcuserdata/mhergon.xcuserdatad/UserInterfaceState.xcuserstate index 40697eb..4716fe9 100644 Binary files a/Example/MPMoviePlayerController-Subtitles.xcodeproj/project.xcworkspace/xcuserdata/mhergon.xcuserdatad/UserInterfaceState.xcuserstate and b/Example/MPMoviePlayerController-Subtitles.xcodeproj/project.xcworkspace/xcuserdata/mhergon.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/MPMoviePlayerController-Subtitles.podspec b/MPMoviePlayerController-Subtitles.podspec index ddf6945..c8bb09f 100644 --- a/MPMoviePlayerController-Subtitles.podspec +++ b/MPMoviePlayerController-Subtitles.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |spec| spec.name = 'MPMoviePlayerController-Subtitles' spec.platform = :ios, "8.0" - spec.version = '2.0.3' + spec.version = '2.0.4' spec.license = { :type => 'Apache License, Version 2.0' } spec.homepage = 'https://github.com/mhergon/MPMoviePlayerController-Subtitles' spec.authors = { 'Marc Hervera' => 'mhergon@gmail.com' } spec.summary = 'Subtitles made easy' - spec.source = { :git => 'https://github.com/mhergon/MPMoviePlayerController-Subtitles.git', :tag => 'v2.0.3' } + spec.source = { :git => 'https://github.com/mhergon/MPMoviePlayerController-Subtitles.git', :tag => 'v2.0.4' } spec.source_files = 'Subtitles.swift' spec.requires_arc = true spec.module_name = 'MPMoviePlayerControllerSubtitles' diff --git a/Subtitles.swift b/Subtitles.swift index d3b3d3a..54f3558 100644 --- a/Subtitles.swift +++ b/Subtitles.swift @@ -170,12 +170,12 @@ public extension MPMoviePlayerController { } - private func parseSubRip(var payload: String) -> NSDictionary? { + private func parseSubRip(payload: String) -> NSDictionary? { do { // Prepare payload - payload = payload.stringByReplacingOccurrencesOfString("\n\r\n", withString: "\n\n") + var payload = payload.stringByReplacingOccurrencesOfString("\n\r\n", withString: "\n\n") payload = payload.stringByReplacingOccurrencesOfString("\n\n\n", withString: "\n\n") // Parsed dict