mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 07:16:31 +01:00
Remove unused code...
This commit is contained in:
@@ -131,7 +131,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
public TranscodingProfile GetAudioTranscodingProfile(string container, string audioCodec)
|
||||
{
|
||||
container = StringHelper.TrimStart((container ?? string.Empty), '.');
|
||||
container = StringHelper.TrimStart(container ?? string.Empty, '.');
|
||||
|
||||
foreach (var i in TranscodingProfiles)
|
||||
{
|
||||
@@ -157,7 +157,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
public TranscodingProfile GetVideoTranscodingProfile(string container, string audioCodec, string videoCodec)
|
||||
{
|
||||
container = StringHelper.TrimStart((container ?? string.Empty), '.');
|
||||
container = StringHelper.TrimStart(container ?? string.Empty, '.');
|
||||
|
||||
foreach (var i in TranscodingProfiles)
|
||||
{
|
||||
@@ -188,7 +188,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
public ResponseProfile GetAudioMediaProfile(string container, string audioCodec, int? audioChannels, int? audioBitrate)
|
||||
{
|
||||
container = StringHelper.TrimStart((container ?? string.Empty), '.');
|
||||
container = StringHelper.TrimStart(container ?? string.Empty, '.');
|
||||
|
||||
foreach (var i in ResponseProfiles)
|
||||
{
|
||||
@@ -233,7 +233,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
public ResponseProfile GetImageMediaProfile(string container, int? width, int? height)
|
||||
{
|
||||
container = StringHelper.TrimStart((container ?? string.Empty), '.');
|
||||
container = StringHelper.TrimStart(container ?? string.Empty, '.');
|
||||
|
||||
foreach (var i in ResponseProfiles)
|
||||
{
|
||||
@@ -289,7 +289,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
int? numAudioStreams,
|
||||
string videoCodecTag)
|
||||
{
|
||||
container = StringHelper.TrimStart((container ?? string.Empty), '.');
|
||||
container = StringHelper.TrimStart(container ?? string.Empty, '.');
|
||||
|
||||
foreach (var i in ResponseProfiles)
|
||||
{
|
||||
|
||||
@@ -13,12 +13,12 @@ namespace MediaBrowser.Model.Dlna
|
||||
and there are no issues with causing a buffer overflow if the
|
||||
receiver uses TCP flow control to reduce total throughput.
|
||||
*/
|
||||
BackgroundTransferMode = (1 << 22),
|
||||
BackgroundTransferMode = 1 << 22,
|
||||
|
||||
ByteBasedSeek = (1 << 29),
|
||||
ConnectionStall = (1 << 21),
|
||||
ByteBasedSeek = 1 << 29,
|
||||
ConnectionStall = 1 << 21,
|
||||
|
||||
DlnaV15 = (1 << 20),
|
||||
DlnaV15 = 1 << 20,
|
||||
|
||||
/*! <i>Interactive</i> transfer mode.
|
||||
For best effort transfer of images and non-real-time transfers.
|
||||
@@ -27,13 +27,13 @@ namespace MediaBrowser.Model.Dlna
|
||||
\ref DH_TransferMode_Bulk is that the former assumes that the
|
||||
transfer is intended for immediate rendering.
|
||||
*/
|
||||
InteractiveTransferMode = (1 << 23),
|
||||
InteractiveTransferMode = 1 << 23,
|
||||
|
||||
PlayContainer = (1 << 28),
|
||||
RtspPause = (1 << 25),
|
||||
S0Increase = (1 << 27),
|
||||
SenderPaced = (1L << 31),
|
||||
SnIncrease = (1 << 26),
|
||||
PlayContainer = 1 << 28,
|
||||
RtspPause = 1 << 25,
|
||||
S0Increase = 1 << 27,
|
||||
SenderPaced = 1L << 31,
|
||||
SnIncrease = 1 << 26,
|
||||
|
||||
/*! <i>Streaming</i> transfer mode.
|
||||
The server transmits at a throughput sufficient for real-time playback of
|
||||
@@ -41,8 +41,8 @@ namespace MediaBrowser.Model.Dlna
|
||||
\ref DH_TransferMode_Interactive and \ref DH_TransferMode_Bulk transfer modes.
|
||||
The most well-known exception to this general claim is for live streams.
|
||||
*/
|
||||
StreamingTransferMode = (1 << 24),
|
||||
StreamingTransferMode = 1 << 24,
|
||||
|
||||
TimeBasedSeek = (1 << 30)
|
||||
TimeBasedSeek = 1 << 30
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@ using MediaBrowser.Model.MediaInfo;
|
||||
using MediaBrowser.Model.Session;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
||||
namespace MediaBrowser.Model.Dlna
|
||||
{
|
||||
@@ -194,7 +193,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
list.Add(new NameValuePair("DeviceProfileId", item.DeviceProfileId ?? string.Empty));
|
||||
list.Add(new NameValuePair("DeviceId", item.DeviceId ?? string.Empty));
|
||||
list.Add(new NameValuePair("MediaSourceId", item.MediaSourceId ?? string.Empty));
|
||||
list.Add(new NameValuePair("Static", (item.IsDirectStream).ToString().ToLower()));
|
||||
list.Add(new NameValuePair("Static", item.IsDirectStream.ToString().ToLower()));
|
||||
list.Add(new NameValuePair("VideoCodec", item.VideoCodec ?? string.Empty));
|
||||
list.Add(new NameValuePair("AudioCodec", item.AudioCodec ?? string.Empty));
|
||||
list.Add(new NameValuePair("AudioStreamIndex", item.AudioStreamIndex.HasValue ? StringHelper.ToStringCultureInvariant(item.AudioStreamIndex.Value) : string.Empty));
|
||||
@@ -233,7 +232,7 @@ namespace MediaBrowser.Model.Dlna
|
||||
list.Add(new NameValuePair("ItemId", item.ItemId));
|
||||
}
|
||||
|
||||
list.Add(new NameValuePair("CopyTimestamps", (item.CopyTimestamps).ToString().ToLower()));
|
||||
list.Add(new NameValuePair("CopyTimestamps", item.CopyTimestamps.ToString().ToLower()));
|
||||
list.Add(new NameValuePair("SubtitleMethod", item.SubtitleStreamIndex.HasValue && item.SubtitleDeliveryMethod != SubtitleDeliveryMethod.External ? item.SubtitleDeliveryMethod.ToString() : string.Empty));
|
||||
|
||||
return list;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// Class LibrarySummary
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
foreach (MediaStream i in MediaStreams)
|
||||
{
|
||||
if (i.Type == MediaStreamType.Video && StringHelper.IndexOfIgnoreCase((i.Codec ?? string.Empty), "jpeg") == -1)
|
||||
if (i.Type == MediaStreamType.Video && StringHelper.IndexOfIgnoreCase(i.Codec ?? string.Empty, "jpeg") == -1)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using MediaBrowser.Model.Dlna;
|
||||
using MediaBrowser.Model.Dlna;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using System.Diagnostics;
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using MediaBrowser.Model.Configuration;
|
||||
|
||||
namespace MediaBrowser.Model.Notifications
|
||||
{
|
||||
public class NotificationOption
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using MediaBrowser.Model.Configuration;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using MediaBrowser.Model.Users;
|
||||
|
||||
namespace MediaBrowser.Model.Notifications
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Search
|
||||
namespace MediaBrowser.Model.Search
|
||||
{
|
||||
/// <summary>
|
||||
/// Class SearchHintResult
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Tasks
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Updates
|
||||
namespace MediaBrowser.Model.Updates
|
||||
{
|
||||
/// <summary>
|
||||
/// Class InstallationInfo
|
||||
|
||||
Reference in New Issue
Block a user