mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 20:15:41 -04:00
new dmap atoms
This commit is contained in:
parent
f0ee070937
commit
5163942322
@ -233,25 +233,27 @@ DAAP_ITEMS taglist[] = {
|
|||||||
|
|
||||||
/* iTunes 5.0+ */
|
/* iTunes 5.0+ */
|
||||||
{ 0x01, "ascr", "daap.songcontentrating" },
|
{ 0x01, "ascr", "daap.songcontentrating" },
|
||||||
{ 0x05, "f" "\x8d" "ch", "dmap.haschildcontainers" }, /* wtf - content codes says it's 1 */
|
{ 0x01, "f" "\x8d" "ch", "dmap.haschildcontainers" },
|
||||||
|
|
||||||
/* iTunes 6.0.2+ */
|
/* iTunes 6.0.2+ */
|
||||||
{ 0x01, "aeHV", "com.apple.itunes.has-video" },
|
{ 0x01, "aeHV", "com.apple.itunes.has-video" },
|
||||||
|
|
||||||
/* iTunes 6.0.4+ */
|
/* iTunes 6.0.4+ */
|
||||||
/*
|
{ 0x05, "msas", "dmap.authenticationschemes" },
|
||||||
daap.songcategory
|
{ 0x09, "asct", "daap.songcategory" },
|
||||||
daap.songcontentdescription
|
{ 0x09, "ascn", "daap.songcontentdescription" },
|
||||||
daap.songkeywords
|
{ 0x09, "aslc", "daap.songlongcontentdescription" },
|
||||||
com.apple.itunes.is-podcast
|
{ 0x09, "asky", "daap.songkeywords" },
|
||||||
com.apple.itunes.mediakind
|
{ 0x01, "apsm", "daap.playlistshufflemode" },
|
||||||
com.apple.itunes.series-name
|
{ 0x01, "aprm", "daap.playlistrepeatmode" },
|
||||||
com.apple.itunes.network-name
|
{ 0x01, "aePC", "com.apple.itunes.is-podcast" },
|
||||||
com.apple.itunes.episode-num-str
|
{ 0x01, "aePP", "com.apple.itunes.is-podcast-playlist" },
|
||||||
com.apple.itunes.episode-sort
|
{ 0x01, "aeMK", "com.apple.itunes.mediakind" },
|
||||||
com.apple.itunes.season-num
|
{ 0x09, "aeSN", "com.apple.itunes.series-name" },
|
||||||
com.apple.itunes.is-podcast-playlist
|
{ 0x09, "aeNN", "com.apple.itunes.network-name" },
|
||||||
*/
|
{ 0x09, "aeEN", "com.apple.itunes.episode-num-str" },
|
||||||
|
{ 0x05, "aeES", "com.apple.itunes.episode-sort" },
|
||||||
|
{ 0x05, "aeSU", "com.apple.itunes.season-num" },
|
||||||
|
|
||||||
/* mt-daapd specific */
|
/* mt-daapd specific */
|
||||||
{ 0x09, "MSPS", "org.mt-daapd.smart-playlist-spec" },
|
{ 0x09, "MSPS", "org.mt-daapd.smart-playlist-spec" },
|
||||||
|
@ -120,11 +120,28 @@ DAAP_ITEMS taglist[] = {
|
|||||||
|
|
||||||
/* iTunes 5.0+ */
|
/* iTunes 5.0+ */
|
||||||
{ 0x01, "ascr", "daap.songcontentrating" },
|
{ 0x01, "ascr", "daap.songcontentrating" },
|
||||||
{ 0x05, "f" "\x8d" "ch", "dmap.haschildcontainers" }, /* wtf - content codes says it's 1 */
|
{ 0x01, "f" "\x8d" "ch", "dmap.haschildcontainers" }, /* was 5? */
|
||||||
|
|
||||||
/* iTunes 6.0.2+ */
|
/* iTunes 6.0.2+ */
|
||||||
{ 0x01, "aeHV", "com.apple.itunes.has-video" },
|
{ 0x01, "aeHV", "com.apple.itunes.has-video" },
|
||||||
|
|
||||||
|
/* iTunes 6.0.4+ */
|
||||||
|
{ 0x05, "msas", "dmap.authenticationschemes" },
|
||||||
|
{ 0x09, "asct", "daap.songcategory" },
|
||||||
|
{ 0x09, "ascn", "daap.songcontentdescription" },
|
||||||
|
{ 0x09, "aslc", "daap.songlongcontentdescription" },
|
||||||
|
{ 0x09, "asky", "daap.songkeywords" },
|
||||||
|
{ 0x01, "apsm", "daap.playlistshufflemode" },
|
||||||
|
{ 0x01, "aprm", "daap.playlistrepeatmode" },
|
||||||
|
{ 0x01, "aePC", "com.apple.itunes.is-podcast" },
|
||||||
|
{ 0x01, "aePP", "com.apple.itunes.is-podcast-playlist" },
|
||||||
|
{ 0x01, "aeMK", "com.apple.itunes.mediakind" },
|
||||||
|
{ 0x09, "aeSN", "com.apple.itunes.series-name" },
|
||||||
|
{ 0x09, "aeNN", "com.apple.itunes.network-name" },
|
||||||
|
{ 0x09, "aeEN", "com.apple.itunes.episode-num-str" },
|
||||||
|
{ 0x05, "aeES", "com.apple.itunes.episode-sort" },
|
||||||
|
{ 0x05, "aeSU", "com.apple.itunes.season-num" },
|
||||||
|
|
||||||
/* mt-daapd specific */
|
/* mt-daapd specific */
|
||||||
{ 0x09, "MSPS", "org.mt-daapd.smart-playlist-spec" },
|
{ 0x09, "MSPS", "org.mt-daapd.smart-playlist-spec" },
|
||||||
{ 0x01, "MPTY", "org.mt-daapd.playlist-type" },
|
{ 0x01, "MPTY", "org.mt-daapd.playlist-type" },
|
||||||
@ -211,7 +228,16 @@ int decode_tag(FILE *fout, char *current, int level, int len) {
|
|||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(strcmp(tag,"mcnm") == 0) {
|
||||||
|
sprintf(templine,"%c%c%c%c (%04x)\n",
|
||||||
|
*((char*)current),
|
||||||
|
*((char*)current+1),
|
||||||
|
*((char*)current+2),
|
||||||
|
*((char*)current+3),
|
||||||
|
*((int*)current));
|
||||||
|
} else {
|
||||||
sprintf(templine,"%04x (%d)\n",*((int*)current),*((int*)current));
|
sprintf(templine,"%04x (%d)\n",*((int*)current),*((int*)current));
|
||||||
|
}
|
||||||
current += 4;
|
current += 4;
|
||||||
len -= 4;
|
len -= 4;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user