forked from len0rd/rockbox
Added possibility for conditionals for the song rating and codec type WPS tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7440 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d887c176c1
commit
ef197fbc99
1 changed files with 2 additions and 0 deletions
|
@ -616,6 +616,7 @@ static char* get_tag(struct mp3entry* cid3,
|
|||
return buf;
|
||||
|
||||
case 'c': /* File Codec */
|
||||
*intval = id3->codectype+1;
|
||||
return id3_get_codec(id3);
|
||||
}
|
||||
break;
|
||||
|
@ -834,6 +835,7 @@ static char* get_tag(struct mp3entry* cid3,
|
|||
return buf;
|
||||
case 'r': /* Rating */
|
||||
*flags |= WPS_REFRESH_STATIC;
|
||||
*intval = cid3->rating+1;
|
||||
snprintf(buf, buf_size, "%d", cid3->rating);
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue