Skip to content

Commit

Permalink
Beta 2 - Fix stray aternate title when it's blank
Browse files Browse the repository at this point in the history
  • Loading branch information
高町なのは authored and 高町なのは committed Nov 25, 2014
1 parent eae6dc9 commit 60b833a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ -(void)showAnimeInfo:(NSDictionary *)d{
[animeinfo setString:@""];
//Title
[self appendToAnimeInfo:[NSString stringWithFormat:@"%@", [d objectForKey:@"title"]]];
if ([d objectForKey:@"alternate_title"] !=[NSNull null]) {
if ([[NSString stringWithFormat:@"%@",[d objectForKey:@"alternate_title"]] length] >0) {
[self appendToAnimeInfo:[NSString stringWithFormat:@"Also known as %@", [d objectForKey:@"alternate_title"]]];
}
[self appendToAnimeInfo:@""];
Expand Down
Binary file not shown.

0 comments on commit 60b833a

Please sign in to comment.