Skip to content

Commit

Permalink
fix download urls
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Issleib <ben@kampfq.eu>
  • Loading branch information
kampfq committed Feb 16, 2019
1 parent 5574b69 commit 53f1a68
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
poster: '{{ vich_uploader_asset(podcastEpisode, 'imageFile')}}',
duration: '{{ podcastEpisode.getDuration(audioBasePath) }}',
audio: [{
url: '{{ vich_uploader_asset(podcastEpisode, 'audioFile')}}',
url: '{{ app.request.getUriForPath(vich_uploader_asset(podcastEpisode, 'audioFile'))}}',
mimeType: 'audio/mp3',
size: {{ podcastEpisode.getFileSize(audioBasePath) }},
title: 'Audio MP3'
Expand All @@ -69,10 +69,8 @@
main: '#00D7B5'
}
}).then(function (store) {
store.dispatch({
type: 'UI_PLAY',
payload: {}
})})
store.dispatch(store.actions.play())
})
;">
<img class="timeline-play-icon" src="{{ asset('fonts/svg/media-play.svg') }}" alt="icon name">

Expand Down Expand Up @@ -110,16 +108,14 @@
poster: '{{ vich_uploader_asset(latestEpisode, 'imageFile')}}',
duration: '{{ latestEpisode.getDuration(audioBasePath) }}',
audio: [{
url: '{{ vich_uploader_asset(latestEpisode, 'audioFile')}}',
url: '{{ app.request.getUriForPath(vich_uploader_asset(latestEpisode, 'audioFile'))}}',
mimeType: 'audio/mp3',
size: {{ latestEpisode.getFileSize(audioBasePath) }},
title: 'Audio MP3'
}],
theme: {
main: '#00D7B5'
}
}).then(function (store) {
store.dispatch(store.actions.play())
});
</script>

Expand All @@ -128,7 +124,7 @@
"title": "{{ podcast.getTitle() }}",
"subtitle": "{{ podcast.getSubtitle() }}",
"description": "{{ podcast.getDescription() }}",
"cover": "{{ vich_uploader_asset(podcast, 'imageFile')}}",
"cover": "{{ app.request.getUriForPath(vich_uploader_asset(podcast, 'imageFile'))}}",
"feeds": [
{
"type": "audio",
Expand Down

0 comments on commit 53f1a68

Please sign in to comment.