mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
UrlPlayer: start the chain with the url
This commit is contained in:
parent
9fc2265e41
commit
dc22a4782f
1 changed files with 3 additions and 3 deletions
|
|
@ -17,14 +17,14 @@ const prepareVM = ({ url, setStatus, setParts }) => {
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
|
|
||||||
const cleanUrl = url => _ =>
|
const cleanUrl = url =>
|
||||||
url.startsWith('blob:')
|
url.startsWith('blob:')
|
||||||
? url.replace(/#(.*)$/g, '')
|
? url.replace(/#(.*)$/g, '')
|
||||||
: url
|
: url
|
||||||
|
|
||||||
return Promise.resolve()
|
return Promise.resolve(url)
|
||||||
.then(st('loading', 'Downloading file'))
|
.then(st('loading', 'Downloading file'))
|
||||||
.then(cleanUrl(url))
|
.then(cleanUrl)
|
||||||
.then(fetch)
|
.then(fetch)
|
||||||
.then(st('loading', 'Processing file'))
|
.then(st('loading', 'Processing file'))
|
||||||
.then(response => response.arrayBuffer())
|
.then(response => response.arrayBuffer())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue