UniversalMusicController/metadata.c
2020-05-29 20:27:46 +02:00

25 lines
623 B
C

#include "metadata.h"
#include <stdio.h>
#include <stdlib.h>
void printSong( struct song_metadata *song ) {
if ( song->title == NULL )
return;
printf( "%s - %s\n", song->title, song->artist );
}
void printMeta( struct song_metadata *song ) {
if ( song->title == NULL )
return;
printf( "TITLE: %s\nALBUM: %s\nARTIST: %s\n", song->title, song->album,
song->artist );
if ( song->year != NULL ) {
printf( "YEAR: %s\n", song->year );
}
printf( "FILE: %s\n", song->file );
if ( song->art_uri != NULL ) {
printf( "ART: %s\n", song->art_uri );
}
}