从终端搜索并播放任何歌曲
Play any songs that come in your mind.
Hoping to make it an awesome music assistant
For Arch Linux users, it is available in AUR with the name playx.
For others, it can be installed manually.
Make sure all the dependencies are installed.
Run the following command in the root directory to install playx.
pip install -e .Or install using setup.py as:
python setup.py installThis method is the recommended one.
Python3.x
pip3
MPV
Get MPV (website) from here.
Get MPV (github) from here.
Note: These dependencies in linux can be installed in other variants.
For arch linux, you can use pacman package manager accordingly. Numpy is used for Markov-Chain based playlist.
These releases are almost stable.
mpvFor now, the application is in development phase.
…Play by song name
playx Play by youtube link
playx Play by soundcloud links
playx https://api.soundcloud.com/tracks/232673157This plays soundcloud track
Play from youtube playlist
playx Play from a Billboard Chart
playx hot-100Play from spotify playlist
playx https://open.spotify.com/playlist/37i9dQZF1DX5Ozry5U6G0dThis plays the songs from Spotify Summer Party playlist.
Play from soundcloud playlist
playx https://soundcloud.com/devintracy/sets/goodafternoonThis plays the songs from SoundCloud playlist
Play from JioSaavn playlist
playx https://www.jiosaavn.com/featured/magical-amit-trivedi/IGYxX3V4T7w_This plays songs from the JioSaavn playlist
Play from YouTube Music Playlist
playx Play from local playlist
The local playlist should have an extension .playx in order for us to recognize it as a playlist.
playx example.playxThis plays a playlist named example.playx
For a playlist every line is considered an entry. Refer to example.playx.
Auto-Generate Playlist
playx --autoThis will automatically generate a playlist by using the frequency of songs played that has been logged in the log file.
Term-Based Search
playx --rsearch This will automatically generate a playlist of cached songs containing the provided terms.
By default, playx creates a directory in the home as ~/.playx (which is a hidden folder).
Structure is like:
.playx
|- songs/
|- logs/
|- playlist/
|- playxlist/songs: This stores all the songs logs: This stores the log for user activities of songs that are searched and played with creation date. This will be used for recommendation of songs in future version playlist: This stores all the cached playlists files. playxlist: Stores all the playxlist files.
youtube-dl is the core through which we fetch stream urls for any song or any YT playlist.
So, update it first
pip install -U youtube-dlyoutube-dl keeps on rolling out updates actively because the YouTube keeps on updating its internals for html. So, the parser/crawler should be updated periodically.
playx --cleanChances are you have a url in the urls.json but the local mp3 might not exist in ~/.playx/songs/.
So, cleaning and running the playx might mitigate that.
Log is found at logs/partial_log
Files can be found inside playlist/. Chances are there might be empty links or names.
Maybe you don't have the chromedriver that's required to crawl.
One example of how we use chromedriver is here.
Not having proper setup of the driver may result in empty playlists, especially related playlist one.
Contributions are warmly welcome. Please do go through CONTRIBUTING.
This is generated using pydeps. The codebase is kinda messy, isn't it? :D
playx. It's neat (and cool)暂无开放 Issues,或尚未同步最近议题。