Change README.md
This commit is contained in:
26
README.md
26
README.md
@@ -16,17 +16,14 @@ on any device.
|
|||||||
|
|
||||||
This repository has been completely rewritten from the transplant.<br>
|
This repository has been completely rewritten from the transplant.<br>
|
||||||
There may be some functions that are not implemented yet.<br>
|
There may be some functions that are not implemented yet.<br>
|
||||||
If so, please feel free to open an issue.
|
If so, please feel free to open an issue.<br>
|
||||||
|
|
||||||
## Note
|
## Note
|
||||||
|
|
||||||
It is still in the idea stage, so there is a possibility of unintended behavior
|
It is still in the idea stage, so there is a possibility of unintended behavior
|
||||||
or major specification changes.
|
or major specification changes.<br>
|
||||||
We **DO NOT** encourage piracy and **DO NOT** support any form of
|
We **DO NOT** encourage piracy and **DO NOT** support any form of downloader/recorder designed with the help of this repository and in general anything that goes against the Spotify ToS.<br>
|
||||||
downloader/recorder designed with the help of this repository and in general
|
For other guidelines, please see [CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).<br>
|
||||||
anything that goes against the Spotify ToS.
|
|
||||||
For other guidelines, please see
|
|
||||||
[CODE_OF_CONDUCT.md](https://github.com/kokarare1212/librespot-python/blob/main/CODE_OF_CONDUCT.md).
|
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
@@ -65,7 +62,7 @@ aceess_token = session.tokens().get("playlist-read")
|
|||||||
|
|
||||||
### Get Music Stream
|
### Get Music Stream
|
||||||
|
|
||||||
\*Currently, music streaming is supported, but it may cause unintended behavior.
|
*Currently, music streaming is supported, but it may cause unintended behavior.<br>
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from librespot.core import Session
|
from librespot.core import Session
|
||||||
@@ -73,15 +70,13 @@ from librespot.metadata import TrackId
|
|||||||
from librespot.player.codecs import VorbisOnlyAudioQuality
|
from librespot.player.codecs import VorbisOnlyAudioQuality
|
||||||
from librespot.audio.decoders import AudioQuality
|
from librespot.audio.decoders import AudioQuality
|
||||||
|
|
||||||
session = Session.Builder()
|
session = Session.Builder() \
|
||||||
.user_pass("Username", "Password")
|
.user_pass("Username", "Password") \
|
||||||
.create()
|
.create()
|
||||||
|
|
||||||
track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
|
track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
|
||||||
stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.AudioQuality.VERY_HIGH), False,
|
stream = session.content_feeder().load(track_id, VorbisOnlyAudioQuality(AudioQuality.AudioQuality.VERY_HIGH), False, None)
|
||||||
None)
|
|
||||||
# stream.input_stream.stream().read() to get one byte of the music stream.
|
# stream.input_stream.stream().read() to get one byte of the music stream.
|
||||||
# ex: 1 (If there is no more voice data, -1 is received as the result.)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Other uses are
|
Other uses are
|
||||||
@@ -101,11 +96,6 @@ import logging
|
|||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Roadmap
|
|
||||||
|
|
||||||
Please read
|
|
||||||
[ROADMAP.md](https://github.com/kokarare1212/librespot-python/blob/main/ROADMAP.md).
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Pull requests are welcome.
|
Pull requests are welcome.
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
# Roadmap
|
|
||||||
2021/03/28: **\*Eliminate circular importing.**
|
|
||||||
@@ -14,29 +14,23 @@
|
|||||||
## What's librespot-python?
|
## What's librespot-python?
|
||||||
|
|
||||||
librespot-python is a python port of Spotify's open source client library
|
librespot-python is a python port of Spotify's open source client library
|
||||||
[librespot](https://github.com/librespot-org/librespot).
|
[librespot](https://github.com/librespot-org/librespot). <br>
|
||||||
|
It was created to play Spotify on various platforms and devices.<br>
|
||||||
It was created to play Spotify on various platforms and devices.
|
|
||||||
|
|
||||||
## What do you need?
|
## What do you need?
|
||||||
|
|
||||||
In order to develop with this library, you need to use Python.
|
In order to develop with this library, you need to use Python.<br>
|
||||||
|
Python can be downloaded from [the official website here](https://python.org/). <br>
|
||||||
Python can be downloaded from [the official website here](https://python.org/).
|
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
|
||||||
Please keep in mind that this library is not like Spotify approved.
|
Please keep in mind that this library is not like Spotify approved.<br>
|
||||||
|
Therefore, the worst that can happen is that you will be banned from Spotify.<br>
|
||||||
Therefore, the worst that can happen is that you will be banned from Spotify.
|
Also, please keep in mind that this library is in alpha and may behave in unintended ways.<br>
|
||||||
|
|
||||||
Also, please keep in mind that this library is in alpha and may behave in
|
|
||||||
unintended ways.
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
You can download this library in the following way.
|
You can download this library in the following way.<br><br>
|
||||||
|
|
||||||
Stable Version **\*still not working.**
|
Stable Version **\*still not working.**
|
||||||
|
|
||||||
```commandline
|
```commandline
|
||||||
@@ -66,7 +60,7 @@ aceess_token = session.tokens().get("playlist-read")
|
|||||||
|
|
||||||
### Get Music Stream
|
### Get Music Stream
|
||||||
|
|
||||||
\*Currently, music streaming is supported, but it may cause unintended behavior.
|
*Currently, music streaming is supported, but it may cause unintended behavior.<br>
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from librespot.core import Session
|
from librespot.core import Session
|
||||||
@@ -74,8 +68,8 @@ from librespot.metadata import TrackId
|
|||||||
from librespot.player.codecs import VorbisOnlyAudioQuality
|
from librespot.player.codecs import VorbisOnlyAudioQuality
|
||||||
from librespot.audio.decoders import AudioQuality
|
from librespot.audio.decoders import AudioQuality
|
||||||
|
|
||||||
session = Session.Builder()
|
session = Session.Builder() \
|
||||||
.user_pass("Username", "Password")
|
.user_pass("Username", "Password") \
|
||||||
.create()
|
.create()
|
||||||
|
|
||||||
track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
|
track_id = TrackId.from_uri("spotify:track:xxxxxxxxxxxxxxxxxxxxxx")
|
||||||
|
|||||||
Reference in New Issue
Block a user