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

so_la_la

  • Sr. Member
  • ****
  • Posts: 297
Hi and thanks for getting back.
I have tried out your suggestion and what I get is this:
I have "don't update file modification time when saving tags" ticked.
I highlight a file, select Tools, Tagging and Reporting, Copy Tag.
I tell it to write the album title into the comment.
The command is executed and the timestamp both in MB and in Windows Explorer is updated.
Music Bee 3; EAC; MP3Tag; Music on Synology NAS 115; Logitech Media Server on RPI 3; RPI 2 with Hifiberry; Poweramp for Android/Lineage

boroda

  • Sr. Member
  • ****
  • Posts: 4402
i can't reproduce this. what happens if you change some tag in tag editor (i.e. not using plugin)?

boroda

  • Sr. Member
  • ****
  • Posts: 4402
new plugin version:

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

  • pseudo-tag <Date created> (creation date/time of music file) is now available for all plugin commands. previously its usage was limited just to couple of commands
  • this tag is now writable
  • new asr preset "Example: Set creation date/time of music file to date/time, when track has been added to library" is added as an example of <Date created> pseudo-tag usage. "import new" or "import all" asr presets after plugin upgrade

so_la_la

  • Sr. Member
  • ****
  • Posts: 297
i can't reproduce this. what happens if you change some tag in tag editor (i.e. not using plugin)?
Hi there this would also update the timestamp -- I am confused...
Music Bee 3; EAC; MP3Tag; Music on Synology NAS 115; Logitech Media Server on RPI 3; RPI 2 with Hifiberry; Poweramp for Android/Lineage

boroda

  • Sr. Member
  • ****
  • Posts: 4402
try to post it on the "bug reports" board. maybe Steven could help.

Anoushka

  • Jr. Member
  • **
  • Posts: 20
