Update src/components/playback/playbackmanager.js

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Cameron 2020-08-02 09:27:03 +01:00 committed by GitHub
parent 042cb4119b
commit 9067047403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,7 +620,7 @@ function supportsDirectPlay(apiClient, item, mediaSource) {
} else if (mediaSource.Protocol === 'File') {
return new Promise(function (resolve, reject) {
// Determine if the file can be accessed directly
import('filesystem').then(({ default: filesystem }) => {
import('filesystem').then((filesystem) => {
const method = isFolderRip ?
'directoryExists' :
'fileExists';