mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed some issues
This commit is contained in:
0
maloja/proccontrol/__init__.py
Normal file
0
maloja/proccontrol/__init__.py
Normal file
@@ -1,11 +1,9 @@
|
||||
import os
|
||||
from .lastfmconverter import convert
|
||||
from .backup import backup
|
||||
from .fixexisting import fix
|
||||
from doreah.io import ask
|
||||
|
||||
from ...globalconf import datadir
|
||||
from ..control import restart
|
||||
from doreah.io import ask
|
||||
|
||||
|
||||
|
||||
def loadlastfm(filename):
|
||||
|
||||
@@ -18,17 +16,21 @@ def loadlastfm(filename):
|
||||
if not overwrite: return
|
||||
print("Please wait...")
|
||||
|
||||
from .lastfmconverter import convert
|
||||
convert(filename,datadir("scrobbles/lastfmimport.tsv"))
|
||||
#os.system("python3 -m maloja.lastfmconverter " + filename + " " + datadir("scrobbles/lastfmimport.tsv"))
|
||||
print("Successfully imported your Last.FM scrobbles!")
|
||||
|
||||
|
||||
def backuphere():
|
||||
from .backup import backup
|
||||
backup(folder=os.getcwd())
|
||||
|
||||
def update():
|
||||
os.system("pip3 install malojaserver --upgrade --no-cache-dir")
|
||||
from ..control import restart
|
||||
restart()
|
||||
|
||||
def fixdb():
|
||||
from .fixexisting import fix
|
||||
fix()
|
||||
|
||||
Reference in New Issue
Block a user