diff --git a/CHANGELOG b/CHANGELOG index f2705739c..6e8494425 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,19 @@ Changelog .. towncrier +0.5.4 (2018-02-28) +------------------ + +Features: + +- Now stop running radio when clearing queue (#98) + +Bugfixes: + +- Fixed queue skipping tracks (#91) +- Now loop properly on queue when we only have one track (#95) + + 0.5.3 (2018-02-27) ------------------ diff --git a/api/funkwhale_api/__init__.py b/api/funkwhale_api/__init__.py index 03e434591..c1f45ffb6 100644 --- a/api/funkwhale_api/__init__.py +++ b/api/funkwhale_api/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = '0.5.3' +__version__ = '0.5.4' __version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')]) diff --git a/front/src/components/audio/Track.vue b/front/src/components/audio/Track.vue index e3f1c18b3..370d8ae2d 100644 --- a/front/src/components/audio/Track.vue +++ b/front/src/components/audio/Track.vue @@ -10,7 +10,7 @@ @@ -19,7 +19,7 @@ import {mapState} from 'vuex' import url from '@/utils/url' import formats from '@/audio/formats' - +import _ from 'lodash' // import logger from '@/logging' export default { @@ -98,13 +98,14 @@ export default { } } }, - updateProgress: function () { + updateProgress: _.throttle(function () { if (this.$refs.audio) { this.$store.dispatch('player/updateProgress', this.$refs.audio.currentTime) } - }, + }, 250), ended: function () { - if (this.looping === 1) { + let onlyTrack = this.$store.state.queue.tracks.length === 1 + if (this.looping === 1 || (onlyTrack && this.looping === 2)) { this.setCurrentTime(0) this.$refs.audio.play() } else { diff --git a/front/src/components/library/import/FileUpload.vue b/front/src/components/library/import/FileUpload.vue index 1b90adc9d..35338c656 100644 --- a/front/src/components/library/import/FileUpload.vue +++ b/front/src/components/library/import/FileUpload.vue @@ -1,8 +1,8 @@