remove probing of live tv feeds

This commit is contained in:
Luke Pulverenti 2015-06-04 00:50:10 -04:00
parent 5c5d7d034b
commit 9ffb82d96a
4 changed files with 12 additions and 23 deletions

View File

@ -54,7 +54,7 @@ namespace MediaBrowser.Server.Implementations.Connect
if (IsValid(address)) if (IsValid(address))
{ {
((ConnectManager) _connectManager).OnWanAddressResolved(address); ((ConnectManager)_connectManager).OnWanAddressResolved(address);
CacheAddress(address); CacheAddress(address);
} }
} }
@ -115,7 +115,14 @@ namespace MediaBrowser.Server.Implementations.Connect
private bool IsValid(string address) private bool IsValid(string address)
{ {
IPAddress ipAddress; IPAddress ipAddress;
return IPAddress.TryParse(address, out ipAddress); var valid = IPAddress.TryParse(address, out ipAddress);
if (!valid)
{
_logger.Error("{0} is not a valid ip address", address);
}
return valid;
} }
public void Dispose() public void Dispose()

View File

@ -3,7 +3,6 @@ using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.LiveTv; using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Controller.MediaEncoding; using MediaBrowser.Controller.MediaEncoding;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Dto; using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Logging; using MediaBrowser.Model.Logging;
using MediaBrowser.Model.MediaInfo; using MediaBrowser.Model.MediaInfo;
@ -137,25 +136,6 @@ namespace MediaBrowser.Server.Implementations.LiveTv
{ {
var originalRuntime = mediaSource.RunTimeTicks; var originalRuntime = mediaSource.RunTimeTicks;
var info = await _mediaEncoder.GetMediaInfo(new MediaInfoRequest
{
InputPath = mediaSource.Path,
Protocol = mediaSource.Protocol,
MediaType = isAudio ? DlnaProfileType.Audio : DlnaProfileType.Video,
ExtractChapters = false
}, cancellationToken).ConfigureAwait(false);
mediaSource.Bitrate = info.Bitrate;
mediaSource.Container = info.Container;
mediaSource.Formats = info.Formats;
mediaSource.MediaStreams = info.MediaStreams;
mediaSource.RunTimeTicks = info.RunTimeTicks;
mediaSource.Size = info.Size;
mediaSource.Timestamp = info.Timestamp;
mediaSource.Video3DFormat = info.Video3DFormat;
mediaSource.VideoType = info.VideoType;
mediaSource.DefaultSubtitleStreamIndex = null; mediaSource.DefaultSubtitleStreamIndex = null;
// Null this out so that it will be treated like a live stream // Null this out so that it will be treated like a live stream

View File

@ -786,6 +786,7 @@
"ButtonUnlockWithSupporter": "Sign in with Emby Supporter Membership", "ButtonUnlockWithSupporter": "Sign in with Emby Supporter Membership",
"MessagePleaseSignInLocalNetwork": "Before proceeding, please ensure that you're connected to your local network using a Wifi or LAN connection.", "MessagePleaseSignInLocalNetwork": "Before proceeding, please ensure that you're connected to your local network using a Wifi or LAN connection.",
"ButtonUnlockWithPurchase": "Unlock with Purchase", "ButtonUnlockWithPurchase": "Unlock with Purchase",
"ButtonUnlockPrice": "Unlock {0}",
"MessageLiveTvGuideRequiresUnlock": "The Live TV Guide is currently limited to {0} channels. Click the unlock button to learn how to enjoy the full experience.", "MessageLiveTvGuideRequiresUnlock": "The Live TV Guide is currently limited to {0} channels. Click the unlock button to learn how to enjoy the full experience.",
"OptionEnableFullscreen": "Enable Fullscreen", "OptionEnableFullscreen": "Enable Fullscreen",
"ButtonServer": "Server", "ButtonServer": "Server",

View File

@ -1452,5 +1452,6 @@
"HeaderColumns": "Columns", "HeaderColumns": "Columns",
"ButtonReset": "Reset", "ButtonReset": "Reset",
"OptionEnableExternalVideoPlayers": "Enable external video players", "OptionEnableExternalVideoPlayers": "Enable external video players",
"ButtonUnlockGuide": "Unlock Guide" "ButtonUnlockGuide": "Unlock Guide",
"LabelEnableFullScreen": "Enable fullScreen mode"
} }