moehmeni / syncedlyrics

Get an LRC format (synchronized) lyrics for your music
MIT License
188 stars 18 forks source link

Migrate from requests to curl_cffi + enable Deezer #26

Closed deedy5 closed 4 months ago

deedy5 commented 4 months ago

1) :+1: migrate from requests to curl_cffi :+1:, 2) enable Deezer provider, 3) init session inside LRCProvider.init(), 4) cli: add choices to -p parameter, 5) update typing annotations, 6) tests: add deezer testing.

moehmeni commented 4 months ago

Thanks for the contribution. Everything looks great, so using curl_cffi solved the Deezer problem?! do you know why if yes?

deedy5 commented 4 months ago

https://github.com/yifeikong/curl_cffi

Unlike other pure python http clients like httpx or requests, curl_cffi can impersonate browsers' TLS/JA3 and HTTP/2 fingerprints. If you are blocked by some website for no obvious reason, you can give curl_cffi a try.