简体   繁体   English

编辑taglib-sharp(音频元数据)的源代码

[英]Editing source code of taglib-sharp (audio metadata)

I'm using a program within Powershell called MPTag (Found here: http://powershell.com/cs/media/p/9129.aspx ). 我正在Powershell中使用一个名为MPTag的程序(位于此处: http ://powershell.com/cs/media/p/9129.aspx)。 I want to be able to add a leading zero to track numbers if they are single digits (ie. I want "Track 1" to be "Track 01") but MPTag doesn't seem to accept these leading zeroes (tried putting them in quotes, as a .tostring , etc.). 我希望能够添加一个前导零来跟踪数字(如果它们是个位数)(即,我希望“ Track 1”成为“ Track 01”),但是MPTag似乎不接受这些前导零(尝试将它们放入引号,例如.tostring等)。

Is it possible to edit the source code of MPTag (which uses a copy of taglib-sharp.dll) to accept the leading zeroes? 是否可以编辑MPTag(使用taglib-sharp.dll的副本)的源代码来接受前导零? Maybe changing a variable to a string rather than an integer? 也许将变量更改为字符串而不是整数?

I've downloaded Telerik JustDecompile and the editing extension Reflexil, and I've found variables that affect the track number, but I don't know what steps need to be taken now to make the changes I want. 我已经下载了Telerik JustDecompile和编辑扩展Reflexil,并且找到了影响音轨编号的变量,但是我不知道现在需要采取什么步骤来进行所需的更改。 In Reflexil, I can see that I can change variables and calls from system.Uint to system.string. 在Reflexil中,我看到可以将变量和调用从system.Uint更改为system.string。 Can someone chime in and help me finish the job? 有人可以帮忙完成我的工作吗? Thanks for any assistance. 感谢您的协助。

EDIT: work-around solution I've found is to use FFMPEG's metadata editor. 编辑:我发现的解决方法是使用FFMPEG的元数据编辑器。 It allows you to write the leading zero. 它允许您写入前导零。 More info on this wiki page . 有关此Wiki页面的更多信息。

我认为即使您尝试手动执行此操作也完全不可能,它将设置为1而不是01。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM