parent
32fb44439d
commit
2fbf829eed
@ -72,6 +72,9 @@ def create_track_from_file(session, path, verbose=False):
|
||||
t = get_music_info(path)
|
||||
track.title = t['title']
|
||||
track.artist = t['artist']
|
||||
if verbose:
|
||||
INFO(f" Title: \"{track.title}\"")
|
||||
INFO(f" Artist: \"{track.artist}\"")
|
||||
track.duration = int(round(
|
||||
t['duration'], Config.MILLISECOND_SIGFIGS) * 1000)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user