Update lastfm client bundle 2.0 (#1885)

* Complete lastfm-bundle 2.0: add session support and move config to packages

* Fix environment variable name: LASTFM_SESSION -> LASTFM_SESSION_KEY

- Update session_key configuration to use LASTFM_SESSION_KEY for consistency
- Addresses feedback from PR #1885

* Fix copy-from-recipe path in manifest.json

- Change from '%CONFIG_DIR%/packages/' to '%CONFIG_DIR%/'
- Prevents files from being copied to config/packages/packages/
- Thanks @diimpp for catching this issue
This commit is contained in:
Joey
2025-11-20 18:04:03 +01:00
committed by GitHub
parent ccddb71791
commit 9104955737
2 changed files with 8 additions and 3 deletions

View File

@@ -1,10 +1,14 @@
calliostro_lastfm:
# Required: API Key (get from https://www.last.fm/api/account/create)
# Required: API Key for all practical operations (get from https://www.last.fm/api/account/create)
api_key: '%env(LASTFM_API_KEY)%'
# Required for write operations: API Secret
# Required for authenticated operations: API Secret
api_secret: '%env(LASTFM_SECRET)%'
# Optional: Session key for scrobbling and user operations
# Get this via Last.fm OAuth flow or use a pre-generated session key
# session_key: '%env(LASTFM_SESSION_KEY)%'
# Optional: HTTP User-Agent header for API requests
# user_agent: 'MyApp/1.0 +https://myapp.com'

View File

@@ -7,6 +7,7 @@
},
"env": {
"LASTFM_API_KEY": "",
"LASTFM_SECRET": ""
"LASTFM_SECRET": "",
"#LASTFM_SESSION": ""
}
}