diff -ru ../mythplugins-0.18.1/mythmusic/mythmusic/main.cpp mythmusic/mythmusic/main.cpp
old
|
new
|
|
191 | 191 | { |
192 | 192 | while (query.next()) |
193 | 193 | { |
194 | | QString name = directory + QString::fromUtf8(query.value(0).toString()); |
| 194 | QString name = directory + QString::fromAscii(query.value(0).toString()); |
195 | 195 | if (name != QString::null) |
196 | 196 | { |
197 | 197 | if ((iter = music_files.find(name)) != music_files.end()) |
… |
… |
|
223 | 223 | |
224 | 224 | query.prepare("DELETE FROM musicmetadata WHERE " |
225 | 225 | "filename = :NAME ;"); |
226 | | query.bindValue(":NAME", name.utf8()); |
| 226 | query.bindValue(":NAME", name.ascii()); |
227 | 227 | query.exec(); |
228 | 228 | } |
229 | 229 | |
diff -ru ../mythplugins-0.18.1/mythmusic/mythmusic/metadata.cpp mythmusic/mythmusic/metadata.cpp
old
|
new
|
|
99 | 99 | query.prepare("SELECT artist,compilation_artist,album,title,genre,year,tracknum," |
100 | 100 | "length,intid,rating,playcount,lastplay,compilation FROM " |
101 | 101 | "musicmetadata WHERE filename = :FILENAME ;"); |
102 | | query.bindValue(":FILENAME", sqlfilename.utf8()); |
| 102 | query.bindValue(":FILENAME", sqlfilename.ascii()); |
103 | 103 | |
104 | 104 | if (query.exec() && query.isActive() && query.size() > 0) |
105 | 105 | { |
… |
… |
|
175 | 175 | query.bindValue(":YEAR", year); |
176 | 176 | query.bindValue(":TRACKNUM", tracknum); |
177 | 177 | query.bindValue(":LENGTH", length); |
178 | | query.bindValue(":FILENAME", sqlfilename.utf8()); |
| 178 | query.bindValue(":FILENAME", sqlfilename.ascii()); |
179 | 179 | query.bindValue(":COMPILATION", compilation); |
180 | 180 | query.bindValue(":DATE_ADDED", QDate::currentDate()); |
181 | 181 | |
… |
… |
|
505 | 505 | year = query.value(5).toInt(); |
506 | 506 | tracknum = query.value(6).toInt(); |
507 | 507 | length = query.value(7).toInt(); |
508 | | filename = QString::fromUtf8(query.value(8).toString()); |
| 508 | filename = QString::fromAscii(query.value(8).toString()); |
509 | 509 | id = query.value(9).toUInt(); |
510 | 510 | rating = query.value(10).toInt(); |
511 | 511 | playcount = query.value(11).toInt(); |
… |
… |
|
541 | 541 | year = query.value(6).toInt(); |
542 | 542 | tracknum = query.value(7).toInt(); |
543 | 543 | length = query.value(8).toInt(); |
544 | | filename = QString::fromUtf8(query.value(9).toString()); |
| 544 | filename = QString::fromAscii(query.value(9).toString()); |
545 | 545 | rating = query.value(10).toInt(); |
546 | 546 | playcount = query.value(11).toInt(); |
547 | 547 | lastplay = query.value(12).toString(); |
… |
… |
|
690 | 690 | { |
691 | 691 | while (query.next()) |
692 | 692 | { |
693 | | filename = QString::fromUtf8(query.value(9).toString()); |
| 693 | filename = QString::fromAscii(query.value(9).toString()); |
694 | 694 | if (!filename.contains("://")) |
695 | 695 | filename = startdir + filename; |
696 | 696 | |