An open API service indexing awesome lists of open source software.

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.

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
```