this post was submitted on 14 Jan 2024
6 points (100.0% liked)

Python

6422 readers
6 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
6
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/python
 

****FIXED IT! ****

    if "TXXX:FMPS_Rating_Amarok_Score" in tags:
      rating = tags["TXXX:FMPS_Rating_Amarok_Score"]
      print([key for key in rating])
    else:
      print(" ".join(["No rating exists for",mp3_file,"this song"]))

This code snippet prints the key as ['0.66'] That 0.66 is the exact value that I need?

A searching the internet showed me that people often want this the other way round, but no one seems to try to do what I'm doing? Does anyone have any idea on how to do it?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 10 months ago

I did indeed, it resulted in this script https://lemmy.tf/post/3359226

If you have any advice on how to improve it, I would greatly appreciate it.

Also, thank you for the print information. That's really helpful.