Dict keys are case sensitive in python. In your code I can see the key you’ve used has a capital M in Amarok. Maybe that’s the issue here
Self taught developer
Previously known as @yourstruly@dataterm.digital
Come hang out with me on Mastodon
Check out my blog, where I write about what I have learned
Dict keys are case sensitive in python. In your code I can see the key you’ve used has a capital M in Amarok. Maybe that’s the issue here
This is strange. I tried your snippet with your file and it works for me:
(env) ➜ testing cat x.py
from mutagen.id3 import ID3
tags = ID3("myfile.mp3")
print(tags["TXXX:FMPS_Rating_Amarok_Score"])
(env) ➜ testing python x.py
0.78
I’m from India so these numbers might be a bit weird. My yearly comp has basically gone like this from 2017 to 2023
$0.7k -> $3.6k -> $4.8k -> $20k
This is a FastAPI feature - Autogenerated documentation using Swagger.
You can turn it off by setting
docs_url=None
In your linked main.py:
app = FastAPI( title="IslabTweet", description=__doc__, docs_url="/", # change this to None to disable the docs version=VERSION, )
Hope this helps!