Self taught developer
Previously known as @[email protected]
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
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!