Closed UriBarkan closed 9 months ago
Indeed, changing those two functions fix the problem:
def strip_url(url):
parts = url.split("/")
if len(parts) > 4:
return parts[4] + "/" + parts[5]
return ""
def make_url(hashstring, dpi=300):
if dpi != 300:
dpi = 150
return f"https://cdn.flowkey.com/rendered-sheets/{hashstring}/" + "{}@2x.png"
Thank you for the suggestion. I currently do not have a subscription, so I cannot test your code. The free songs seem to use the old scheme. Could you please make a pull request?
OK, this should be fixed in 0.1.6, which is on PyPI now.
Hi Matthias,
First, thanks for the great work you are doing. It helps a lot to improve the learning experience while using the app.
Apparently FK changed the URL format again. I ran the following command in terminal: flowkey-dl-cli https://cdn.flowkey.com/rendered-sheets/mbwqgRR6Tt55akPKz/eb306a50/0@2x.png
(It's the "Everybody wants to rule the world" by Tears for Fears. Please judge me for my musical taste some other time:)
And got the following error:
I think the problem is with strip_url and make_url functions. The pages are now turned with the index in bold in the last part 0@2x.png.