Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 6b2cd2b

Browse files
committed
fix(lastfm): set lfmanon to 0
1 parent 4db966a commit 6b2cd2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nowplaying/external/lastfm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def get_client() -> AsyncClient:
4343
proxy=config.LASTFM_SEARCH_PROXY,
4444
verify=not config.LASTFM_SEARCH_PROXY,
4545
timeout=Timeout(5.0, read=None),
46+
cookies={
47+
# Without this cookie, last.fm will return 406 for some reason
48+
'lfmanon': '0',
49+
},
4650
)
4751

4852

0 commit comments

Comments
 (0)