diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 284a67af7..2b683130d 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -618,21 +618,6 @@ function supportsDirectPlay(apiClient, item, mediaSource) { } else { return isHostReachable(mediaSource, apiClient); } - } else if (mediaSource.Protocol === 'File') { - return new Promise(function (resolve) { - // Determine if the file can be accessed directly - import('../../scripts/filesystem').then((filesystem) => { - const method = isFolderRip ? - 'directoryExists' : - 'fileExists'; - - filesystem[method](mediaSource.Path).then(function () { - resolve(true); - }, function () { - resolve(false); - }); - }); - }); } } diff --git a/src/scripts/filesystem.js b/src/scripts/filesystem.js deleted file mode 100644 index 3c14020d1..000000000 --- a/src/scripts/filesystem.js +++ /dev/null @@ -1,13 +0,0 @@ -export function fileExists(path) { - if (window.NativeShell && window.NativeShell.FileSystem) { - return window.NativeShell.FileSystem.fileExists(path); - } - return Promise.reject(); -} - -export function directoryExists(path) { - if (window.NativeShell && window.NativeShell.FileSystem) { - return window.NativeShell.FileSystem.directoryExists(path); - } - return Promise.reject(); -}