Home | History | Annotate | Download | only in examples

Lines Matching defs:album

56   fprintf(stderr, "-t <title> -a <artist> -A <Album artist> -w <writer or composer>\n");
57 fprintf(stderr, " -l <album> -c <codec> -g <genre> -n <track number> -y <year>\n");
92 LIBMTP_album_t *album;
97 /* Look for the album */
98 album = LIBMTP_Get_Album_List(device);
99 album_orig = album;
100 while(album != NULL) {
101 if ((album->name != NULL &&
102 album->artist != NULL &&
103 !strcmp(album->name, albuminfo->name) &&
104 !strcmp(album->artist, albuminfo->artist)) ||
105 (album->name != NULL &&
106 album->composer != NULL &&
107 !strcmp(album->name, albuminfo->name) &&
108 !strcmp(album->composer, albuminfo->composer))) {
109 /* Disconnect this album for later use */
110 found_album = album;
111 album = album->next;
114 album = album->next;
119 printf("Could not find Album. Retrying with only Album name\n");
120 album = album_orig;
121 while(album != NULL) {
122 if ((album->name != NULL) &&
123 !strcmp(album->name, albuminfo->name) ){
124 /* Disconnect this album for later use */
125 found_album = album;
126 album = album->next;
129 album = album->next;
138 printf("Album \"%s\" found: updating...\n", found_album->name);
159 printf("Album doesn't exist: creating...\n");
164 /* Delete the earlier retrieved Album list */
165 album=album_orig;
166 while(album!=NULL){
169 tmp = album;
170 album = album->next;
175 printf("Error creating or updating album.\n");
188 char artist[80], albumartist[80], title[80], genre[80], album[80], composer[80];
240 if ( (palbum = prompt("Album", album, 80, 0)) != NULL )
245 if ( (palbumartist = prompt("Album artist", albumartist, 80, 0)) != NULL )
298 printf("Album: %s\n", palbum);
299 trackmeta->album = strdup(palbum);
303 printf("Album artist: %s\n", palbumartist);
379 /* Add here add to album call */