ghDaYuYu / foo_discogger

Discogger
57 stars 0 forks source link

numerical suffixes on artist names #83

Closed 50svn closed 2 years ago

50svn commented 2 years ago

had to use replace function to get rid of numerical suffixes on artist names in different tags

something like this $replace($joinnames(%<ARTISTS_NAME>%,%<ARTISTS_JOIN>%),' (2)',,' (3)',,' (4)',,' (5)',,' (6)',,' (7)',,' (8)',,' (9)',,' (10)',,' (11)',,' (12)',,' (13)',,' (14)',,' (15)',,' (16)',,' (17)',,' (18)',,' (19)',,' (20)',)

shouldn't have to..

ghuDaYuYu commented 2 years ago

I agree, although suffixes are useful too in some use cases. Will be included in some nearby releases. Great you found a workaround!

50svn commented 2 years ago

thx!

ghuDaYuYu commented 2 years ago

You're welcome!

Patch is ready, will be included in next release.

I'd like to add an alternative method, just for future reference...

$multi_replace_exp('A(1), B(2) & C(300)','\(\d+?\)',)

ghuDaYuYu commented 2 years ago

Closing with v1.0.14.7