Commit Graph

589 Commits

Author SHA1 Message Date
碧舞すみほ
5182578d56 Merge pull request #317 from akbad/add-contrib-docs
Add rudimentary `CONTRIBUTING.md`
2025-11-13 08:58:46 +09:00
碧舞すみほ
76983a40e6 Merge pull request #323 from matteofuso/oauth-webbrowser-response
Fix OAuth callback server to return a response to the browser
2025-11-13 08:57:55 +09:00
Matteo Fuso
ccf625c5c5 fix callback server not returning anything to the browser, implementing a way to change the content of the success page 2025-11-09 17:54:27 +01:00
碧舞すみほ
8760279c64 Merge pull request #319 from Googolplexed0/no-case-headers
Change request.headers from Dicts to CaseInsensitiveDicts
2025-10-23 12:01:42 +09:00
Googolplexed0
e0070925e2 change all request.headers from dicts to CaseInsensitiveDicts 2025-10-19 17:00:58 -05:00
akbad
bc3b0d1b55 Add rudimentary architecture section 2025-10-13 03:32:25 -04:00
akbad
7a089f0fc5 Add first draft of CONTRIBUTING.md 2025-10-13 03:29:36 -04:00
碧舞すみほ
a96b11c0a5 Merge pull request #316 from akbad/feat/add-flac
feat: add FLAC lossless format support
2025-10-11 09:58:09 +09:00
dakba
e909cfdc76 feat: add FLAC lossless format support and refactor quality pickers (while staying backward compatible)
- Add `FLAC_FLAC` (16), `FLAC_FLAC_24BIT` (22) format codes (based on librespot-org/librespot#796, librespot-org/librespot#1424)
- Regenerate Metadata_pb2.py with protoc 3.20.1
- Add enums: `SuperAudioFormat.FLAC`, `AudioQuality.LOSSLESS`
- Refactor to generic DRY `FormatOnlyAudioQuality` base class while maintaining existing `VorbisOnlyAudioQuality` as wrapper
- Remove `AAC_24_NORM` (replaced by `FLAC_FLAC` at code 16)
2025-10-10 20:08:41 -04:00
dakba
ee2c1107f6 fix(audio/decoders): use audio_format in unknown-format error
- Bug existed since #8
- Resurfaced while adding FLAC
2025-10-10 19:48:08 -04:00
碧舞すみほ
7aa377dfb6 Merge pull request #314 from root4loot/fix/rust-credentials-compat
Support Rust librespot credential format in stored_file()
2025-10-01 09:00:02 +09:00
Daniel Moen
87171a3d29 Support Rust librespot credential format in stored_file()
Adds fallback logic to load credentials from Rust librespot's OAuth flow.
The stored_file() method now handles both Python and Rust credential formats.

Related to #277
2025-09-30 18:42:33 +02:00
碧舞すみほ
1ad1e40b5a Merge pull request #313 from DraftKinner/main
Extend use of spclient.wg.spotify.com for album, artist, and show met…
2025-08-25 09:52:21 +09:00
DraftKinner
2c1721205c Extend use of spclient.wg.spotify.com for album, artist, and show metadata requests 2025-08-24 19:52:27 -04:00
碧舞すみほ
6c30d292ee Merge pull request #312 from Googolplexed0/login5-refresh
Improve Login5 Implementation
2025-08-23 14:25:34 +09:00
Googolplexed0
5d0784e1c9 rename Identifiers_pb2 to fix https://github.com/Googolplexed0/zotify/issues/58 2025-08-21 20:26:20 -05:00
Googolplexed0
9a7776667f move all login5 logic into TokenProvider
allow for login5 refresh after expiration
2025-08-20 22:36:19 -05:00
碧舞すみほ
7481dca654 Merge pull request #311 from Googolplexed0/login5-auth
Use Login5 Authentication Instead of Keymaster
2025-08-18 08:57:55 +09:00
Googolplexed0
afc993f047 use login5 authentication instead of keymaster
fixes #306
2025-08-16 22:19:36 -05:00
碧舞すみほ
3a6ce32d0d Merge pull request #309 from matseee/main
fix: always use spclient.wg.spotify.com for metadata requests
2025-08-07 07:46:29 +09:00
Matthias Fischer
336fa9acc6 fix: always use spclient.wg.spotify.com for metadata requests 2025-08-06 22:46:25 +02:00
碧舞すみほ
a14f85bd43 Merge pull request #307 from Googolplexed0/patch-1
Accept Incorrectly Capitalized Content-Range Headers as Backup
2025-07-29 09:51:03 +09:00
Googolplexed
4f796e640c Accept Incorrectly Capitalized Content-Range Headers
Some external podcast urls return a valid CDN response, which is not accepted due to the "Content-Range" header being all lowercase as "content-range". This tries the lowercase version of the header as a backup if no Content-Range header is found initially.
2025-07-28 18:51:10 -05:00
碧舞すみほ
2782d23c7d Merge pull request #305 from werwolf2303/main
Implement oauth support
2025-06-13 14:18:58 +09:00
werwolf2303
53d51156e9 Change method description 2025-06-11 11:42:07 +02:00
werwolf2303
22e6419bc9 Readme and implementation changes
Added optional auth url callback
Removed user pass from readme
Added oauth to readme
2025-06-11 11:30:52 +02:00
werwolf2303
f210850bee Implement oauth support 2025-06-10 21:43:03 +02:00
碧舞すみほ
322584bf43 Merge pull request #286 from C0rn3j/patch-1
requirements.txt: Set versions as minimum instead of hardcoding as exact
2025-04-28 08:55:50 +09:00
Martin
2a458c4f43 Merge branch 'main' into patch-1 2025-04-27 22:15:08 +02:00
碧舞すみほ
aa3c6faf42 Merge pull request #303 from kokarare1212/dependabot/pip/zeroconf-0.146.4
Bump zeroconf from 0.146.3 to 0.146.4
2025-04-14 21:53:16 +09:00
dependabot[bot]
d5bfc4a17e Bump zeroconf from 0.146.3 to 0.146.4
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.146.3 to 0.146.4.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.146.3...0.146.4)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-version: 0.146.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 12:07:15 +00:00
碧舞すみほ
495769abe6 Merge pull request #302 from kokarare1212/dependabot/pip/zeroconf-0.146.3
Bump zeroconf from 0.146.1 to 0.146.3
2025-04-03 22:11:26 +09:00
dependabot[bot]
259e694a82 Bump zeroconf from 0.146.1 to 0.146.3
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.146.1 to 0.146.3.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.146.1...0.146.3)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-version: 0.146.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 12:48:39 +00:00
碧舞すみほ
e2c914fa79 Merge pull request #300 from cvdub/fix-close
Fix issue with closing session (#200)
2025-04-01 10:00:14 +09:00
碧舞すみほ
603b5104db Merge pull request #299 from kokarare1212/dependabot/pip/pycryptodomex-3.22.0
Bump pycryptodomex from 3.21.0 to 3.22.0
2025-04-01 09:55:03 +09:00
Christian Vanderwall
a5db002f00 Fix issue with closing session (#200)
I was getting the following error after calling Session.close():

```
Exception in thread session-packet-receiver:
Traceback (most recent call last):
  File "librespot-python/librespot/crypto.py", line 58, in receive_encoded
    header_bytes = self.__receive_cipher.decrypt(connection.read(3))
                                                 ~~~~~~~~~~~~~~~^^^
  File "librespot-python/librespot/core.py", line 1889, in read
    return self.__socket.recv(length)
           ~~~~~~~~~~~~~~~~~~^^^^^^^^
OSError: [Errno 9] Bad file descriptor
```

Adding `OSError` to the try/except in `CipherPair.receive_encoded` fixes this issue, making
`CipherPair` raise a `RuntimeError` instead, which is properly handled by `Receiver`.
2025-03-31 14:58:38 -07:00
dependabot[bot]
5afe83abc9 Bump pycryptodomex from 3.21.0 to 3.22.0
Bumps [pycryptodomex](https://github.com/Legrandin/pycryptodome) from 3.21.0 to 3.22.0.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases)
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst)
- [Commits](https://github.com/Legrandin/pycryptodome/compare/v3.21.0...v3.22.0)

---
updated-dependencies:
- dependency-name: pycryptodomex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 12:39:13 +00:00
碧舞すみほ
59b15ae876 Merge pull request #298 from kokarare1212/dependabot/pip/zeroconf-0.146.1
Bump zeroconf from 0.139.0 to 0.146.1
2025-03-05 23:12:47 +09:00
dependabot[bot]
68b927128e Bump zeroconf from 0.139.0 to 0.146.1
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.139.0 to 0.146.1.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.139.0...0.146.1)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-05 12:14:20 +00:00
碧舞すみほ
24bb36b3c6 Merge pull request #290 from kokarare1212/dependabot/pip/zeroconf-0.139.0
Bump zeroconf from 0.136.0 to 0.139.0
2025-01-10 23:35:05 +09:00
dependabot[bot]
25114ac926 Bump zeroconf from 0.136.0 to 0.139.0
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.136.0 to 0.139.0.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.136.0...0.139.0)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-10 12:39:18 +00:00
Martin
6ff13b35c3 Fixate protobuf #130 2024-12-22 17:28:49 +01:00
Martin
9856c62841 requirements.txt: Set versions as minimum instead of hardcoded exact version 2024-11-18 20:27:16 +01:00
碧舞すみほ
2695ae53fd Merge pull request #284 from kokarare1212/dependabot/pip/zeroconf-0.136.0
Bump zeroconf from 0.135.0 to 0.136.0
2024-10-28 21:51:09 +09:00
dependabot[bot]
89ef2c5327 Bump zeroconf from 0.135.0 to 0.136.0
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.135.0 to 0.136.0.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.135.0...0.136.0)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 12:37:11 +00:00
碧舞すみほ
9cc8256ee8 Merge pull request #282 from kokarare1212/dependabot/pip/pycryptodomex-3.21.0
Bump pycryptodomex from 3.20.0 to 3.21.0
2024-10-15 10:08:45 +09:00
dependabot[bot]
30702decc0 Bump pycryptodomex from 3.20.0 to 3.21.0
Bumps [pycryptodomex](https://github.com/Legrandin/pycryptodome) from 3.20.0 to 3.21.0.
- [Release notes](https://github.com/Legrandin/pycryptodome/releases)
- [Changelog](https://github.com/Legrandin/pycryptodome/blob/master/Changelog.rst)
- [Commits](https://github.com/Legrandin/pycryptodome/compare/v3.20.0...v3.21.0)

---
updated-dependencies:
- dependency-name: pycryptodomex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 12:27:22 +00:00
碧舞すみほ
23f6ae49b1 Merge pull request #281 from kokarare1212/dependabot/pip/zeroconf-0.135.0
Bump zeroconf from 0.134.0 to 0.135.0
2024-09-26 09:09:58 +09:00
dependabot[bot]
50a4bc9651 Bump zeroconf from 0.134.0 to 0.135.0
Bumps [zeroconf](https://github.com/python-zeroconf/python-zeroconf) from 0.134.0 to 0.135.0.
- [Release notes](https://github.com/python-zeroconf/python-zeroconf/releases)
- [Changelog](https://github.com/python-zeroconf/python-zeroconf/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python-zeroconf/python-zeroconf/compare/0.134.0...0.135.0)

---
updated-dependencies:
- dependency-name: zeroconf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-25 12:09:22 +00:00
碧舞すみほ
ec00f5dbda Merge pull request #279 from kokarare1212/dependabot/pip/zeroconf-0.134.0
Bump zeroconf from 0.133.0 to 0.134.0
2024-09-15 07:07:35 +09:00