ishanpage

joined 1 year ago
[–] [email protected] 4 points 9 months ago (6 children)

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!

[–] [email protected] 6 points 10 months ago (1 children)

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

[–] [email protected] 2 points 10 months ago (3 children)

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
 

An adventure fuelled by scratching an itch