Tags: Implement unsynced lyrics into TagLib plugin
Implement unsynced lyrics reading into TagLib frontend plugin. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
a21242db55
commit
e66b01b6db
|
@ -60,7 +60,7 @@
|
|||
const TagLib::Tag *tag = f.tag();
|
||||
|
||||
if(tag) {
|
||||
TagLib::String artist, albumartist, title, album, genre, comment;
|
||||
TagLib::String artist, albumartist, title, album, genre, comment, unsyncedlyrics;
|
||||
int year, track, disc;
|
||||
float rgAlbumGain, rgAlbumPeak, rgTrackGain, rgTrackPeak;
|
||||
TagLib::String cuesheet;
|
||||
|
@ -73,6 +73,7 @@
|
|||
genre = tag->genre();
|
||||
comment = tag->comment();
|
||||
cuesheet = tag->cuesheet();
|
||||
unsyncedlyrics = tag->unsyncedlyrics();
|
||||
|
||||
year = tag->year();
|
||||
[dict setObject:@(year) forKey:@"year"];
|
||||
|
@ -131,6 +132,9 @@
|
|||
if(!comment.isEmpty())
|
||||
[dict setObject:[NSString stringWithUTF8String:comment.toCString(true)] forKey:@"comment"];
|
||||
|
||||
if(!unsyncedlyrics.isEmpty())
|
||||
[dict setObject:[NSString stringWithUTF8String:unsyncedlyrics.toCString(true)] forKey:@"unsyncedlyrics"];
|
||||
|
||||
// Try to load the image.
|
||||
NSData *image = nil;
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
const TagLib::Tag *tag = f.tag();
|
||||
|
||||
if(tag) {
|
||||
TagLib::String artist, albumartist, title, album, genre, comment;
|
||||
TagLib::String artist, albumartist, title, album, genre, comment, unsyncedlyrics;
|
||||
int year, track, disc;
|
||||
float rgAlbumGain, rgAlbumPeak, rgTrackGain, rgTrackPeak;
|
||||
TagLib::String cuesheet;
|
||||
|
@ -88,6 +88,8 @@
|
|||
comment = tag->comment();
|
||||
cuesheet = tag->cuesheet();
|
||||
|
||||
unsyncedlyrics = tag->unsyncedlyrics();
|
||||
|
||||
year = tag->year();
|
||||
[dict setObject:@(year) forKey:@"year"];
|
||||
|
||||
|
@ -144,6 +146,9 @@
|
|||
|
||||
if(!comment.isEmpty())
|
||||
[dict setObject:[NSString stringWithUTF8String:comment.toCString(true)] forKey:@"comment"];
|
||||
|
||||
if(!unsyncedlyrics.isEmpty())
|
||||
[dict setObject:[NSString stringWithUTF8String:unsyncedlyrics.toCString(true)] forKey:@"unsyncedlyrics"];
|
||||
}
|
||||
|
||||
// Try to load the image.
|
||||
|
|
Loading…
Reference in New Issue