An Obj-C API for Searching and Downloading Subtitles from OpenSubtitles.
Objective-C Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 42 commits behind orta:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
OROpenSubtitleDownloader.h
OROpenSubtitleDownloader.m
OROpenSubtitleDownloader.podspec
README.md

README.md

OROpenSubtitleDownloader

An Obj-C API for Searching and Downloading Subtitles from OpenSubtitles. Currently supports only searching and downloading of srt files are support. Pull Requests with more features are welcome.

OpenSubtitles Documentation

This is fork of original repository, which adds just a couple useful fields to OpenSubtitleSearchResult.

@interface OROpenSubtitleDownloader : NSObject <XMLRPCConnectionDelegate>

// By using init the object will create it's own user agent based on bundle info
- (OROpenSubtitleDownloader *)init;
- (OROpenSubtitleDownloader *)initWithUserAgent:(NSString *)userAgent;

@property (weak) NSObject <OROpenSubtitleDownloaderDelegate> *delegate;
@property (readonly) OROpenSubtitleState state;
@property (strong, nonatomic) NSString *languageString;

// Search and get a return block with an array of OpenSubtitleSearchResult
- (void)searchForSubtitlesWithHash:(NSString *)hash andFilesize:(NSNumber *)filesize :(void(^) (NSArray *subtitles))searchResult;

// Download a subtitle result to a file after being unzipped
- (void)downloadSubtitlesForResult:(OpenSubtitleSearchResult *)result toPath:(NSString *)path :(void(^)())onResultsFound;
@end