Skip to content

Commit

Permalink
Add true parameter to tag functions to preserve unicode characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowLight8 authored and dkulp committed Oct 31, 2023
1 parent 80ae56f commit 2b95475
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mediadetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ void MediaDetails::ParseMedia(const char* mediaFilename) {

TagLib::Tag* tag = f.tag();

title = tag->title().toCString();
artist = tag->artist().toCString();
album = tag->album().toCString();
title = tag->title().toCString(true);
artist = tag->artist().toCString(true);
album = tag->album().toCString(true);
year = tag->year();
comment = tag->comment().toCString();
comment = tag->comment().toCString(true);
track = tag->track();
genre = tag->genre().toCString();
genre = tag->genre().toCString(true);

if (f.audioProperties()) {
TagLib::AudioProperties* properties = f.audioProperties();
Expand Down

0 comments on commit 2b95475

Please sign in to comment.