Hello,
I want to use the additional tagging for batch tagging much more.
I tried to copy & edit some of the presets with regular expressions- but without success  :(
I want to achieve: Copy a tag (f.e. ".Relax Music") to another field, but without the dot. So in the other field should be then "Relax Music".
I searched the web for the regular expressions and tested them on regular-expression-test-sites ([^.]). There my tests were succesful, but not in the plugin. I tried it in different variations- without success....
I think, it should be easy, but....
Please help....

hiccup

  • Sr. Member
  • ****
  • Posts: 7299
I searched the web for the regular expressions and tested them on regular-expression-test-sites ([^.]). There my tests were succesful, but not in the plugin. I tried it
Can you be specific on what you tried exactly?
It's a bit vague to me.

boroda

  • Sr. Member
  • ****
  • Posts: 4402
Hello,
I want to use the additional tagging for batch tagging much more.
I tried to copy & edit some of the presets with regular expressions- but without success  :(
I want to achieve: Copy a tag (f.e. ".Relax Music") to another field, but without the dot. So in the other field should be then "Relax Music".
I searched the web for the regular expressions and tested them on regular-expression-test-sites ([^.]). There my tests were succesful, but not in the plugin. I tried it in different variations- without success....
I think, it should be easy, but....
Please help....
it's strange that [^.] is working somewhere because it means "search either for beginning of string or any symbol" (unescaped dot means "any symbol" in regex). what is working for me is:

search for ^\.?(.*)

replace by $1

phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 8924
For new users of the Advanced Search & Replace function of this plugin, and even for us oldsters, here's (at least to me) a (formerly) hidden feature:

for the info for future users:

1. if any asr preset is ticked the color of warning text at the top of asr window is changed
2. to easily see all ticked presets (and only ticked presets) tick the checkbox in the yellow frame on screenshot:




Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

Anoushka

  • Jr. Member
  • **
  • Posts: 20
Hello boroda,

yeah,
Quote
search for ^\.?(.*)

replace by $1
works :-)
Thanks a lot!!
But: Could you please tell me, what the characters mean? I'd like to understand things, not only to copy them.
^ =Beginning of the line, right?
\. =escaped dot? But dot is not a special character, is it? So, why escaped?
Does the ? after the dot mean, "do not match dot"? Nowhere I found, that a ? after a character negates it...
(.*) =find any character in any number of times, right?

My test before: In f.e. https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference?redirectedfrom=MSDN (and other regular expression learning sites) it is explained like this: [^ character_group ] Negation: Matches any single character that is not in character_group. By default, characters in character_group are case-sensitive. [^aei] Finds "r", "g", "n" in "reign".

@hiccup: I am really sorry, I cannot tell you so much more about my testings. About 30 variations I had- I do not remember anymore. Something like ^[^.](.*) & [^.](.*) & (.*)[^.] & ^(.*)[^.] & ([^.].*) & ^([^.].*) and so on and so on...  and another site said, that ?! also negates, this I tried also in many variations.

boroda

  • Sr. Member
  • ****
  • Posts: 4402
^=yes, beginning of line
.="any character", \.=literally "dot"
?=previous character or pattern must be encountered 0 or 1 time (i.e. dot literal must be used 1 time or not used at all in the pointed search pattern)
.*="any character matched any number of times", (.*)=capture .* as $1 ($1 because parenthesis are used 1st time (when read from left to right) in search pattern)

you can see the link to regex language here:



--------------

yes, sorry, ^ inside brackets has different meaning. it's negation. dot inside brackets has different meaning also, it's just dot. that is [^.] means "not dot". so 1st character will be skipped from capture $1 (inside following parenthesis) if 1st char is not dot
Last Edit: October 14, 2022, 02:51:04 PM by boroda

hiccup

  • Sr. Member
  • ****
  • Posts: 7299
you can see the link to regex language here:

It never occurred to me to click on that sentence.
Probably because I didn't consider or understand it to have some useful function.

Perhaps it would be better if it was renamed to something like:
Microsoft Regular Expression Quick Guide
?



phred

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 8924
Perhaps it would be better if it was renamed to something like:
Microsoft Regular Expression Quick Guide
+1
I never realized that was a click-able link.
Download the latest MusicBee v3.5 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Posting screenshots is here
Searching the forum with Google is  here

Anoushka

  • Jr. Member
  • **
  • Posts: 20
Hello boroda,
thanks for your explanation :-) But... still I do not really understand, why yours is working and mine not. Maybe my IQ is not high enough ;-) But I think, I do not understand because my english is not good enough & because of technical terms.  :-[
Or I just don't understand the basic. [^.] means "not dot". (.*) means "any character in any number. So it should find everything except dot and copy the found (without dot because it didn't found dot) into the other field. But it doesn't...
^\.?(.*): With your explanation it should find anything with no or one dot and copy the found into the other field. But it copies the found without dot...

But I already have other questions...
I'd like to get rid of other programs for my music-editing and because of that hoping to find MB-solutions for the following wishes:
* Batch resizing of Covers: I read, it is not (easy) possible in MB. Maybe, it could be possible with this plugin??
* Copy the field-value from one folder to another: F.e. I have track "Song" in the "Records"-folder with correct genres. And the same track in the "All bands"-folder with incorrect genres. At the moment I copy them always manually but would love to do it in a more easier & faster way :-)
* Delete all unnecessary fields /their values and keep only my wanted fields with their values- in one step.
* For my MP3-Player my files have to be with tag types ID3v2.3 and without other types. With foobar2000 I can control that and if needed I can correct it in an easy way. Is that possible in MB too?

 ;D  8) Of course I noticed the regex-link in the plugin and used it already- it's the one I mentioned above ;-)

Thanx for your help :-)
Anoushka
Last Edit: October 17, 2022, 09:24:26 PM by Anoushka

codingduo

  • Newbie
  • *
  • Posts: 19
Hi borodo,

thank you for your wonderful plugin! It adds so many useful features to MB.

One issue I noticed in the more recent version:

Two buttons in the advanced search & replace window are cut off:



I'm running MB 3.5.8296 portable on Windows 11 Version 21H2 (Build 22000.1098).


And by the way: is it possible to increase the amount of assignable hotkeys to like 50? This would be awesome.

Thank you!