Skip to content

Publisher tag isn't working for WMA files, works fine for FLAC, MP3, and WAV files #372

Open
@jemiller00

Description

@jemiller00

I'm trying to set the Publisher tag on WMA files as well as FLAC, MP3, and WAV files. FLAC, MP3, and WAV are all working fine, but, WMA is not.

Previously, I was using a different library from Microsoft to set the tags and found that the publisher tag is stored as "WM/Publisher".

If I read the tags out of the file, I find that the Tag.Publisher property is null. However, I can see that WM/Publisher is set in the file and I'm able to retrieve the value using the following code. This was set using Microsoft's library on Windows 10.

        file = File.Create(path);
        var publisher = ((TagLib.Asf.Tag)file.Tag).SingleOrDefault(cd2 => cd2.Name == "WM/Publisher")?.ToString();

I'm thinking there is a bug and maybe it's using a different field or something?

However, if I try to save the file using TagLibSharp, it is not saving the value.

I tested the code on equivalent FLAC, MP3, and WAV files, and it works fine for all of those. Just not for WMA.

If it's a bug, I'm wondering if there is a workaround, where I can set the value as one of the extra attributes that I was able to retrieve using the ExtendedContentDescriptionObject collection?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions