Skip to main content

Convert ViMusic Playlists into playlists for other platforms

Project description

ViMusic-Converter

ViMusic-Converter is a Python script converting ViMusic playlists to playlists in other platforms. (Currently only supports Spotify)

Installation

pip install vimusic-converter

Usage

Backup your ViMusic and copy the .db file to the current directory.

python main.py <vimusic .db file> <platform> <extra_args>

For Spotify

Using .env file for secrets

  • Copy the client ID and execute: where <client ID> is replaced by the copied client ID
echo 'SPOTIPY_CLIENT_ID = "<client ID>"' >> .env
  • Copy the client secret and execute: where <client secret> is replaced by the copied client secret
echo 'SPOTIPY_CLIENT_SECRET = "<client secret>"' >> .env
  • Copy the redirect URI and execute: where <redirect URI> is replaced by the copied redirect URI
echo 'SPOTIPY_REDIRECT_URI = "<redirect URI>"' >> .env
  • Create a Spotify Playlist and copy it's code from the URL (the code is <code> in https://spotify.com/playlist/<code>). Execute: where <playlist_code> is replaced by the copied code
echo 'SPOTIPY_PLAYLIST_URI = "<playlist_code>"' >> .env
  • Run program:
python main.py <vimusic .db file> spotify --dotenv

Using environment variables for secrets

  • Copy the client ID and execute: where <client ID> is replaced by the copied client ID
export 'SPOTIPY_CLIENT_ID = "<client ID>"'
  • Copy the client secret and execute: where <client secret> is replaced by the copied client secret
export 'SPOTIPY_CLIENT_SECRET = "<client secret>"'
  • Copy the redirect URI and execute: where <redirect URI> is replaced by the copied redirect URI
export 'SPOTIPY_REDIRECT_URI = "<redirect URI>"'
  • Create a Spotify Playlist and copy it's code from the URL (the code is <code> in https://spotify.com/playlist/<code>). Execute: where <playlist_code> is replaced by the copied code
export 'SPOTIPY_PLAYLIST_URI = "<playlist_code>"'
  • Run program:
python main.py <vimusic .db file> spotify

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vimusic_converter-0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vimusic_converter-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file vimusic_converter-0.1.tar.gz.

File metadata

  • Download URL: vimusic_converter-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for vimusic_converter-0.1.tar.gz
Algorithm Hash digest
SHA256 f715c72533dd9a0c8c6316e0ae3f6d49cfbd3a2126fc4531e3daab350d496e5a
MD5 313e4acb42a1fa4843b5ab0077d59c08
BLAKE2b-256 69ab11059f73ba5ae77cc9b391055379f540307dc3cdc286dcfc575bb8352e35

See more details on using hashes here.

File details

Details for the file vimusic_converter-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vimusic_converter-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8601dbf1a9e2a3f96c1a956e32818ccdaaf3c345e7d341bd91059bdf140c12e
MD5 6dca9ec6a9249c96431e08676c2d4186
BLAKE2b-256 02be17ebcbea40ae173ec042e8c9fc01f3a61ee77abd1a1c6f672c88d538b75a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page