-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[abbreviate_artistsort] exception when artist sorted name has no last name part #350
Comments
Oops sorry. Unfortunately I don't have the time to fix this right now. Any volunteers? |
I have taken a look at the code and I wrote this so long ago that despite the detailed comments I cannot immediately help with an indicator on how to fix this. As an aside, upon reflection coming back to this so long after I wrote it (which gives some perspective) I do think that it might be nice to store an abbreviated version of the unsorted tag as well. P.S. to @shutterfreak : Do you have "Standardize Artist Names" set in Options as suggested in the comments for this plugin? Does it help? (This is not an excuse for the exception which should not happen in any circumstances - just interested to know if it makes a difference.) |
Yes I do :-) The problem occurs on any release featuring Josquin des Prez since apparently the sort name was "Josquin" whereas one would expect "des Prez, Josquin". I meanwhile filed an edit to the artist sort name for Josquin des Préz (and also for Pierre de la Rue). |
I believe you wrote the plugin after exchanging ideas with me about 10 years ago :-) Today I made one small change where I replace "Bach, J. S." with an even more compact "Bach, JS" version by first replacing ". " with "" and then "." with "". Very convenient for optimizing file and folder names on the file system. |
Well - given unlimited dev time, it might be nice to offer a UI choice of abbreviations methods:
I just don't have the time for any coding ATM, and I have two higher priority projects that need my time first when I get some. |
I'll gladly work on this @Sophist-UK if the issue is still open. |
@sambhavnoobcoder - It's open source - so go for it!! |
hey @Sophist-UK , @shutterfreak how do I set up the developers and testing environment for this ? really want to contribute to this repo , but can't understand how to get a testing and development environment running . any tips or assistance in the same would be extremely helpful. |
The simplest thing to do is to go to the plugins directory and unzip the plugin file into a directory - then delete the zip file. You can then edit the plugin in an editor and when you start Picard the new code will run and you can test it. The only pain is having to restart Picard every time to save a change to the code. |
actually so far , I have cloned the repo and was able to understand that all the code for all the plugins was inside the plugins directory , inside a directory made for the particular plugin . however I can seem to understand how to run Picard to test any changes I make in the plugin .could you help me with that ? |
It's exactly as I said. Copy the folders and files into the plugins directory (removing the previously downloaded zip file) and start Picard and see whether it works as expected. |
hey @Sophist-UK , I opened a pr that fixes this issue . #365 . kindly look into it and in case of any changes required , kindly inform me of the same . I'll be glad to help out in any way possible . |
…rt issue#350 fixes metabrainz#350 added conditional , that recognises a single word artist name different from one with a last name .In such cases, the code generates initials for this single word to serve as an abbreviated representation.The initials are formed by taking the first letter of each part of the single word and appending a dot ('.') after each letter. moreover the code also handles the whitespaces in sorted and unsorted names .
hey @Sophist-UK , where can I find the music from Josquin des Prez for download whose data is in the MetaBrainz database for testing ? any music I am testing form the internet for this artist says no metadata found . Or perhaps you could suggest some alternate method or artist to test this method ? any suggestions would be appreciated . |
You don't need music for testing - you can tell Picard to download metadata by putting the MBID into the search box. |
@Sophist-UK , I am struggling to recreate this issue , anytime I try for an album of Josquin des Prez , I only get a warning saying |
I haven't used it for years and have no examples I can provide. |
hello @Sophist-UK sir, sir is this issue still open or unsolved cause i want to solve it. |
@ShashankSrivastava2002 It is open source, so please go ahead. |
i have solved this to a extent and want to add the solution please help me to do so |
When an artist sorted name only consists of 1 word (e.g., "Josquin" (for Josquin des Prez"), the abbreviate_artistsort plugin throws an exception since
surname
is not defined in this case.Here's an example:
Consider checking for this edge case everywhere in the plugin.
The text was updated successfully, but these errors were encountered: