Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Detecting that an ipod has no content: (5 Items)
   
Detecting that an ipod has no content  
Hi all,

is there a way to find out if an iPod has playable content stored on it or is completely empty?

Or do i have to browse the folder-structure to find out. that all folders are empty?


Thanks for help,

Artjom
Re: Detecting that an ipod has no content  
On 10-06-24 11:56 AM, "Artjom Dizel" <community-noreply@qnx.com> wrote:
> is there a way to find out if an iPod has playable content stored on it or is
> completely empty?
> 
> Or do i have to browse the folder-structure to find out. that all folders are
> empty?

You could just check Music/Songs. I will include all of the audio content on
the ipod (i.e. everything that is in Music/Genres/... Music/Artist/.... etc
will be in Music/Songs). If that one folder is empty, there are no songs on
the iPod.

Regards,
Gilles
Re: Detecting that an ipod has no content  
ok, but what about podcasts (video-podcasts), audiobooks, videos, playlists, the /Music/Songs folder does not contain 
them or am i wrong at this point?
Re: Detecting that an ipod has no content  
For Music (i.e. audio only content) you just need to check /Music/Songs. For
video content you just need to check "/Videos/Video Playlists/~0". This will
contain all videos on the iPod. Things like podcasts or audiobooks will end
up in Music/Songs or Videos/Video Playlists/~0. As well, playlists are just
lists of content already on the iPod, so they don't need their own explicit
check. 

/Music/Songs is the contents of playlist 0 for audio (*all* audio content on
the iPod). The "/Videos/Video Playlists/~0" folder is playlist 0 for Video,
all video content on the iPod is there.

Regards,
Gilles

On 10-06-24 12:12 PM, "Artjom Dizel" <community-noreply@qnx.com> wrote:
> ok, but what about podcasts (video-podcasts), audiobooks, videos, playlists,
> the /Music/Songs folder does not contain them or am i wrong at this point?
> 
> 
> 
> _______________________________________________
> 
> Development
> http://community.qnx.com/sf/go/post57814
> 
Re: Detecting that an ipod has no content  
Ok, thanks a lot for the info.

Regards,
Artjom