Alok Saboo
7724c661a4
hopefully...this works
2025-10-30 10:49:51 -04:00
Alok Saboo
447511b4c8
ruff formating
2025-10-30 10:47:07 -04:00
Alok Saboo
8305821488
more lint
2025-10-30 10:34:30 -04:00
Alok Saboo
4302ca97eb
resolve sorucery issue....make it thread safe
2025-10-30 10:29:07 -04:00
Alok Saboo
e6c70f06c1
lint
2025-10-30 10:20:53 -04:00
Alok Saboo
0d11e19ecf
Spotify: gracefully handle 403 from deprecated audio-features API
...
Add a dedicated AudioFeaturesUnavailableError and track audio-features
availability with an audio_features_available flag. If the audio-features
endpoint returns HTTP 403, raise the new error, log a warning once, and
disable further audio-features requests for the session. The plugin now
skips attempting audio-features lookups when disabled (avoiding repeated
failed calls and potential rate-limit issues).
Also update changelog to document the behavior.
2025-10-30 10:13:54 -04:00
Alok Saboo
b66b2b51b5
Remove potentially expensive item.get() calls
2025-10-01 17:48:41 -04:00
Alok Saboo
70a4d0462d
Persist spotify track attributes even if audio features are missing
2025-10-01 17:15:13 -04:00
Sebastian Mohr
efbfc23931
Removed config options and fixed a bug with beet spotify command
2025-09-19 17:20:51 +02:00
Sebastian Mohr
c7ba399dd1
fix incorrect matches when album is missing or empty
...
closes #5189
2025-09-19 17:20:51 +02:00
Šarūnas Nejus
17bc11034f
Limit search query results using request parameters
2025-09-01 04:36:54 +01:00
Šarūnas Nejus
20497d3d9b
Dedupe search_limit config option init
2025-09-01 04:10:53 +01:00
Šarūnas Nejus
d00d51e0bf
Add configurable search_limit to Spotify and Deezer plugins
2025-08-31 18:48:46 +01:00
Šarūnas Nejus
b3d434f58f
Delegate attribute access to logging
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
d6b6ac3387
Replace logging f-strings with arguments
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
d93ddf8dd4
Do not use explicit indices for logging args when not needed
2025-08-30 23:10:21 +01:00
Šarūnas Nejus
1c16b2b308
Replace string concatenation (' + ')
...
- Join hardcoded strings
- Replace concatenated variables with f-strings
2025-08-30 23:10:15 +01:00
Šarūnas Nejus
4a361bd501
Replace format calls with f-strings
2025-08-30 18:42:26 +01:00
Sebastian Mohr
1c0484c4ba
renamed keywords to query_string, shortened query construct expression,
...
removed legacy isinstance check
2025-08-26 13:41:11 +02:00
Sebastian Mohr
f81684e188
Moved construct search into SearchApiMetadataSource to dedupe some
...
deezer and spotify functionalities.
2025-08-26 13:41:11 +02:00
Šarūnas Nejus
7509843517
Fix a generic type error and warnings in spotify
2025-07-16 14:15:27 +01:00
Sebastian Mohr
1d33580b68
Renamed class method to _extract_id.
2025-07-15 15:03:14 +02:00
Sebastian Mohr
fd800dce7c
Opt in spotify plugin and enhanced typing for the search responses.
2025-07-15 15:03:14 +02:00
Šarūnas Nejus
7cada1c9f8
Remove no-op decargs
2025-07-08 11:37:33 +01:00
Šarūnas Nejus
1a045c9166
Copy paste query, types from library to dbcore
2025-07-06 16:03:46 +01:00
dhruvravii
dd6cb538ac
Fix: Spotify plugin unable to recognize Chinese and Japanese albums. ( #5705 )
...
Fixes an issue where each spotify query was converted to ascii before sending. Adds a
new config option to enable legacy behaviour.
A file called japanese_track_request.json was made to mimic the Spotify
API response since I don't have the credentials. Entries in that will
need to be modified with the actual entries.
Co-authored-by: Sebastian Mohr <sebastian@mohrenclan.de>
Co-authored-by: Sebastian Mohr <39738318+semohr@users.noreply.github.com>
Co-authored-by: J0J0 Todos <2733783+JOJ0@users.noreply.github.com>
2025-07-01 11:08:54 +02:00
Sebastian Mohr
66864fcc27
Minor improvements to spotify plugin typing. ( #5815 )
...
## Description
Added some more typehints to the spotify plugin. Also added a method to
get the tokenfile and changed to logic for the handle_response to use
`requests.request`.
This is done mainly to prepare for
https://github.com/beetbox/beets/pull/5787 , see also
https://github.com/beetbox/beets/pull/5814
2025-06-11 15:19:46 +02:00
Šarūnas Nejus
b520981c9c
plugins: restructure id extraction
2025-05-17 14:57:34 +01:00
Šarūnas Nejus
99dc0861c2
Redact sensitive fields
...
Redacted fields reported by GitHub secrets scanner[1] and a couple of others.
1: https://github.com/beetbox/beets/security/secret-scanning?query=is%3Aclosed
2025-05-07 20:39:32 +01:00
Šarūnas Nejus
c490ac5810
Fix formatting
2025-05-07 10:41:01 +01:00
Lev Gorodetskiy
2130404217
Add timeout to all requests calls
2024-05-25 12:24:53 -03:00
Alok Saboo
4348a49a4f
Formatting fixes
2023-12-04 11:38:34 -05:00
Alok Saboo
bdc7de874d
Revert code cleanup
2023-12-04 11:37:01 -05:00
Alok Saboo
316b22e9f9
Code cleanup
2023-12-04 11:22:28 -05:00
Alok Saboo
c102505621
Add ConnectionError handling
2023-12-04 10:32:55 -05:00
Alok Saboo
753e4e9a39
Add 502 error handling
2023-11-28 09:58:42 -05:00
Alok Saboo
138216a6bb
Update docstring
2023-11-16 12:23:42 -05:00
Alok Saboo
3b707b9276
Update spotify.py
2023-11-15 10:31:20 -05:00
Alok Saboo
e2f83cdf77
Fix typo
2023-11-15 10:24:34 -05:00
Alok Saboo
3b8cb98e6d
Update beetsplug/spotify.py
...
Co-authored-by: J0J0 Todos <2733783+JOJ0@users.noreply.github.com>
2023-11-15 10:21:53 -05:00
Alok Saboo
c64df0d27a
Update beetsplug/spotify.py
...
Co-authored-by: J0J0 Todos <2733783+JOJ0@users.noreply.github.com>
2023-11-15 10:21:42 -05:00
Alok Saboo
33944d457b
formatting
2023-11-12 09:45:29 -05:00
Alok Saboo
9e1c530c9d
also include EAN and UPC
2023-11-12 09:43:59 -05:00
Alok Saboo
e7d86f2fc9
Update spotify.py
2023-11-12 09:40:25 -05:00
Alok Saboo
7952f0a71d
Also obtain track ISRC
2023-11-11 21:35:14 -05:00
Alok Saboo
d561ba7793
Add isrc
2023-11-11 21:23:50 -05:00
Alok Saboo
86daa0111c
Update spotify.py
2023-11-11 21:02:52 -05:00
Serene-Arc
a6e5201ff3
Apply formatting tools to all files
...
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00
Alok Saboo
f79fd64aeb
Simplify loop and update changelog entry
2023-10-21 16:16:51 -04:00
Alok Saboo
ee42f79b25
Update retry logic
2023-10-21 09:43:01 -04:00