diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-06 00:39:07 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-06 00:39:07 -0500 |
| commit | b6d59c7688fc39d4689bc9070a7a99271d5b41ee (patch) | |
| tree | 214166a434a1007cea7c7b4396a001ed9c1efddc /MediaBrowser.Controller/Entities/Video.cs | |
| parent | 4ae6b5f675ba922dadd532870ef97dfa28ff3db3 (diff) | |
fixes #1001 - Support downloading
Diffstat (limited to 'MediaBrowser.Controller/Entities/Video.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Video.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs index 3abaf095c..12c377c90 100644 --- a/MediaBrowser.Controller/Entities/Video.cs +++ b/MediaBrowser.Controller/Entities/Video.cs @@ -64,6 +64,19 @@ namespace MediaBrowser.Controller.Entities LinkedAlternateVersions = new List<LinkedChild>(); } + public override bool CanDownload() + { + if (VideoType == VideoType.HdDvd || VideoType == VideoType.Dvd || + VideoType == VideoType.BluRay) + { + return false; + } + + var locationType = LocationType; + return locationType != LocationType.Remote && + locationType != LocationType.Virtual; + } + [IgnoreDataMember] public override bool SupportsAddingToPlaylist { |
