Skip to content

udacity/UDCSRTResponseSerializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archival Note

This repository is deprecated; therefore, we are going to archive it. However, learners will be able to fork it to their personal Github account but cannot submit PRs to this repository. If you have any issues or suggestions to make, feel free to:

UDCSRTResponseSerializer

UDCSRTResponseSerializer is response serializer you can plug in to AFNetworking that parses an SRT file and returns it in a friendly format.

Usage

AFHTTPSessionManager *sessionManager = [AFHTTPSessionManager manager];
sessionManager.responseSerializer = [UDCSRTResponseSerializer serializer];
NSString *path = videoTranscriptURL.absoluteString;
[sessionManager GET:path
         parameters:nil
            success:^(NSURLSessionDataTask *task, id responseObject) {
                NSLog(@"We now have a UDCVideoTranscript! %@", responseObject);
            } failure:nil];

Todo

  • Write unit tests

Installation

UDCSRTResponseSerializer is available through CocoaPods. To install it, simply add the following line to your Podfile: pod "UDCSRTResponseSerializer"

Author

Oliver Cameron, olivercameron@icloud.com

License

Test is available under the Unlicense license. See the LICENSE file for more info.

Credit

Credit for the SRT parsing technique goes to MPMoviePlayerController-Subtitles.

About

A response serializer you can plug in to AFNetworking that parses an SRT file and returns it in a friendly format

Resources

License

Stars

Watchers

Forks

Packages

No packages published