https://github.com/nulladmin1/vimusic-converter
A Python program that converts a ViMusic Playlist to a Spotify Playlist, using Python.
https://github.com/nulladmin1/vimusic-converter
converter music music-player playlist-converter spotify spotify-api vimusic
Last synced: 12 months ago
JSON representation
A Python program that converts a ViMusic Playlist to a Spotify Playlist, using Python.
- Host: GitHub
- URL: https://github.com/nulladmin1/vimusic-converter
- Owner: nulladmin1
- License: gpl-3.0
- Created: 2024-02-20T02:00:55.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T02:55:58.000Z (about 2 years ago)
- Last Synced: 2025-02-13T22:26:25.527Z (about 1 year ago)
- Topics: converter, music, music-player, playlist-converter, spotify, spotify-api, vimusic
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ViMusic-Converter
ViMusic-Converter is a Python script converting ViMusic playlists to playlists in other platforms. (Currently only supports Spotify)
## Installation
### From PyPI (recommended)
```
pip install vimusic-converter
```
### Build from source:
* **Clone this repo**
```
git clone https://github.com/nulladmin1/ViMusic-Converter.git
````
* **CD into repo**
```
cd "ViMusic-Converter"
```
* **Build project**
```
python setup.py bdist_wheel sdist
```
* **Install using Pip**
```
pip install .
```
## Usage
Backup your ViMusic and copy the `.db` file to the current directory.
```
python -m vimusic_converter
```
### For Spotify
* **Go to https://developer.spotify.com/dashboard and create an app with a redirect URI (default: https://localhost:8888/callback)**
#### Using .env file for secrets
* **Copy the client ID and execute: where `` is replaced by the copied client ID**
```
echo 'SPOTIPY_CLIENT_ID = ""' >> .env
```
* **Copy the client secret and execute: where `` is replaced by the copied client secret**
```
echo 'SPOTIPY_CLIENT_SECRET = ""' >> .env
```
* **Copy the redirect URI and execute: where `` is replaced by the copied redirect URI**
```
echo 'SPOTIPY_REDIRECT_URI = ""' >> .env
```
* **Create a Spotify Playlist and copy it's code from the URL (the code is `` in `https://spotify.com/playlist/`). Execute: where `` is replaced by the copied code**
```
echo 'SPOTIPY_PLAYLIST_URI = ""' >> .env
```
* **Run program:**
```
python main.py spotify --dotenv
```
#### Using environment variables for secrets
* **Copy the client ID and execute: where `` is replaced by the copied client ID**
```
export 'SPOTIPY_CLIENT_ID = ""'
```
* **Copy the client secret and execute: where `` is replaced by the copied client secret**
```
export 'SPOTIPY_CLIENT_SECRET = ""'
```
* **Copy the redirect URI and execute: where `` is replaced by the copied redirect URI**
```
export 'SPOTIPY_REDIRECT_URI = ""'
```
* **Create a Spotify Playlist and copy it's code from the URL (the code is `` in `https://spotify.com/playlist/`). Execute: where `` is replaced by the copied code**
```
export 'SPOTIPY_PLAYLIST_URI = ""'
```
* **Run program:**
```
python -m vimusic_converter spotify
```