Skip to content
Snippets Groups Projects
Commit 9f638dc7 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

SpotifyRecorder: do not try to calculate duration of local track

parent fb24585f
Branches
Tags
No related merge requests found
......@@ -68,7 +68,7 @@ class SpotifyRecorder:
LOGGER.info(f'Recording track #{self._startNumber} to (including) #{self._startNumber + self._limit - 1}')
tracks = tracks[self._startNumber - 1:self._startNumber - 1 + self._limit]
totalDurationInSeconds = sum([track['track']['duration_ms'] // 1000 for track in tracks])
totalDurationInSeconds = sum([track['track']['duration_ms'] // 1000 for track in tracks if not track['is_local']])
LOGGER.info(f'Total duration: {self.__convert_seconds_to_duration(totalDurationInSeconds)}')
if click.confirm('Do you want to start recording?', default=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment