fix db library path, move to pyqtdarktheme maintained fork
This commit is contained in:
parent
f997fa80ed
commit
199932d3f9
12
main.py
12
main.py
@ -121,9 +121,7 @@ class Worker(QRunnable):
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
exctype, value = sys.exc_info()[:2]
|
exctype, value = sys.exc_info()[:2]
|
||||||
self.signals.signal_finished.emit((exctype, value, traceback.format_exc()))
|
self.signals.signal_finished.emit((exctype, value, traceback.format_exc()))
|
||||||
error(
|
error(f"Worker failed: {exctype} | {value} | {traceback.format_exc()}")
|
||||||
f"Worker failed: {exctype} | {value} | {traceback.format_exc()}"
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
if result:
|
if result:
|
||||||
self.signals.signal_finished.emit()
|
self.signals.signal_finished.emit()
|
||||||
@ -375,9 +373,7 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow):
|
|||||||
debug("Deleting album art")
|
debug("Deleting album art")
|
||||||
audio.save()
|
audio.save()
|
||||||
else:
|
else:
|
||||||
warning(
|
warning("delete_album_art_for_current_song() | no tag called APIC")
|
||||||
"delete_album_art_for_current_song() | no tag called APIC"
|
|
||||||
)
|
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
exctype, value = sys.exc_info()[:2]
|
exctype, value = sys.exc_info()[:2]
|
||||||
@ -578,7 +574,9 @@ if __name__ == "__main__":
|
|||||||
config = ConfigParser()
|
config = ConfigParser()
|
||||||
config.read("config.ini")
|
config.read("config.ini")
|
||||||
db_filepath: str = config.get("db", "database")
|
db_filepath: str = config.get("db", "database")
|
||||||
db_path: str = "/".join(db_filepath.split("/").pop())
|
db_path = db_filepath.split("/")
|
||||||
|
db_path.pop()
|
||||||
|
db_path = "/".join(db_path)
|
||||||
# If the db file doesn't exist
|
# If the db file doesn't exist
|
||||||
if not os.path.exists(db_filepath):
|
if not os.path.exists(db_filepath):
|
||||||
# If the db directory doesn't exist
|
# If the db directory doesn't exist
|
||||||
|
|||||||
@ -2,6 +2,6 @@ mutagen
|
|||||||
matplotlib
|
matplotlib
|
||||||
pyqt5
|
pyqt5
|
||||||
pydub
|
pydub
|
||||||
pyqtdarktheme
|
pyqtdarktheme-fork
|
||||||
pyqtgraph
|
pyqtgraph
|
||||||
scipy
|
scipy
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user