From 25114ac9264b67064695fc408e7d71f33facbd9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:39:18 +0000 Subject: [PATCH 1/6] 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] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 74ae052..8c3f3d5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ pycryptodomex==3.21.0 pyogg==0.6.14a.1 requests==2.32.3 websocket-client==1.8.0 -zeroconf==0.136.0 \ No newline at end of file +zeroconf==0.139.0 \ No newline at end of file From 68b927128e660f449743472373c9f27755a9b536 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Mar 2025 12:14:20 +0000 Subject: [PATCH 2/6] 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] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8c3f3d5..a2f116e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ pycryptodomex==3.21.0 pyogg==0.6.14a.1 requests==2.32.3 websocket-client==1.8.0 -zeroconf==0.139.0 \ No newline at end of file +zeroconf==0.146.1 \ No newline at end of file From 5afe83abc9cd6761471c7b2811b6686809912ee7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 12:39:13 +0000 Subject: [PATCH 3/6] 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] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a2f116e..3adf143 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ defusedxml==0.7.1 protobuf==3.20.1 -pycryptodomex==3.21.0 +pycryptodomex==3.22.0 pyogg==0.6.14a.1 requests==2.32.3 websocket-client==1.8.0 From a5db002f0015a4a6e70abd45e3c6ff20db593ed2 Mon Sep 17 00:00:00 2001 From: Christian Vanderwall Date: Mon, 31 Mar 2025 14:58:38 -0700 Subject: [PATCH 4/6] 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`. --- librespot/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librespot/crypto.py b/librespot/crypto.py index 6ae8c23..d09a4d5 100644 --- a/librespot/crypto.py +++ b/librespot/crypto.py @@ -65,7 +65,7 @@ class CipherPair: if mac != expected_mac: raise RuntimeError() return Packet(cmd, payload_bytes) - except IndexError: + except (IndexError, OSError): raise RuntimeError("Failed to receive packet") From 259e694a8249c6daa1f82ef3c7e3870cc600a557 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:48:39 +0000 Subject: [PATCH 5/6] 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] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3adf143..0498eb0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ pycryptodomex==3.22.0 pyogg==0.6.14a.1 requests==2.32.3 websocket-client==1.8.0 -zeroconf==0.146.1 \ No newline at end of file +zeroconf==0.146.3 \ No newline at end of file From d5bfc4a17ededd4d6375fd45a5785a7a464e06b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 12:07:15 +0000 Subject: [PATCH 6/6] 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] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0498eb0..fd5194d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ pycryptodomex==3.22.0 pyogg==0.6.14a.1 requests==2.32.3 websocket-client==1.8.0 -zeroconf==0.146.3 \ No newline at end of file +zeroconf==0.146.4 \ No newline at end of file