Skip to content

Commit

Permalink
moved itunes ringtone plist check earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesperflodin1 committed Aug 22, 2018
1 parent 31970f7 commit ff228c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions JFTHRingtoneImporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ - (void)getRingtoneFilesFromApp:(NSString *)bundleID {
if ([_ringtoneData getRingtoneWithName:[self createNameFromFile:file]]) {
continue;
}
// Does this name already exist in itunes plist?
NSString *baseName = [self createNameFromFile:appDirFile];
if ([_ringtoneData getITunesRingtoneWithName:baseName]) {
ALog(@"Ringtone is already in itunes plist, name: %@", baseName);
continue;
}
if ([_ringtoneData getRingtoneWithHash:[FileHash md5HashOfFileAtPath:[appDirectory stringByAppendingPathComponent:file]]]) {
continue;
}
Expand Down

0 comments on commit ff228c4

Please sign in to comment.