Author Topic: Additional Tagging & Reporting Tools  (Read 1154892 times)

pqraz

  • Newbie
  • *
  • Posts: 1
I can't get the Tools submenu to appear. I have tried what's been said here, such as by cjoprey below, and have also tried installing the plugin through the 'Add Plugin' option in Musicbee, aswell as by just placing the zip files in Plugins in Appdata/Roaming/Musicbee but the tools menu wont appear. The plugin shows up in the Preferences/Plugins menu and is enabled but the tools menu doesn't appear.
There are two ErrorLog txts files in my Roaming/Musicbee folder, one called TagTools.PropNamesErrorLog and another called TagTools.TagNamesErrorLog. Here is a sample of some of the text:
Adding URL / Url
Adding Kind / Kind
Adding Format / Format
Adding Size / Size
Adding Channels / Channels
Adding Sample Rate / SampleRate

I have also tried a fresh install, removing all files that I could find in Program Files and in Appdata, but it hasn't made a difference.

Thanks @frankz - tried that and it looked OK, but it did show me that there is a file called "mb_TagTools.Settings.xml" in the AppData folder. Deleted that file,moved the entry for tagtools from the musicbee3settings.ini file, and deleted the mb_tagtools.dll in Plugins. Then restarted musicbee and re-added the plugin from the zip file and all is working again - I can only assume a corrupt XML file. Thanks all for the help, and I hope my solution can help others in future. :)

Dizza17

  • Full Member
  • ***
  • Posts: 186
Hi Boroda,
using the latest version of the plug-in and mb, when trying to use the copy tags to clipboard command, this error appears and doesn;t initiate command window as expected. let me know if you require further info.
MusicBee v3.6.9158.37233P  (Win10.0), 28 Jan 2025 5:27:

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at MusicBeePlugin.CopyTagsToClipboard.tagSetComboBox_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
   at System.Windows.Forms.Control.set_Text(String value)
   at System.Windows.Forms.TextBoxBase.set_Text(String value)
   at System.Windows.Forms.TextBox.set_Text(String value)
   at MusicBeePlugin.CustomComboBox.set_SelectedIndex(Int32 value)
   at MusicBeePlugin.CopyTagsToClipboard.tagSetComboBox_SelectedIndexChanged(Object sender, EventArgs e)
   at MusicBeePlugin.CopyTagsToClipboard.initializeForm()
   at MusicBeePlugin.PluginWindowTemplate.PluginWindowTemplate_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at MusicBeePlugin.PluginWindowTemplate.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
When the rich wage war, it’s the poor who suffer.

KenDavies

  • Newbie
  • *
  • Posts: 16
Hi Boroda, Thanks for the superb plugin. Using the latest version I'm getting a similar error to above when I try to copy tags to clipboard:

MusicBee v3.6.9171.28201P  (Win10.0), 15 Feb 2025 8:52:

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at MusicBeePlugin.CopyTagsToClipboard.tagSetComboBox_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
   at System.Windows.Forms.Control.set_Text(String value)
   at System.Windows.Forms.TextBoxBase.set_Text(String value)
   at System.Windows.Forms.TextBox.set_Text(String value)
   at MusicBeePlugin.CustomComboBox.set_SelectedIndex(Int32 value)
   at MusicBeePlugin.CopyTagsToClipboard.tagSetComboBox_SelectedIndexChanged(Object sender, EventArgs e)
   at MusicBeePlugin.CopyTagsToClipboard.initializeForm()
   at MusicBeePlugin.PluginWindowTemplate.PluginWindowTemplate_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at MusicBeePlugin.PluginWindowTemplate.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The actual copy tags window then appears but almost off the top of the screen. The only part of the window I can see is the "Copy" and "Close" buttons. This may be a Windows issue but it's not something that's happened before.
Last Edit: February 15, 2025, 09:11:53 AM by KenDavies

miste

  • Newbie
  • *
  • Posts: 8
I updated to the latest version, however, the presets I created on version 8 are not being imported, it shows an error message "Preset Failed to import due to file read error or wrong format "
They were exported as XLM file

SteelDragon

  • Newbie
  • *
  • Posts: 4
I updated to the latest version, however, the presets I created on version 8 are not being imported, it shows an error message "Preset Failed to import due to file read error or wrong format "
They were exported as XLM file

same problem here.
I've noticed also that the new added custom17, custom18, custom19 and custom20 tags from the musicbee 3.6 update are missing within the Advanced Search & Replace Plugin. Also not available in Additional Tagging & Reporting Tools.

whoozwah

  • Jr. Member
  • **
  • Posts: 24
I am running into an issue and it might be logic related. I want to link the ratings field to the love field. If the rating is 3.5 then the song should be Loved and vice versa, if the song is loved, then the rating should be 3.5. I can make a rule that defines this independently but it doesn't work simultaneously. I need it to work both ways to link the value of these fields and I'm having a heck of a time figuring out how to do it. I've been trying to use ASR presets for this. Any help is appreciated.

boroda

  • Hero Member
  • *****
  • Posts: 5171
