[PR #17] [CLOSED] Restyle Fix some critical bugs and update the example #78

Closed
opened 2026-02-27 08:11:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kokarare1212/librespot-python/pull/17
Author: @restyled-io[bot]
Created: 4/24/2021
Status: Closed

Base: mainHead: restyled/pull-16


📝 Commits (10+)

📊 Changes

18 files changed (+673 additions, -251 deletions)

View changed files

📝 README.md (+55 -15)
📝 librespot/audio/AbsChunkedInputStream.py (+11 -10)
📝 librespot/audio/AudioKeyManager.py (+9 -5)
📝 librespot/audio/cdn/CdnManager.py (+74 -44)
📝 librespot/audio/format/AudioQualityPicker.py (+3 -1)
📝 librespot/audio/storage/ChannelManager.py (+15 -10)
📝 librespot/core/Session.py (+391 -97)
📝 librespot/core/TokenProvider.py (+13 -9)
📝 librespot/dealer/ApiClient.py (+32 -14)
📝 librespot/dealer/DealerClient.py (+4 -1)
📝 librespot/mercury/MercuryClient.py (+23 -14)
📝 librespot/mercury/RawMercuryRequest.py (+9 -7)
📝 librespot/metadata/ShowId.py (+1 -1)
📝 librespot/player/Player.py (+2 -1)
📝 librespot/player/StateWrapper.py (+4 -1)
📝 librespot/player/codecs/AudioQuality.py (+19 -15)
📝 librespot/player/codecs/VorbisOnlyAudioQuality.py (+7 -5)
📝 librespot/player/state/DeviceStateHandler.py (+1 -1)

📄 Description

A duplicate of #16 with additional commits that automatically address
incorrect style, created by Restyled.

⚠️ Even though this PR is not a Fork, it contains outside contributions.
Please review accordingly.

Since the original Pull Request was opened as a fork in a contributor's
repository, we are unable to create a Pull Request branching from it with only
the style fixes.

The following Restylers made fixes:

To incorporate these changes, you can either:

  1. Merge this Pull Request instead of the original, or

  2. Ask your contributor to locally incorporate these commits and push them to
    the original Pull Request

    Expand for example instructions
    ```console
    git remote add upstream https://github.com/kokarare1212/librespot-python.git
    git fetch upstream pull/<this PR number>/head
    git merge --ff-only FETCH_HEAD
    git push
    ```
    

NOTE: As work continues on the original Pull Request, this process will
re-run and update (force-push) this Pull Request with updated style fixes as
necessary. If the style is fixed manually at any point (i.e. this process finds
no fixes to make), this Pull Request will be closed automatically.

Sorry if this was unexpected. To disable it, see our documentation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kokarare1212/librespot-python/pull/17 **Author:** [@restyled-io[bot]](https://github.com/apps/restyled-io) **Created:** 4/24/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `restyled/pull-16` --- ### 📝 Commits (10+) - [`8481226`](https://github.com/kokarare1212/librespot-python/commit/8481226ff46f6b02e138cb76f393831b309c2440) Fix TypeError - [`84a43be`](https://github.com/kokarare1212/librespot-python/commit/84a43bed3d9091a65f13f29daeee6c24e647a20b) Fix AttributeError - [`89082b1`](https://github.com/kokarare1212/librespot-python/commit/89082b1448b26cc08cc39cf588ef246d7303476c) Update examples - [`2c1a296`](https://github.com/kokarare1212/librespot-python/commit/2c1a296f0a27180c8022fbc1a62da5e91c7ce4a6) Restyled by autopep8 - [`dfd4044`](https://github.com/kokarare1212/librespot-python/commit/dfd4044e80aa2591f0766a7036b37ee6159e0da2) Restyled by black - [`b3857d3`](https://github.com/kokarare1212/librespot-python/commit/b3857d3b7449d23d5536e1c1346a8141ab6f26e0) Restyled by isort - [`2ff39b4`](https://github.com/kokarare1212/librespot-python/commit/2ff39b4e691ca4eb78c83798d374450e1e9f2f1d) Restyled by prettier-markdown - [`980c370`](https://github.com/kokarare1212/librespot-python/commit/980c370308fd2496d7ca32e27bf371f787631a93) Restyled by reorder-python-imports - [`83b1597`](https://github.com/kokarare1212/librespot-python/commit/83b15979432fecd44582bf9ee2891b43c7fc7ccb) Restyled by whitespace - [`73634a7`](https://github.com/kokarare1212/librespot-python/commit/73634a750d0def2f4a3c1aa1eed592eafd46c39b) Restyled by yapf ### 📊 Changes **18 files changed** (+673 additions, -251 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+55 -15) 📝 `librespot/audio/AbsChunkedInputStream.py` (+11 -10) 📝 `librespot/audio/AudioKeyManager.py` (+9 -5) 📝 `librespot/audio/cdn/CdnManager.py` (+74 -44) 📝 `librespot/audio/format/AudioQualityPicker.py` (+3 -1) 📝 `librespot/audio/storage/ChannelManager.py` (+15 -10) 📝 `librespot/core/Session.py` (+391 -97) 📝 `librespot/core/TokenProvider.py` (+13 -9) 📝 `librespot/dealer/ApiClient.py` (+32 -14) 📝 `librespot/dealer/DealerClient.py` (+4 -1) 📝 `librespot/mercury/MercuryClient.py` (+23 -14) 📝 `librespot/mercury/RawMercuryRequest.py` (+9 -7) 📝 `librespot/metadata/ShowId.py` (+1 -1) 📝 `librespot/player/Player.py` (+2 -1) 📝 `librespot/player/StateWrapper.py` (+4 -1) 📝 `librespot/player/codecs/AudioQuality.py` (+19 -15) 📝 `librespot/player/codecs/VorbisOnlyAudioQuality.py` (+7 -5) 📝 `librespot/player/state/DeviceStateHandler.py` (+1 -1) </details> ### 📄 Description A duplicate of #16 with additional commits that automatically address incorrect style, created by [Restyled][]. :warning: Even though this PR is not a Fork, it contains outside contributions. Please review accordingly. Since the original Pull Request was opened as a fork in a contributor's repository, we are unable to create a Pull Request branching from it with only the style fixes. The following Restylers [made fixes](https://restyled.io/gh/kokarare1212/repos/librespot-python/jobs/924676): - [autopep8](https://github.com/hhatto/autopep8) - [black](https://github.com/python/black) - [isort](https://github.com/timothycrosley/isort/) - [prettier-markdown](https://prettier.io/blog/2017/11/07/1.8.0.html) - [reorder-python-imports](https://github.com/asottile/reorder_python_imports) - [whitespace](https://github.com/restyled-io/restyler-whitespace/blob/master/README.md) - [yapf](https://github.com/google/yapf) To incorporate these changes, you can either: 1. Merge this Pull Request *instead of* the original, or 1. Ask your contributor to locally incorporate these commits and push them to the original Pull Request <details> <summary>Expand for example instructions</summary> ```console git remote add upstream https://github.com/kokarare1212/librespot-python.git git fetch upstream pull/<this PR number>/head git merge --ff-only FETCH_HEAD git push ``` </details> **NOTE**: As work continues on the original Pull Request, this process will re-run and update (force-push) this Pull Request with updated style fixes as necessary. If the style is fixed manually at any point (i.e. this process finds no fixes to make), this Pull Request will be closed automatically. Sorry if this was unexpected. To disable it, see our [documentation][]. [restyled]: https://restyled.io [documentation]: https://github.com/restyled-io/restyled.io/wiki/Disabling-Restyled --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:11:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#78
No description provided.