Correct attribute names "Audio" -> "Media" (#9316)
A few attribute names that used to be "Audio:..." were changed a while ago to the more general "Media:...". Applied those changes. Fixes #9316, thanks ttcoder!
This commit is contained in:
@@ -247,15 +247,15 @@ CDDBDaemon::_WriteCDData(dev_t device, QueryResponseData* diskData,
|
|||||||
|
|
||||||
// Add relevant attributes. We consider an error here as non-fatal.
|
// Add relevant attributes. We consider an error here as non-fatal.
|
||||||
BNode node(&entry);
|
BNode node(&entry);
|
||||||
node.WriteAttr("Audio:Title", B_STRING_TYPE, 0, (data->title).String(),
|
node.WriteAttr("Media:Title", B_STRING_TYPE, 0, (data->title).String(),
|
||||||
(data->title).Length());
|
(data->title).Length());
|
||||||
node.WriteAttr("Audio:Album", B_STRING_TYPE, 0,
|
node.WriteAttr("Audio:Album", B_STRING_TYPE, 0,
|
||||||
(readResponse->title).String(),
|
(readResponse->title).String(),
|
||||||
(readResponse->title).Length());
|
(readResponse->title).Length());
|
||||||
node.WriteAttr("Audio:Genre", B_STRING_TYPE, 0,
|
node.WriteAttr("Media:Genre", B_STRING_TYPE, 0,
|
||||||
(readResponse->genre).String(),
|
(readResponse->genre).String(),
|
||||||
(readResponse->genre).Length());
|
(readResponse->genre).Length());
|
||||||
node.WriteAttr("Audio:Year", B_INT32_TYPE, 0, &(readResponse->year),
|
node.WriteAttr("Media:Year", B_INT32_TYPE, 0, &(readResponse->year),
|
||||||
sizeof(int32));
|
sizeof(int32));
|
||||||
|
|
||||||
if (data->artist == "") {
|
if (data->artist == "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user