diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-19 02:32:39 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-19 02:32:39 -0500 |
| commit | fe1630aec43fca7b1450659704269e0cc6f3cb40 (patch) | |
| tree | 7ad78feb848e93c6889f883d0e0e9b7b2c8b7f65 /MediaBrowser.Controller | |
| parent | da5f64e42447e3829a6b97c7e739feaa3dc004a8 (diff) | |
update default dlna profile
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Channels/ChannelMediaInfo.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs b/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs index 42ba709ab..6d2190680 100644 --- a/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs +++ b/MediaBrowser.Controller/Channels/ChannelMediaInfo.cs @@ -49,9 +49,11 @@ namespace MediaBrowser.Controller.Channels SupportsDirectPlay = true; } - public MediaSourceInfo ToMediaSource() + public MediaSourceInfo ToMediaSource(Guid itemId) { - var id = Path.GetMD5().ToString("N"); + var id = string.IsNullOrWhiteSpace(Path) ? + itemId.ToString("N") : + Path.GetMD5().ToString("N"); var source = new MediaSourceInfo { |
