Skip to content

H2CO3/libipodimport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libipodimport - damn simple iPod import support library for iOS 5+

Written by Árpád Goretity, 2012.

See LICENSE for the license.

Thanks for all contributions; special thanks to (in alphabetical order):
@albert_sn for valuable hints about how itunesstored and the StoreServices framework worked
@bensge for some inspring ideas
@itaybre for figuring out album artwork support
@fab1us for helping me in debugging
@SmartviperE75 for some more inspiring ideas

##################################

Usage:

    NSString *songPath = @"/var/mobile/SomeSong.mp3"; // may be M4A, AAC, etc. as well
    NSDictionary *metadata = [NSDictionary dictionaryWithObjectsAndKeys:
        @"Song Title", kIPIKeyTitle,
        @"Author or Singer", kIPIKeyArtist,
        @"Heavy metal", kIPIKeyGenre,
        [NSNumber numberWithInt:durationInSeconds * 1000], kIPIKeyDuration,
        [NSNumber numberWithInt:releaseYearOfTheSong], kIPIKeyYear,
        nil
    ];
    [[IPIPodImporter sharedInstance] importFileAtPath:songPath withMetadata:metadata];

The import occurs almost instantly, on the test device it never took longer than 3 seconds.

About

Damn simple iPod import support library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •