File properties plugin: Add track.
Change-Id: Id8707dc28bf3a9c029066bb55ff584662b2cee6b
This commit is contained in:
parent
7035e2e2b9
commit
5ddfd37a8c
2 changed files with 19 additions and 1 deletions
|
@ -16024,3 +16024,17 @@
|
|||
*: "Year"
|
||||
</voice>
|
||||
</phrase>
|
||||
<phrase>
|
||||
id: LANG_PROPERTIES_TRACKNUM
|
||||
desc: in properties plugin
|
||||
user: core
|
||||
<source>
|
||||
*: "[Tracknum]"
|
||||
</source>
|
||||
<dest>
|
||||
*: "[Tracknum]"
|
||||
</dest>
|
||||
<voice>
|
||||
*: "Track number"
|
||||
</voice>
|
||||
</phrase>
|
||||
|
|
|
@ -40,6 +40,7 @@ char str_album[MAX_PATH];
|
|||
char str_genre[MAX_PATH];
|
||||
char str_comment[MAX_PATH];
|
||||
char str_year[MAX_PATH];
|
||||
char str_tracknum[MAX_PATH];
|
||||
char str_duration[32];
|
||||
|
||||
unsigned nseconds;
|
||||
|
@ -64,6 +65,7 @@ static const unsigned char* const props_file[] =
|
|||
ID2P(LANG_PROPERTIES_GENRE), str_genre,
|
||||
ID2P(LANG_PROPERTIES_COMMENT), str_comment,
|
||||
ID2P(LANG_PROPERTIES_YEAR), str_year,
|
||||
ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
|
||||
ID2P(LANG_PROPERTIES_DURATION), str_duration,
|
||||
};
|
||||
static const unsigned char* const props_dir[] =
|
||||
|
@ -143,7 +145,9 @@ static bool file_properties(const char* selected_file)
|
|||
"%s", id3.comment ? id3.comment : "");
|
||||
rb->snprintf(str_year, sizeof str_year,
|
||||
"%s", id3.year_string ? id3.year_string : "");
|
||||
num_properties += 8;
|
||||
rb->snprintf(str_tracknum, sizeof str_tracknum,
|
||||
"%s", id3.track_string ? id3.track_string : "");
|
||||
num_properties += 9;
|
||||
|
||||
if (dur > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue