mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
resolve mono build failure
This commit is contained in:
parent
41c7f70286
commit
9f00ca2c0c
2 changed files with 6 additions and 5 deletions
|
@ -983,7 +983,7 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.supportsDirectPlay = function (mediaSource) {
|
||||
self.supportsDirectPlay = function (mediaSource, itemType) {
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (mediaSource.SupportsDirectPlay) {
|
||||
|
@ -996,6 +996,7 @@
|
|||
}
|
||||
else {
|
||||
var val = mediaSource.Path.toLowerCase().replace('https:', 'http').indexOf(ApiClient.serverAddress().toLowerCase().replace('https:', 'http').substring(0, 14)) == 0;
|
||||
//resolve(val || itemType !== 'TvChannel');
|
||||
resolve(val);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue