GithubHelp home page GithubHelp logo

jonnobrow / spotify2m3u Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 31 KB

A simple command-line tool to convert spotify playlists into m3u files from your local library.

License: GNU General Public License v3.0

Python 100.00%
command-line m3u spotify-api

spotify2m3u's Introduction

๐Ÿ˜„ Hi, I'm Jonathan

I'm twenty four, my pronouns are he/him and I'm working for Sky and continuing to learn.

My new projects live on GitHub, but some older projects are still available on my Gitlab.

โšก Some more about what I'm doing

  • ๐Ÿ’ป Day Job: I'm working for Sky as Site Reliability Engineer
  • ๐Ÿ”ญ Main Personal Projects:

๐Ÿ’ฌ Want to learn a bit more about me or get in touch?

spotify2m3u's People

Contributors

jonnobrow avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

djrondon

spotify2m3u's Issues

Error when starting

First: Great idea, it is exactly what I am looking for :)

I am a python noob ... so maybe I do something wrong ...

But when I start the script I get errors.

2022-04-29 23:08:53,875 - spotify2m3u.spotify2m3u.find_matches - INFO - Instatiating beets library
Traceback (most recent call last):
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 1020, in _make_table
rows = tx.query('PRAGMA table_info(%s)' % table)
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 863, in query
cursor = self.db._connection().execute(statement, subvals)
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 947, in _connection
conn = self._create_connection()
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/library.py", line 1439, in _create_connection
conn = super(Library, self)._create_connection()
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 961, in _create_connection
conn = sqlite3.connect(
sqlite3.OperationalError: unable to open database file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/root/spotify2m3u/spotify2m3u/spotify2m3u/main.py", line 2, in
from spotify2m3u import find_matches, get_logger
File "/root/spotify2m3u/spotify2m3u/spotify2m3u/find_matches.py", line 13, in
lib = beets.library.Library(beets_db_path, music_dir_path,
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/library.py", line 1430, in init
super(Library, self).init(path, timeout=timeout)
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 933, in init
self._make_table(model_cls._table, model_cls._fields)
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 1020, in _make_table
rows = tx.query('PRAGMA table_info(%s)' % table)
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 855, in exit
self.db._connection().commit()
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 947, in _connection
conn = self._create_connection()
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/library.py", line 1439, in _create_connection
conn = super(Library, self)._create_connection()
File "/root/spotify2m3u/spotify2m3u/venv/lib/python3.9/site-packages/beets/dbcore/db.py", line 961, in _create_connection
conn = sqlite3.connect(
sqlite3.OperationalError: unable to open database file

My config.yaml

auto_mode: False

paths:
music_dir: /media/spotify/TEST
beets_db: /root/library.db
playlist_dir: /media/spotify/playlists/

credentials:
CLIENT_ID: yakyakyak
CLIENT_SECRET: yakyakyak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.