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