Compare commits
3 Commits
79e1fdde27
...
dd86c60636
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd86c60636 | ||
|
|
a774f148ee | ||
|
|
9da5328735 |
@ -422,7 +422,7 @@ class PlaylistTab(QTableWidget):
|
|||||||
|
|
||||||
# Mark next-track row as current
|
# Mark next-track row as current
|
||||||
current_row = self._get_next_track_row()
|
current_row = self._get_next_track_row()
|
||||||
if not current_row:
|
if current_row is None:
|
||||||
return
|
return
|
||||||
self._set_current_track_row(current_row)
|
self._set_current_track_row(current_row)
|
||||||
|
|
||||||
|
|||||||
@ -94,12 +94,10 @@ def create_track_from_file(session, path, normalise=None, interactive=False):
|
|||||||
track = Tracks.get_or_create(session, path)
|
track = Tracks.get_or_create(session, path)
|
||||||
track.title = title
|
track.title = title
|
||||||
track.artist = artist
|
track.artist = artist
|
||||||
track.duration = int(round(
|
|
||||||
t['duration'], Config.MILLISECOND_SIGFIGS) * 1000)
|
|
||||||
|
|
||||||
if interactive:
|
if interactive:
|
||||||
INFO("Parse for start, fade and silence...")
|
INFO("Parse for start, fade and silence...")
|
||||||
audio = get_audio_segment(path)
|
audio = get_audio_segment(path)
|
||||||
|
track.duration = len(audio)
|
||||||
track.start_gap = leading_silence(audio)
|
track.start_gap = leading_silence(audio)
|
||||||
track.fade_at = round(fade_point(audio) / 1000,
|
track.fade_at = round(fade_point(audio) / 1000,
|
||||||
Config.MILLISECOND_SIGFIGS) * 1000
|
Config.MILLISECOND_SIGFIGS) * 1000
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MYSQL_CONNECT="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod"
|
export MYSQL_CONNECT="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod"
|
||||||
ROOT="/home/kae/music"
|
export ROOT="/home/kae/music"
|
||||||
./app/musicmuster.py
|
./app/musicmuster.py
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user