How do I migrate a field from one type to another? #4681
Replies: 2 comments 2 replies
-
Hmm; that's interesting. I actually would have guessed that this would "just work," i.e., changing the configuration would have sufficed and beets would reinterpret the existing data in a numeric way. Can you include an example of a file or two (using |
Beta Was this translation helpful? Give feedback.
-
Here's what the album Stand Alone Complex 3 looks like when my ratings are set to int: 菅野よう子 - Scott Matthew - 2005 - 攻殻機動隊 STAND ALONE COMPLEX O.S.T. 3 - the end of all you'll know - 2:21 - 2.0 channel - $rating Here is is again without the config lines that set rating to int: 菅野よう子 - Scott Matthew - 2005 - 攻殻機動隊 STAND ALONE COMPLEX O.S.T. 3 - the end of all you'll know - 2:21 - 2.0 channel - $rating The last column is the one that matters. What's really wierd is that if I comment out the lines that turn rating into an int, and do 菅野よう子 - 菅野よう子 - 2003 - 攻殻機動隊 STAND ALONE COMPLEX be Human - ロッキーはどこ? - 4:25 - 2.0 channel - 90 which as you can see doesn't include all the results that it should. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom field called "rating" that I have a value of 1 - 100. I used to be able to do things like
beet ls 菅野よう子 rating:90..100
and that would work. Then one day it stopped working.
Looking through my configs I saw that I had commented out
types: rating: int
So half of my ratings weren't calculating. However, if I uncomment that some of my ratings come out as 0 when listed because they are actually strings.
Is there an easy way to convert these ratings to ints so that they display and resolve properly?
Beta Was this translation helpful? Give feedback.
All reactions