mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 22:59:17 +02:00
Removed transcoding support (#271)
This commit is contained in:
parent
390dcfd06f
commit
36a0a4df4f
7 changed files with 60 additions and 146 deletions
|
@ -18,7 +18,6 @@
|
|||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
import url from '@/utils/url'
|
||||
import formats from '@/audio/formats'
|
||||
import _ from 'lodash'
|
||||
// import logger from '@/logging'
|
||||
|
||||
|
@ -52,13 +51,6 @@ export default {
|
|||
let sources = [
|
||||
{type: file.mimetype, url: file.path}
|
||||
]
|
||||
formats.formats.forEach(f => {
|
||||
if (f !== file.mimetype) {
|
||||
let format = formats.formatsMap[f]
|
||||
let url = `/api/v1/trackfiles/transcode/?track_file=${file.id}&to=${format}`
|
||||
sources.push({type: f, url: url})
|
||||
}
|
||||
})
|
||||
if (this.$store.state.auth.authenticated) {
|
||||
// we need to send the token directly in url
|
||||
// so authentication can be checked by the backend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue