update offline detection

This commit is contained in:
Luke Pulverenti 2015-09-21 11:43:10 -04:00
parent c651a45dea
commit 930c8cf6d8
26 changed files with 813 additions and 784 deletions

View file

@ -102,6 +102,13 @@
return deferred.promise();
}
function translateFilePath(path) {
var deferred = DeferredBuilder.Deferred();
deferred.resolveWith(null, [path]);
return deferred.promise();
}
window.LocalAssetManager = {
getLocalMediaSource: getLocalMediaSource,
saveOfflineUser: saveOfflineUser,
@ -118,7 +125,8 @@
downloadSubtitles: downloadSubtitles,
hasImage: hasImage,
downloadImage: downloadImage,
fileExists: fileExists
fileExists: fileExists,
translateFilePath: translateFilePath
};
})();