Skip to content

Commit

Permalink
add folder rip hack
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed May 11, 2017
1 parent 09cb80b commit 37146b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions playback/playbackmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2345,7 +2345,10 @@

function supportsDirectPlay(apiClient, item, mediaSource) {

if (mediaSource.SupportsDirectPlay) {
// folder rip hacks due to not yet being supported by the stream building engine
var isFolderRip = mediaSource.VideoType === 'BluRay' || mediaSource.VideoType === 'Dvd' || mediaSource.VideoType === 'HdDvd';

if (mediaSource.SupportsDirectPlay || isFolderRip) {

if (mediaSource.IsRemote && (item.Type === 'TvChannel' || item.Type === 'Trailer') && !apphost.supports('remotemedia')) {
return Promise.resolve(false);
Expand All @@ -2369,7 +2372,7 @@
// Determine if the file can be accessed directly
require(['filesystem'], function (filesystem) {

var method = mediaSource.VideoType === 'BluRay' || mediaSource.VideoType === 'Dvd' || mediaSource.VideoType === 'HdDvd' ?
var method = isFolderRip ?
'directoryExists' :
'fileExists';

Expand Down

0 comments on commit 37146b1

Please sign in to comment.