fix some issues in player + player with icon
This commit is contained in:
parent
e05cdb343d
commit
0d7c32e806
|
@ -627,6 +627,11 @@ class SectionPlayer(Section):
|
||||||
_('audio streams'),
|
_('audio streams'),
|
||||||
help_text = _('one audio stream per line'),
|
help_text = _('one audio stream per line'),
|
||||||
)
|
)
|
||||||
|
icon = models.ImageField(
|
||||||
|
_('icon'),
|
||||||
|
blank = True, null = True,
|
||||||
|
help_text = _('icon to display in the player')
|
||||||
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('Section: Player')
|
verbose_name = _('Section: Player')
|
||||||
|
@ -641,7 +646,7 @@ class SectionPlayer(Section):
|
||||||
context['tracks'] = [SectionPlaylist.Track(
|
context['tracks'] = [SectionPlaylist.Track(
|
||||||
name = self.live_title,
|
name = self.live_title,
|
||||||
sources = self.streams.split('\r\n'),
|
sources = self.streams.split('\r\n'),
|
||||||
data_url = 'https://aircox.radiocampus.be/aircox/on_air', # reverse('aircox.on_air'),
|
data_url = reverse('aircox.on_air'),
|
||||||
interval = 10,
|
interval = 10,
|
||||||
run = True,
|
run = True,
|
||||||
)]
|
)]
|
||||||
|
|
|
@ -58,12 +58,12 @@ class Track {
|
||||||
data = {
|
data = {
|
||||||
name: '♫ ' + (data.artist ? data.artist + ' — ' : '') +
|
name: '♫ ' + (data.artist ? data.artist + ' — ' : '') +
|
||||||
data.title,
|
data.title,
|
||||||
data_url: ''
|
detail_url: ''
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
data = {
|
data = {
|
||||||
title: data.title,
|
title: data.title,
|
||||||
data_url: data.url
|
detail_url: data.url
|
||||||
}
|
}
|
||||||
Object.assign(self, data);
|
Object.assign(self, data);
|
||||||
};
|
};
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
:value="seek_position" :max="duration"
|
:value="seek_position" :max="duration"
|
||||||
></progress>
|
></progress>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions" v-show="duration">
|
||||||
<a class="action remove"
|
<a class="action remove"
|
||||||
title="{% trans "Remove from playlist" %}"
|
title="{% trans "Remove from playlist" %}"
|
||||||
v-if="this.$parent.modifiable"
|
v-if="this.$parent.modifiable"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user