hi, all. for all 'incorrect preset format' errors see here all recent plugin versions:

https://github.com/boroda74/TagTools/releases

1st downgrade to 9.0, then import your presets, then upgrade to 9.1/9.2

boroda

  • Hero Member
  • *****
  • Posts: 5171
I can't get the Tools submenu to appear. I have tried what's been said here, such as by cjoprey below, and have also tried installing the plugin through the 'Add Plugin' option in Musicbee, aswell as by just placing the zip files in Plugins in Appdata/Roaming/Musicbee but the tools menu wont appear. The plugin shows up in the Preferences/Plugins menu and is enabled but the tools menu doesn't appear.
There are two ErrorLog txts files in my Roaming/Musicbee folder, one called TagTools.PropNamesErrorLog and another called TagTools.TagNamesErrorLog. Here is a sample of some of the text:
Adding URL / Url
Adding Kind / Kind
Adding Format / Format
Adding Size / Size
Adding Channels / Channels
Adding Sample Rate / SampleRate

I have also tried a fresh install, removing all files that I could find in Program Files and in Appdata, but it hasn't made a difference.

Thanks @frankz - tried that and it looked OK, but it did show me that there is a file called "mb_TagTools.Settings.xml" in the AppData folder. Deleted that file,moved the entry for tagtools from the musicbee3settings.ini file, and deleted the mb_tagtools.dll in Plugins. Then restarted musicbee and re-added the plugin from the zip file and all is working again - I can only assume a corrupt XML file. Thanks all for the help, and I hope my solution can help others in future. :)

post both full logs. also, try to wait 2-3 sec. after MB startup before using MB menu.

edit: is plugin context menu shown? if it is then the problem is definitely that you are trying to use MB menu too quickly. it's not the plugin issue, it's MB issue, but i'll try to fix again.
Last Edit: February 26, 2025, 02:22:13 AM by boroda

boroda

  • Hero Member
  • *****
  • Posts: 5171
Hi Boroda,
using the latest version of the plug-in and mb, when trying to use the copy tags to clipboard command, this error appears and doesn;t initiate command window as expected. let me know if you require further info.
MusicBee v3.6.9158.37233P  (Win10.0), 28 Jan 2025 5:27:

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)

i can reproduce this. will fix it now.

boroda

  • Hero Member
  • *****
  • Posts: 5171
I am running into an issue and it might be logic related. I want to link the ratings field to the love field. If the rating is 3.5 then the song should be Loved and vice versa, if the song is loved, then the rating should be 3.5. I can make a rule that defines this independently but it doesn't work simultaneously. I need it to work both ways to link the value of these fields and I'm having a heck of a time figuring out how to do it. I've been trying to use ASR presets for this. Any help is appreciated.

it's definitely possible. i'll upload ASR preset later.

boroda

  • Hero Member
  • *****
  • Posts: 5171
I've noticed also that the new added custom17, custom18, custom19 and custom20 tags from the musicbee 3.6 update are missing within the Advanced Search & Replace Plugin. Also not available in Additional Tagging & Reporting Tools.

new custom (and virtual) tags, which have been introduced in MB 3.6, have been added to plugin in the version 9.2 (not from the beginning, in some later build).
Last Edit: February 26, 2025, 09:55:03 PM by boroda

boroda

  • Hero Member
  • *****
  • Posts: 5171
Hi Boroda,
using the latest version of the plug-in and mb, when trying to use the copy tags to clipboard command, this error appears and doesn;t initiate command window as expected. let me know if you require further info.
MusicBee v3.6.9158.37233P  (Win10.0), 28 Jan 2025 5:27:

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)

Version 9.2 Update 11 (9.2.9188)

* "Copy tags to clipboard" bug fix, when using skin colors

https://www.mediafire.com/file/h2t08o9562efboi/mb_TagTools_latest.zip/file

Full plugin package:

https://www.mediafire.com/file/dm3rhfze89n3qwi/Additional-Tagging-Tools-Plugin.zip/file

Dizza17

  • Full Member
  • ***
  • Posts: 186
Thanks Boroda,
Just wondering what the file limit is regarding creating a library report? The main library screen seems to not even attempt to create the report for anything over 12 000 files but even then you have to limit how many tags you want it to have.

Cheers Aaron
When the rich wage war, it’s the poor who suffer.

boroda

  • Hero Member
  • *****
  • Posts: 5171
i don't think that there is some practical limit IF you don't include artworks in report AND IF you tick option "Hide preview". you won't see preview in plugin, but you still will be able to export report to file. (and check report in notepad++/excel/web browser)

 by the way, hiding preview speeds up report generation dramatically. (dozens of times faster)

Dizza17

  • Full Member
  • ***
  • Posts: 186
Interesting, I’ll definitely have to do more testing. On a number of occasions I’ve tried to create a report with no artwork and hide preview ticked and there’s no response from the window to indicate that report generation is in progress. Even after waiting 10-15 minutes there’s no file to export. I would have expected the window to go into non responsive mode due to the intense work of it generating the report as it has done in the past.
When the rich wage war, it’s the poor who suffer.