mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove unused filesystem support
This commit is contained in:
parent
ac45163e4c
commit
4f762c1076
2 changed files with 0 additions and 28 deletions
|
@ -618,21 +618,6 @@ function supportsDirectPlay(apiClient, item, mediaSource) {
|
||||||
} else {
|
} else {
|
||||||
return isHostReachable(mediaSource, apiClient);
|
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);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue