Add comment info from iTunes xml file
This commit is contained in:
parent
d91ac3ff42
commit
a574c2f752
|
@ -80,6 +80,7 @@ static char *scan_xml_track_tags[] = {
|
||||||
"Compilation",
|
"Compilation",
|
||||||
"Location",
|
"Location",
|
||||||
"Date Added",
|
"Date Added",
|
||||||
|
"Comments",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -103,7 +104,7 @@ static char *scan_xml_track_tags[] = {
|
||||||
#define SCAN_XML_T_COMPILATION 15
|
#define SCAN_XML_T_COMPILATION 15
|
||||||
#define SCAN_XML_T_LOCATION 16
|
#define SCAN_XML_T_LOCATION 16
|
||||||
#define SCAN_XML_T_DATE_ADDED 17
|
#define SCAN_XML_T_DATE_ADDED 17
|
||||||
|
#define SCAN_XML_T_COMMENTS 18
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
# define TRUE 1
|
# define TRUE 1
|
||||||
|
@ -692,6 +693,7 @@ int scan_xml_tracks_section(int action, char *info) {
|
||||||
MAYBECOPYSTRING(artist);
|
MAYBECOPYSTRING(artist);
|
||||||
MAYBECOPYSTRING(album);
|
MAYBECOPYSTRING(album);
|
||||||
MAYBECOPYSTRING(genre);
|
MAYBECOPYSTRING(genre);
|
||||||
|
MAYBECOPYSTRING(comment);
|
||||||
MAYBECOPY(song_length);
|
MAYBECOPY(song_length);
|
||||||
MAYBECOPY(track);
|
MAYBECOPY(track);
|
||||||
MAYBECOPY(total_tracks);
|
MAYBECOPY(total_tracks);
|
||||||
|
@ -741,6 +743,7 @@ int scan_xml_tracks_section(int action, char *info) {
|
||||||
MAYBECOPYSTRING(artist);
|
MAYBECOPYSTRING(artist);
|
||||||
MAYBECOPYSTRING(album);
|
MAYBECOPYSTRING(album);
|
||||||
MAYBECOPYSTRING(genre);
|
MAYBECOPYSTRING(genre);
|
||||||
|
MAYBECOPYSTRING(comment);
|
||||||
MAYBECOPY(bitrate);
|
MAYBECOPY(bitrate);
|
||||||
MAYBECOPY(samplerate);
|
MAYBECOPY(samplerate);
|
||||||
MAYBECOPY(play_count);
|
MAYBECOPY(play_count);
|
||||||
|
@ -801,6 +804,8 @@ int scan_xml_tracks_section(int action, char *info) {
|
||||||
DPRINTF(E_DBG,L_SCAN,"scan_path: %s\n",song_path);
|
DPRINTF(E_DBG,L_SCAN,"scan_path: %s\n",song_path);
|
||||||
} else if(current_field == SCAN_XML_T_DATE_ADDED) {
|
} else if(current_field == SCAN_XML_T_DATE_ADDED) {
|
||||||
mp3.time_added = scan_xml_datedecode(info);
|
mp3.time_added = scan_xml_datedecode(info);
|
||||||
|
} else if(current_field == SCAN_XML_T_COMMENTS) {
|
||||||
|
mp3.comment = strdup(info);
|
||||||
}
|
}
|
||||||
} else if(action == RXML_EVT_END) {
|
} else if(action == RXML_EVT_END) {
|
||||||
state = XML_TRACK_ST_TRACK_INFO;
|
state = XML_TRACK_ST_TRACK_INFO;
|
||||||
|
|
Loading…
Reference in New Issue