Compare commits

..

3 Commits

Author SHA1 Message Date
Keith Edmunds
dd86c60636 Fix background color of row 1 on play 2022-04-08 22:53:48 +01:00
Keith Edmunds
a774f148ee Fix track length on import 2022-04-08 22:47:50 +01:00
Keith Edmunds
9da5328735 Use exports in run_prod 2022-04-07 11:51:18 +01:00
3 changed files with 4 additions and 6 deletions

View File

@ -422,7 +422,7 @@ class PlaylistTab(QTableWidget):
# Mark next-track row as current
current_row = self._get_next_track_row()
if not current_row:
if current_row is None:
return
self._set_current_track_row(current_row)

View File

@ -94,12 +94,10 @@ def create_track_from_file(session, path, normalise=None, interactive=False):
track = Tracks.get_or_create(session, path)
track.title = title
track.artist = artist
track.duration = int(round(
t['duration'], Config.MILLISECOND_SIGFIGS) * 1000)
if interactive:
INFO("Parse for start, fade and silence...")
audio = get_audio_segment(path)
track.duration = len(audio)
track.start_gap = leading_silence(audio)
track.fade_at = round(fade_point(audio) / 1000,
Config.MILLISECOND_SIGFIGS) * 1000

View File

@ -1,4 +1,4 @@
#!/bin/bash
MYSQL_CONNECT="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod"
ROOT="/home/kae/music"
export MYSQL_CONNECT="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod"
export ROOT="/home/kae/music"
./app/musicmuster.py