mirror of https://github.com/jellyfin/jellyfin.git
fix SA1508
This commit is contained in:
parent
acd4389653
commit
3d9049ef08
|
@ -12,7 +12,6 @@ namespace Emby.Dlna.Didl
|
||||||
public Filter()
|
public Filter()
|
||||||
: this("*")
|
: this("*")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Filter(string filter)
|
public Filter(string filter)
|
||||||
|
|
|
@ -88,7 +88,6 @@ namespace Emby.Dlna
|
||||||
.Select(i => i.Item2)
|
.Select(i => i.Item2)
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public DeviceProfile GetDefaultProfile()
|
public DeviceProfile GetDefaultProfile()
|
||||||
|
|
|
@ -169,7 +169,6 @@ namespace Emby.Dlna.Eventing
|
||||||
{
|
{
|
||||||
using (await _httpClient.SendAsync(options, new HttpMethod("NOTIFY")).ConfigureAwait(false))
|
using (await _httpClient.SendAsync(options, new HttpMethod("NOTIFY")).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
|
|
|
@ -794,7 +794,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
}
|
}
|
||||||
catch (XmlException)
|
catch (XmlException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// first try to add a root node with a dlna namesapce
|
// first try to add a root node with a dlna namesapce
|
||||||
|
@ -806,7 +805,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
}
|
}
|
||||||
catch (XmlException)
|
catch (XmlException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// some devices send back invalid xml
|
// some devices send back invalid xml
|
||||||
|
@ -816,7 +814,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
}
|
}
|
||||||
catch (XmlException)
|
catch (XmlException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -112,7 +112,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +242,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_sessionLock.Dispose();
|
_sessionLock.Dispose();
|
||||||
|
|
|
@ -91,7 +91,6 @@ namespace Emby.Dlna.PlayTo
|
||||||
|
|
||||||
using (await _httpClient.SendAsync(options, new HttpMethod("SUBSCRIBE")).ConfigureAwait(false))
|
using (await _httpClient.SendAsync(options, new HttpMethod("SUBSCRIBE")).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,6 @@ namespace Emby.Server.Implementations.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}, ReadTransactionMode);
|
}, ReadTransactionMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,6 @@ namespace Emby.Server.Implementations.Data
|
||||||
_libraryManager.DeleteItem(item, new DeleteOptions
|
_libraryManager.DeleteItem(item, new DeleteOptions
|
||||||
{
|
{
|
||||||
DeleteFileLocation = false
|
DeleteFileLocation = false
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -321,7 +321,6 @@ namespace Emby.Server.Implementations.Data
|
||||||
AddColumn(db, "MediaStreams", "ColorPrimaries", "TEXT", existingColumnNames);
|
AddColumn(db, "MediaStreams", "ColorPrimaries", "TEXT", existingColumnNames);
|
||||||
AddColumn(db, "MediaStreams", "ColorSpace", "TEXT", existingColumnNames);
|
AddColumn(db, "MediaStreams", "ColorSpace", "TEXT", existingColumnNames);
|
||||||
AddColumn(db, "MediaStreams", "ColorTransfer", "TEXT", existingColumnNames);
|
AddColumn(db, "MediaStreams", "ColorTransfer", "TEXT", existingColumnNames);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
|
|
||||||
connection.RunQueries(postQueries);
|
connection.RunQueries(postQueries);
|
||||||
|
@ -2044,7 +2043,6 @@ namespace Emby.Server.Implementations.Data
|
||||||
db.Execute("delete from " + ChaptersTableName + " where ItemId=@ItemId", idBlob);
|
db.Execute("delete from " + ChaptersTableName + " where ItemId=@ItemId", idBlob);
|
||||||
|
|
||||||
InsertChapters(idBlob, chapters, db);
|
InsertChapters(idBlob, chapters, db);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4789,7 +4787,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||||
connection.RunInTransaction(db =>
|
connection.RunInTransaction(db =>
|
||||||
{
|
{
|
||||||
connection.ExecuteAll(sql);
|
connection.ExecuteAll(sql);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5180,7 +5177,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LogQueryTime("GetItemValueNames", commandText, now);
|
LogQueryTime("GetItemValueNames", commandText, now);
|
||||||
|
@ -5631,7 +5627,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||||
db.Execute("delete from People where ItemId=@ItemId", itemIdBlob);
|
db.Execute("delete from People where ItemId=@ItemId", itemIdBlob);
|
||||||
|
|
||||||
InsertPeople(itemIdBlob, people, db);
|
InsertPeople(itemIdBlob, people, db);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5788,7 +5783,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||||
db.Execute("delete from mediastreams where ItemId=@ItemId", itemIdBlob);
|
db.Execute("delete from mediastreams where ItemId=@ItemId", itemIdBlob);
|
||||||
|
|
||||||
InsertMediaStreams(itemIdBlob, streams, db);
|
InsertMediaStreams(itemIdBlob, streams, db);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6134,7 +6128,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||||
db.Execute("delete from mediaattachments where ItemId=@ItemId", itemIdBlob);
|
db.Execute("delete from mediaattachments where ItemId=@ItemId", itemIdBlob);
|
||||||
|
|
||||||
InsertMediaAttachments(itemIdBlob, attachments, db, cancellationToken);
|
InsertMediaAttachments(itemIdBlob, attachments, db, cancellationToken);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -593,7 +593,6 @@ namespace Emby.Server.Implementations.Dto
|
||||||
_logger.LogError(ex, "Error getting person {Name}", c);
|
_logger.LogError(ex, "Error getting person {Name}", c);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}).Where(i => i != null)
|
}).Where(i => i != null)
|
||||||
.GroupBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
.GroupBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
||||||
.Select(x => x.First())
|
.Select(x => x.First())
|
||||||
|
@ -1000,7 +999,6 @@ namespace Emby.Server.Implementations.Dto
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}).Where(i => i != null).ToArray();
|
}).Where(i => i != null).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1051,7 +1049,6 @@ namespace Emby.Server.Implementations.Dto
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}).Where(i => i != null).ToArray();
|
}).Where(i => i != null).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +174,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_appHost = appHost;
|
_appHost = appHost;
|
||||||
_config = configuration;
|
_config = configuration;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|
|
@ -580,7 +580,6 @@ namespace Emby.Server.Implementations.HttpServer
|
||||||
}
|
}
|
||||||
catch (NotSupportedException)
|
catch (NotSupportedException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,6 @@ namespace Emby.Server.Implementations.IO
|
||||||
{
|
{
|
||||||
DisposeWatcher(newWatcher, false);
|
DisposeWatcher(newWatcher, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -393,7 +392,6 @@ namespace Emby.Server.Implementations.IO
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
monitorPath = false;
|
monitorPath = false;
|
||||||
|
|
|
@ -71,7 +71,6 @@ namespace Emby.Server.Implementations.Images
|
||||||
new ValueTuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending)
|
new ValueTuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending)
|
||||||
},
|
},
|
||||||
IncludeItemTypes = includeItemTypes
|
IncludeItemTypes = includeItemTypes
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,6 @@ namespace Emby.Server.Implementations.Images
|
||||||
}
|
}
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
}).GroupBy(x => x.Id)
|
}).GroupBy(x => x.Id)
|
||||||
.Select(x => x.First());
|
.Select(x => x.First());
|
||||||
|
|
||||||
|
|
|
@ -2861,7 +2861,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
_logger.LogError(ex, "Error getting person");
|
_logger.LogError(ex, "Error getting person");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}).Where(i => i != null).ToList();
|
}).Where(i => i != null).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -436,7 +436,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}).ThenBy(i => i.Video3DFormat.HasValue ? 1 : 0)
|
}).ThenBy(i => i.Video3DFormat.HasValue ? 1 : 0)
|
||||||
.ThenByDescending(i =>
|
.ThenByDescending(i =>
|
||||||
{
|
{
|
||||||
|
@ -620,7 +619,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
MediaSource = mediaSource,
|
MediaSource = mediaSource,
|
||||||
ExtractChapters = false,
|
ExtractChapters = false,
|
||||||
MediaType = DlnaProfileType.Video
|
MediaType = DlnaProfileType.Video
|
||||||
|
|
||||||
}, cancellationToken).ConfigureAwait(false);
|
}, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
mediaSource.MediaStreams = info.MediaStreams;
|
mediaSource.MediaStreams = info.MediaStreams;
|
||||||
|
|
|
@ -73,7 +73,6 @@ namespace Emby.Server.Implementations.Library.Resolvers
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.Select(i => _fileSystem.GetFileNameWithoutExtension(i))
|
.Select(i => _fileSystem.GetFileNameWithoutExtension(i))
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
|
@ -94,7 +94,6 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
|
||||||
_localization.GetLocalizedString("NameSeasonNumber"),
|
_localization.GetLocalizedString("NameSeasonNumber"),
|
||||||
seasonNumber,
|
seasonNumber,
|
||||||
args.GetLibraryOptions().PreferredMetadataLanguage);
|
args.GetLibraryOptions().PreferredMetadataLanguage);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return season;
|
return season;
|
||||||
|
|
|
@ -207,7 +207,6 @@ namespace Emby.Server.Implementations.Library
|
||||||
return mediaItems.Select(i => new SearchHintInfo
|
return mediaItems.Select(i => new SearchHintInfo
|
||||||
{
|
{
|
||||||
Item = i
|
Item = i
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,6 @@ namespace Emby.Server.Implementations.Library.Validators
|
||||||
_libraryManager.DeleteItem(item, new DeleteOptions
|
_libraryManager.DeleteItem(item, new DeleteOptions
|
||||||
{
|
{
|
||||||
DeleteFileLocation = false
|
DeleteFileLocation = false
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,6 @@ namespace Emby.Server.Implementations.Library.Validators
|
||||||
_libraryManager.DeleteItem(item, new DeleteOptions
|
_libraryManager.DeleteItem(item, new DeleteOptions
|
||||||
{
|
{
|
||||||
DeleteFileLocation = false
|
DeleteFileLocation = false
|
||||||
|
|
||||||
}, false);
|
}, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1547,7 +1547,6 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||||
IsFolder = false,
|
IsFolder = false,
|
||||||
Recursive = true,
|
Recursive = true,
|
||||||
DtoOptions = new DtoOptions(true)
|
DtoOptions = new DtoOptions(true)
|
||||||
|
|
||||||
})
|
})
|
||||||
.Where(i => i.IsFileProtocol && File.Exists(i.Path))
|
.Where(i => i.IsFileProtocol && File.Exists(i.Path))
|
||||||
.Skip(seriesTimer.KeepUpTo - 1)
|
.Skip(seriesTimer.KeepUpTo - 1)
|
||||||
|
|
|
@ -1218,7 +1218,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||||
public string programID { get; set; }
|
public string programID { get; set; }
|
||||||
public List<ImageData> data { get; set; }
|
public List<ImageData> data { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1168,7 +1168,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
IncludeItemTypes = new string[] { typeof(LiveTvProgram).Name },
|
IncludeItemTypes = new string[] { typeof(LiveTvProgram).Name },
|
||||||
ChannelIds = new Guid[] { currentChannel.Id },
|
ChannelIds = new Guid[] { currentChannel.Id },
|
||||||
DtoOptions = new DtoOptions(true)
|
DtoOptions = new DtoOptions(true)
|
||||||
|
|
||||||
}).Cast<LiveTvProgram>().ToDictionary(i => i.Id);
|
}).Cast<LiveTvProgram>().ToDictionary(i => i.Id);
|
||||||
|
|
||||||
var newPrograms = new List<LiveTvProgram>();
|
var newPrograms = new List<LiveTvProgram>();
|
||||||
|
@ -1738,7 +1737,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
var results = await GetTimers(new TimerQuery
|
var results = await GetTimers(new TimerQuery
|
||||||
{
|
{
|
||||||
Id = id
|
Id = id
|
||||||
|
|
||||||
}, cancellationToken).ConfigureAwait(false);
|
}, cancellationToken).ConfigureAwait(false);
|
||||||
|
|
||||||
return results.Items.FirstOrDefault(i => string.Equals(i.Id, id, StringComparison.OrdinalIgnoreCase));
|
return results.Items.FirstOrDefault(i => string.Equals(i.Id, id, StringComparison.OrdinalIgnoreCase));
|
||||||
|
@ -1790,7 +1788,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
.Select(i =>
|
.Select(i =>
|
||||||
{
|
{
|
||||||
return i.Item1;
|
return i.Item1;
|
||||||
|
|
||||||
})
|
})
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
|
@ -1845,7 +1842,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
}
|
}
|
||||||
|
|
||||||
return _tvDtoService.GetSeriesTimerInfoDto(i.Item1, i.Item2, channelName);
|
return _tvDtoService.GetSeriesTimerInfoDto(i.Item1, i.Item2, channelName);
|
||||||
|
|
||||||
})
|
})
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
|
@ -1878,7 +1874,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
OrderBy = new[] { (ItemSortBy.StartDate, SortOrder.Ascending) },
|
OrderBy = new[] { (ItemSortBy.StartDate, SortOrder.Ascending) },
|
||||||
TopParentIds = new[] { GetInternalLiveTvFolder(CancellationToken.None).Id },
|
TopParentIds = new[] { GetInternalLiveTvFolder(CancellationToken.None).Id },
|
||||||
DtoOptions = options
|
DtoOptions = options
|
||||||
|
|
||||||
}) : new List<BaseItem>();
|
}) : new List<BaseItem>();
|
||||||
|
|
||||||
RemoveFields(options);
|
RemoveFields(options);
|
||||||
|
@ -2456,7 +2451,6 @@ namespace Emby.Server.Implementations.LiveTv
|
||||||
UserId = user.Id,
|
UserId = user.Id,
|
||||||
IsRecordingsFolder = true,
|
IsRecordingsFolder = true,
|
||||||
RefreshLatestChannelItems = refreshChannels
|
RefreshLatestChannelItems = refreshChannels
|
||||||
|
|
||||||
}).Items);
|
}).Items);
|
||||||
|
|
||||||
return folders.Cast<BaseItem>().ToList();
|
return folders.Cast<BaseItem>().ToList();
|
||||||
|
|
|
@ -99,7 +99,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
}
|
}
|
||||||
catch (IOException)
|
catch (IOException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -116,7 +115,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
}
|
}
|
||||||
catch (IOException)
|
catch (IOException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
||||||
ChannelType = ChannelType.TV,
|
ChannelType = ChannelType.TV,
|
||||||
IsLegacyTuner = (i.URL ?? string.Empty).StartsWith("hdhomerun", StringComparison.OrdinalIgnoreCase),
|
IsLegacyTuner = (i.URL ?? string.Empty).StartsWith("hdhomerun", StringComparison.OrdinalIgnoreCase),
|
||||||
Path = i.URL
|
Path = i.URL
|
||||||
|
|
||||||
}).Cast<ChannelInfo>().ToList();
|
}).Cast<ChannelInfo>().ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,7 +480,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
||||||
Height = height,
|
Height = height,
|
||||||
BitRate = videoBitrate,
|
BitRate = videoBitrate,
|
||||||
NalLengthSize = nal
|
NalLengthSize = nal
|
||||||
|
|
||||||
},
|
},
|
||||||
new MediaStream
|
new MediaStream
|
||||||
{
|
{
|
||||||
|
@ -722,7 +720,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (OperationCanceledException)
|
catch (OperationCanceledException)
|
||||||
{
|
{
|
||||||
|
|
|
@ -220,11 +220,9 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
}
|
}
|
||||||
catch (IOException)
|
catch (IOException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (ArgumentException)
|
catch (ArgumentException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -127,7 +127,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
{
|
{
|
||||||
using (var stream = await new M3uParser(Logger, _httpClient, _appHost).GetListingsStream(info.Url, CancellationToken.None).ConfigureAwait(false))
|
using (var stream = await new M3uParser(Logger, _httpClient, _appHost).GetListingsStream(info.Url, CancellationToken.None).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,6 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsValidChannelNumber(numberString))
|
if (!IsValidChannelNumber(numberString))
|
||||||
|
|
|
@ -98,7 +98,6 @@ namespace Emby.Server.Implementations.Net
|
||||||
}
|
}
|
||||||
catch (SocketException)
|
catch (SocketException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -109,7 +108,6 @@ namespace Emby.Server.Implementations.Net
|
||||||
}
|
}
|
||||||
catch (SocketException)
|
catch (SocketException)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
|
@ -61,7 +61,6 @@ namespace Emby.Server.Implementations.Security
|
||||||
AddColumn(db, "AccessTokens", "UserName", "TEXT", existingColumnNames);
|
AddColumn(db, "AccessTokens", "UserName", "TEXT", existingColumnNames);
|
||||||
AddColumn(db, "AccessTokens", "DateLastActivity", "DATETIME", existingColumnNames);
|
AddColumn(db, "AccessTokens", "DateLastActivity", "DATETIME", existingColumnNames);
|
||||||
AddColumn(db, "AccessTokens", "AppVersion", "TEXT", existingColumnNames);
|
AddColumn(db, "AccessTokens", "AppVersion", "TEXT", existingColumnNames);
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
|
|
||||||
connection.RunQueries(new[]
|
connection.RunQueries(new[]
|
||||||
|
@ -107,7 +106,6 @@ namespace Emby.Server.Implementations.Security
|
||||||
|
|
||||||
statement.MoveNext();
|
statement.MoveNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -367,7 +365,6 @@ namespace Emby.Server.Implementations.Security
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}, ReadTransactionMode);
|
}, ReadTransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -398,7 +395,6 @@ namespace Emby.Server.Implementations.Security
|
||||||
|
|
||||||
statement.MoveNext();
|
statement.MoveNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, TransactionMode);
|
}, TransactionMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,7 +225,6 @@ namespace Emby.Server.Implementations.TV
|
||||||
ParentIndexNumberNotEquals = 0,
|
ParentIndexNumberNotEquals = 0,
|
||||||
MinSortName = lastWatchedEpisode?.SortName,
|
MinSortName = lastWatchedEpisode?.SortName,
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).Cast<Episode>().FirstOrDefault();
|
}).Cast<Episode>().FirstOrDefault();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Release_Releases_Id")]
|
[ForeignKey("Release_Releases_Id")]
|
||||||
public virtual ICollection<Release> Releases { get; protected set; }
|
public virtual ICollection<Release> Releases { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Company_Publishers_Id")]
|
[ForeignKey("Company_Publishers_Id")]
|
||||||
public virtual ICollection<Company> Publishers { get; protected set; }
|
public virtual ICollection<Company> Publishers { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -257,7 +257,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,6 @@ namespace Jellyfin.Data.Entities
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
[ForeignKey("CollectionItem_CollectionItem_Id")]
|
[ForeignKey("CollectionItem_CollectionItem_Id")]
|
||||||
public virtual ICollection<CollectionItem> CollectionItem { get; protected set; }
|
public virtual ICollection<CollectionItem> CollectionItem { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
[ForeignKey("CollectionItem_Previous_Id")]
|
[ForeignKey("CollectionItem_Previous_Id")]
|
||||||
public virtual CollectionItem Previous { get; set; }
|
public virtual CollectionItem Previous { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,6 @@ namespace Jellyfin.Data.Entities
|
||||||
public virtual ICollection<CompanyMetadata> CompanyMetadata { get; protected set; }
|
public virtual ICollection<CompanyMetadata> CompanyMetadata { get; protected set; }
|
||||||
[ForeignKey("Company_Parent_Id")]
|
[ForeignKey("Company_Parent_Id")]
|
||||||
public virtual Company Parent { get; set; }
|
public virtual Company Parent { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Release_Releases_Id")]
|
[ForeignKey("Release_Releases_Id")]
|
||||||
public virtual ICollection<Release> Releases { get; protected set; }
|
public virtual ICollection<Release> Releases { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,6 @@ namespace Jellyfin.Data.Entities
|
||||||
public virtual ICollection<Release> Releases { get; protected set; }
|
public virtual ICollection<Release> Releases { get; protected set; }
|
||||||
[ForeignKey("EpisodeMetadata_EpisodeMetadata_Id")]
|
[ForeignKey("EpisodeMetadata_EpisodeMetadata_Id")]
|
||||||
public virtual ICollection<EpisodeMetadata> EpisodeMetadata { get; protected set; }
|
public virtual ICollection<EpisodeMetadata> EpisodeMetadata { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("LibraryRoot_Id")]
|
[ForeignKey("LibraryRoot_Id")]
|
||||||
public virtual LibraryRoot LibraryRoot { get; set; }
|
public virtual LibraryRoot LibraryRoot { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("Library_Id")]
|
[ForeignKey("Library_Id")]
|
||||||
public virtual Library Library { get; set; }
|
public virtual Library Library { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("MediaFileStream_MediaFileStreams_Id")]
|
[ForeignKey("MediaFileStream_MediaFileStreams_Id")]
|
||||||
public virtual ICollection<MediaFileStream> MediaFileStreams { get; protected set; }
|
public virtual ICollection<MediaFileStream> MediaFileStreams { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -374,7 +374,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("PersonRole_PersonRoles_Id")]
|
[ForeignKey("PersonRole_PersonRoles_Id")]
|
||||||
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("MetadataProvider_Id")]
|
[ForeignKey("MetadataProvider_Id")]
|
||||||
public virtual MetadataProvider MetadataProvider { get; set; }
|
public virtual MetadataProvider MetadataProvider { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("MovieMetadata_MovieMetadata_Id")]
|
[ForeignKey("MovieMetadata_MovieMetadata_Id")]
|
||||||
public virtual ICollection<MovieMetadata> MovieMetadata { get; protected set; }
|
public virtual ICollection<MovieMetadata> MovieMetadata { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,6 @@ namespace Jellyfin.Data.Entities
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
[ForeignKey("Company_Studios_Id")]
|
[ForeignKey("Company_Studios_Id")]
|
||||||
public virtual ICollection<Company> Studios { get; protected set; }
|
public virtual ICollection<Company> Studios { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Track_Tracks_Id")]
|
[ForeignKey("Track_Tracks_Id")]
|
||||||
public virtual ICollection<Track> Tracks { get; protected set; }
|
public virtual ICollection<Track> Tracks { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Company_Labels_Id")]
|
[ForeignKey("Company_Labels_Id")]
|
||||||
public virtual ICollection<Company> Labels { get; protected set; }
|
public virtual ICollection<Company> Labels { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,6 @@ namespace Jellyfin.Data.Entities
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
[ForeignKey("MetadataProviderId_Sources_Id")]
|
[ForeignKey("MetadataProviderId_Sources_Id")]
|
||||||
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("MetadataProviderId_Sources_Id")]
|
[ForeignKey("MetadataProviderId_Sources_Id")]
|
||||||
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
public virtual ICollection<MetadataProviderId> Sources { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Release_Releases_Id")]
|
[ForeignKey("Release_Releases_Id")]
|
||||||
public virtual ICollection<Release> Releases { get; protected set; }
|
public virtual ICollection<Release> Releases { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ForeignKey("RatingSource_RatingType_Id")]
|
[ForeignKey("RatingSource_RatingType_Id")]
|
||||||
public virtual RatingSource RatingType { get; set; }
|
public virtual RatingSource RatingType { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,6 @@ namespace Jellyfin.Data.Entities
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
[ForeignKey("MetadataProviderId_Source_Id")]
|
[ForeignKey("MetadataProviderId_Source_Id")]
|
||||||
public virtual MetadataProviderId Source { get; set; }
|
public virtual MetadataProviderId Source { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,7 +182,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Chapter_Chapters_Id")]
|
[ForeignKey("Chapter_Chapters_Id")]
|
||||||
public virtual ICollection<Chapter> Chapters { get; protected set; }
|
public virtual ICollection<Chapter> Chapters { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Episode_Episodes_Id")]
|
[ForeignKey("Episode_Episodes_Id")]
|
||||||
public virtual ICollection<Episode> Episodes { get; protected set; }
|
public virtual ICollection<Episode> Episodes { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,7 +153,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("Season_Seasons_Id")]
|
[ForeignKey("Season_Seasons_Id")]
|
||||||
public virtual ICollection<Season> Seasons { get; protected set; }
|
public virtual ICollection<Season> Seasons { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,6 @@ namespace Jellyfin.Data.Entities
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
[ForeignKey("Company_Networks_Id")]
|
[ForeignKey("Company_Networks_Id")]
|
||||||
public virtual ICollection<Company> Networks { get; protected set; }
|
public virtual ICollection<Company> Networks { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,6 @@ namespace Jellyfin.Data.Entities
|
||||||
|
|
||||||
[ForeignKey("TrackMetadata_TrackMetadata_Id")]
|
[ForeignKey("TrackMetadata_TrackMetadata_Id")]
|
||||||
public virtual ICollection<TrackMetadata> TrackMetadata { get; protected set; }
|
public virtual ICollection<TrackMetadata> TrackMetadata { get; protected set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ namespace Jellyfin.Data.Entities
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Navigation properties
|
* Navigation properties
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,6 @@ namespace MediaBrowser.Api
|
||||||
Name = name.Replace(BaseItem.SlugChar, '&'),
|
Name = name.Replace(BaseItem.SlugChar, '&'),
|
||||||
IncludeItemTypes = new[] { typeof(T).Name },
|
IncludeItemTypes = new[] { typeof(T).Name },
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).OfType<T>().FirstOrDefault();
|
}).OfType<T>().FirstOrDefault();
|
||||||
|
|
||||||
result ??= libraryManager.GetItemList(new InternalItemsQuery
|
result ??= libraryManager.GetItemList(new InternalItemsQuery
|
||||||
|
@ -276,7 +275,6 @@ namespace MediaBrowser.Api
|
||||||
Name = name.Replace(BaseItem.SlugChar, '/'),
|
Name = name.Replace(BaseItem.SlugChar, '/'),
|
||||||
IncludeItemTypes = new[] { typeof(T).Name },
|
IncludeItemTypes = new[] { typeof(T).Name },
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).OfType<T>().FirstOrDefault();
|
}).OfType<T>().FirstOrDefault();
|
||||||
|
|
||||||
result ??= libraryManager.GetItemList(new InternalItemsQuery
|
result ??= libraryManager.GetItemList(new InternalItemsQuery
|
||||||
|
@ -284,7 +282,6 @@ namespace MediaBrowser.Api
|
||||||
Name = name.Replace(BaseItem.SlugChar, '?'),
|
Name = name.Replace(BaseItem.SlugChar, '?'),
|
||||||
IncludeItemTypes = new[] { typeof(T).Name },
|
IncludeItemTypes = new[] { typeof(T).Name },
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).OfType<T>().FirstOrDefault();
|
}).OfType<T>().FirstOrDefault();
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -240,7 +240,6 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
Fields = request.GetItemFields()
|
Fields = request.GetItemFields()
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
foreach (var filter in request.GetFilters())
|
foreach (var filter in request.GetFilters())
|
||||||
|
|
|
@ -17,7 +17,6 @@ namespace MediaBrowser.Api
|
||||||
[Authenticated]
|
[Authenticated]
|
||||||
public class GetConfiguration : IReturn<ServerConfiguration>
|
public class GetConfiguration : IReturn<ServerConfiguration>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/System/Configuration/{Key}", "GET", Summary = "Gets a named configuration")]
|
[Route("/System/Configuration/{Key}", "GET", Summary = "Gets a named configuration")]
|
||||||
|
@ -51,7 +50,6 @@ namespace MediaBrowser.Api
|
||||||
[Authenticated(Roles = "Admin")]
|
[Authenticated(Roles = "Admin")]
|
||||||
public class GetDefaultMetadataOptions : IReturn<MetadataOptions>
|
public class GetDefaultMetadataOptions : IReturn<MetadataOptions>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/System/MediaEncoder/Path", "POST", Summary = "Updates the path to the media encoder")]
|
[Route("/System/MediaEncoder/Path", "POST", Summary = "Updates the path to the media encoder")]
|
||||||
|
|
|
@ -92,7 +92,6 @@ namespace MediaBrowser.Api.Devices
|
||||||
var sessions = _authRepo.Get(new AuthenticationInfoQuery
|
var sessions = _authRepo.Get(new AuthenticationInfoQuery
|
||||||
{
|
{
|
||||||
DeviceId = request.Id
|
DeviceId = request.Id
|
||||||
|
|
||||||
}).Items;
|
}).Items;
|
||||||
|
|
||||||
foreach (var session in sessions)
|
foreach (var session in sessions)
|
||||||
|
|
|
@ -100,7 +100,6 @@ namespace MediaBrowser.Api
|
||||||
[Route("/Environment/DefaultDirectoryBrowser", "GET", Summary = "Gets the parent path of a given path")]
|
[Route("/Environment/DefaultDirectoryBrowser", "GET", Summary = "Gets the parent path of a given path")]
|
||||||
public class GetDefaultDirectoryBrowser : IReturn<DefaultDirectoryBrowserInfo>
|
public class GetDefaultDirectoryBrowser : IReturn<DefaultDirectoryBrowserInfo>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -150,7 +150,6 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
Name = i.Item1.Name,
|
Name = i.Item1.Name,
|
||||||
Id = i.Item1.Id
|
Id = i.Item1.Id
|
||||||
|
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -159,7 +158,6 @@ namespace MediaBrowser.Api
|
||||||
{
|
{
|
||||||
Name = i.Item1.Name,
|
Name = i.Item1.Name,
|
||||||
Id = i.Item1.Id
|
Id = i.Item1.Id
|
||||||
|
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,6 @@ namespace MediaBrowser.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}).Where(i => i.HasValue).Select(i => i.Value).ToArray();
|
}).Where(i => i.HasValue).Select(i => i.Value).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -743,7 +743,6 @@ namespace MediaBrowser.Api.Images
|
||||||
Path = imageResult.Item1,
|
Path = imageResult.Item1,
|
||||||
|
|
||||||
FileShare = FileShare.Read
|
FileShare = FileShare.Read
|
||||||
|
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,6 @@ namespace MediaBrowser.Api.Images
|
||||||
IncludeAllLanguages = request.IncludeAllLanguages,
|
IncludeAllLanguages = request.IncludeAllLanguages,
|
||||||
IncludeDisabledProviders = true,
|
IncludeDisabledProviders = true,
|
||||||
ImageType = request.Type
|
ImageType = request.Type
|
||||||
|
|
||||||
}, CancellationToken.None).ConfigureAwait(false);
|
}, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
var imagesList = images.ToArray();
|
var imagesList = images.ToArray();
|
||||||
|
|
|
@ -562,7 +562,6 @@ namespace MediaBrowser.Api.Library
|
||||||
_authContext)
|
_authContext)
|
||||||
{
|
{
|
||||||
Request = Request,
|
Request = Request,
|
||||||
|
|
||||||
}.GetSimilarItemsResult(request);
|
}.GetSimilarItemsResult(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -660,7 +659,6 @@ namespace MediaBrowser.Api.Library
|
||||||
{
|
{
|
||||||
EnableImages = false
|
EnableImages = false
|
||||||
}
|
}
|
||||||
|
|
||||||
}).Where(i => string.Equals(request.TvdbId, i.GetProviderId(MetadataProvider.Tvdb), StringComparison.OrdinalIgnoreCase)).ToArray();
|
}).Where(i => string.Equals(request.TvdbId, i.GetProviderId(MetadataProvider.Tvdb), StringComparison.OrdinalIgnoreCase)).ToArray();
|
||||||
|
|
||||||
foreach (var item in series)
|
foreach (var item in series)
|
||||||
|
@ -689,7 +687,6 @@ namespace MediaBrowser.Api.Library
|
||||||
{
|
{
|
||||||
EnableImages = false
|
EnableImages = false
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(request.ImdbId))
|
if (!string.IsNullOrWhiteSpace(request.ImdbId))
|
||||||
|
|
|
@ -679,7 +679,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
[Authenticated]
|
[Authenticated]
|
||||||
public class GetTunerHostTypes : IReturn<List<NameIdPair>>
|
public class GetTunerHostTypes : IReturn<List<NameIdPair>>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/LiveTv/Tuners/Discvover", "GET")]
|
[Route("/LiveTv/Tuners/Discvover", "GET")]
|
||||||
|
@ -826,7 +825,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
{
|
{
|
||||||
Name = i.Name,
|
Name = i.Name,
|
||||||
Id = i.Id
|
Id = i.Id
|
||||||
|
|
||||||
}).ToList(),
|
}).ToList(),
|
||||||
|
|
||||||
Mappings = mappings,
|
Mappings = mappings,
|
||||||
|
@ -845,7 +843,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
{
|
{
|
||||||
Url = "https://json.schedulesdirect.org/20141201/available/countries",
|
Url = "https://json.schedulesdirect.org/20141201/available/countries",
|
||||||
BufferContent = false
|
BufferContent = false
|
||||||
|
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
|
||||||
return ResultFactory.GetResult(Request, response, "application/json");
|
return ResultFactory.GetResult(Request, response, "application/json");
|
||||||
|
@ -958,7 +955,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
SortBy = request.GetOrderBy(),
|
SortBy = request.GetOrderBy(),
|
||||||
SortOrder = request.SortOrder ?? SortOrder.Ascending,
|
SortOrder = request.SortOrder ?? SortOrder.Ascending,
|
||||||
AddCurrentProgram = request.AddCurrentProgram
|
AddCurrentProgram = request.AddCurrentProgram
|
||||||
|
|
||||||
}, options, CancellationToken.None);
|
}, options, CancellationToken.None);
|
||||||
|
|
||||||
var user = request.UserId.Equals(Guid.Empty) ? null : _userManager.GetUserById(request.UserId);
|
var user = request.UserId.Equals(Guid.Empty) ? null : _userManager.GetUserById(request.UserId);
|
||||||
|
@ -1113,7 +1109,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
Fields = request.GetItemFields(),
|
Fields = request.GetItemFields(),
|
||||||
ImageTypeLimit = request.ImageTypeLimit,
|
ImageTypeLimit = request.ImageTypeLimit,
|
||||||
EnableImages = request.EnableImages
|
EnableImages = request.EnableImages
|
||||||
|
|
||||||
}, options);
|
}, options);
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
|
@ -1152,7 +1147,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
SeriesTimerId = request.SeriesTimerId,
|
SeriesTimerId = request.SeriesTimerId,
|
||||||
IsActive = request.IsActive,
|
IsActive = request.IsActive,
|
||||||
IsScheduled = request.IsScheduled
|
IsScheduled = request.IsScheduled
|
||||||
|
|
||||||
}, CancellationToken.None).ConfigureAwait(false);
|
}, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
|
@ -1188,7 +1182,6 @@ namespace MediaBrowser.Api.LiveTv
|
||||||
{
|
{
|
||||||
SortOrder = request.SortOrder,
|
SortOrder = request.SortOrder,
|
||||||
SortBy = request.SortBy
|
SortBy = request.SortBy
|
||||||
|
|
||||||
}, CancellationToken.None).ConfigureAwait(false);
|
}, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
|
|
|
@ -79,7 +79,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
ParentId = parentId,
|
ParentId = parentId,
|
||||||
ItemIdList = SplitValue(request.Ids, ','),
|
ItemIdList = SplitValue(request.Ids, ','),
|
||||||
UserIds = new[] { userId }
|
UserIds = new[] { userId }
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var dtoOptions = GetDtoOptions(_authContext, request);
|
var dtoOptions = GetDtoOptions(_authContext, request);
|
||||||
|
|
|
@ -194,7 +194,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
ParentId = parentIdGuid,
|
ParentId = parentIdGuid,
|
||||||
Recursive = true,
|
Recursive = true,
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var mostRecentMovies = recentlyPlayedMovies.Take(6).ToList();
|
var mostRecentMovies = recentlyPlayedMovies.Take(6).ToList();
|
||||||
|
@ -279,7 +278,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
IsMovie = true,
|
IsMovie = true,
|
||||||
EnableGroupByMetadataKey = true,
|
EnableGroupByMetadataKey = true,
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).GroupBy(i => i.GetProviderId(MetadataProvider.Imdb) ?? Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture))
|
}).GroupBy(i => i.GetProviderId(MetadataProvider.Imdb) ?? Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture))
|
||||||
.Select(x => x.First())
|
.Select(x => x.First())
|
||||||
.Take(itemLimit)
|
.Take(itemLimit)
|
||||||
|
@ -320,7 +318,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
IsMovie = true,
|
IsMovie = true,
|
||||||
EnableGroupByMetadataKey = true,
|
EnableGroupByMetadataKey = true,
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
}).GroupBy(i => i.GetProviderId(MetadataProvider.Imdb) ?? Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture))
|
}).GroupBy(i => i.GetProviderId(MetadataProvider.Imdb) ?? Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture))
|
||||||
.Select(x => x.First())
|
.Select(x => x.First())
|
||||||
.Take(itemLimit)
|
.Take(itemLimit)
|
||||||
|
@ -360,7 +357,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
SimilarTo = item,
|
SimilarTo = item,
|
||||||
EnableGroupByMetadataKey = true,
|
EnableGroupByMetadataKey = true,
|
||||||
DtoOptions = dtoOptions
|
DtoOptions = dtoOptions
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (similar.Count > 0)
|
if (similar.Count > 0)
|
||||||
|
|
|
@ -82,7 +82,6 @@ namespace MediaBrowser.Api.Movies
|
||||||
_authContext)
|
_authContext)
|
||||||
{
|
{
|
||||||
Request = Request,
|
Request = Request,
|
||||||
|
|
||||||
}.Get(getItems);
|
}.Get(getItems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,6 +192,5 @@ namespace MediaBrowser.Api.Music
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -646,7 +646,6 @@ namespace MediaBrowser.Api.Playback
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}).ThenBy(i =>
|
}).ThenBy(i =>
|
||||||
{
|
{
|
||||||
// Let's assume direct streaming a file is just as desirable as direct playing a remote url
|
// Let's assume direct streaming a file is just as desirable as direct playing a remote url
|
||||||
|
@ -656,7 +655,6 @@ namespace MediaBrowser.Api.Playback
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}).ThenBy(i =>
|
}).ThenBy(i =>
|
||||||
{
|
{
|
||||||
return i.Protocol switch
|
return i.Protocol switch
|
||||||
|
@ -672,7 +670,6 @@ namespace MediaBrowser.Api.Playback
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
}).ThenBy(originalList.IndexOf)
|
}).ThenBy(originalList.IndexOf)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,6 @@ namespace MediaBrowser.Api.Playback.Progressive
|
||||||
[Route("/Videos/{Id}/stream", "HEAD")]
|
[Route("/Videos/{Id}/stream", "HEAD")]
|
||||||
public class GetVideoStream : VideoStreamRequest
|
public class GetVideoStream : VideoStreamRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -259,7 +259,6 @@ namespace MediaBrowser.Api.Playback
|
||||||
UserId = request.UserId,
|
UserId = request.UserId,
|
||||||
DeviceProfile = deviceProfile,
|
DeviceProfile = deviceProfile,
|
||||||
MediaSourceId = request.MediaSourceId
|
MediaSourceId = request.MediaSourceId
|
||||||
|
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
|
||||||
var mediaSource = playbackInfoResult.MediaSources[0];
|
var mediaSource = playbackInfoResult.MediaSources[0];
|
||||||
|
|
|
@ -161,7 +161,6 @@ namespace MediaBrowser.Api
|
||||||
ItemIdList = GetGuids(request.Ids),
|
ItemIdList = GetGuids(request.Ids),
|
||||||
UserId = request.UserId,
|
UserId = request.UserId,
|
||||||
MediaType = request.MediaType
|
MediaType = request.MediaType
|
||||||
|
|
||||||
}).ConfigureAwait(false);
|
}).ConfigureAwait(false);
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
|
|
|
@ -180,7 +180,6 @@ namespace MediaBrowser.Api
|
||||||
IsNews = request.IsNews,
|
IsNews = request.IsNews,
|
||||||
IsSeries = request.IsSeries,
|
IsSeries = request.IsSeries,
|
||||||
IsSports = request.IsSports
|
IsSports = request.IsSports
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return new SearchHintResult
|
return new SearchHintResult
|
||||||
|
|
|
@ -218,6 +218,5 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,20 +24,17 @@ namespace MediaBrowser.Api.System
|
||||||
[Authenticated(EscapeParentalControl = true, AllowBeforeStartupWizard = true)]
|
[Authenticated(EscapeParentalControl = true, AllowBeforeStartupWizard = true)]
|
||||||
public class GetSystemInfo : IReturn<SystemInfo>
|
public class GetSystemInfo : IReturn<SystemInfo>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/System/Info/Public", "GET", Summary = "Gets public information about the server")]
|
[Route("/System/Info/Public", "GET", Summary = "Gets public information about the server")]
|
||||||
public class GetPublicSystemInfo : IReturn<PublicSystemInfo>
|
public class GetPublicSystemInfo : IReturn<PublicSystemInfo>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/System/Ping", "POST")]
|
[Route("/System/Ping", "POST")]
|
||||||
[Route("/System/Ping", "GET")]
|
[Route("/System/Ping", "GET")]
|
||||||
public class PingSystem : IReturnVoid
|
public class PingSystem : IReturnVoid
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -83,7 +80,6 @@ namespace MediaBrowser.Api.System
|
||||||
[Authenticated]
|
[Authenticated]
|
||||||
public class GetWakeOnLanInfo : IReturn<WakeOnLanInfo[]>
|
public class GetWakeOnLanInfo : IReturn<WakeOnLanInfo[]>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -153,7 +149,6 @@ namespace MediaBrowser.Api.System
|
||||||
DateModified = _fileSystem.GetLastWriteTimeUtc(i),
|
DateModified = _fileSystem.GetLastWriteTimeUtc(i),
|
||||||
Name = i.Name,
|
Name = i.Name,
|
||||||
Size = i.Length
|
Size = i.Length
|
||||||
|
|
||||||
}).OrderByDescending(i => i.DateModified)
|
}).OrderByDescending(i => i.DateModified)
|
||||||
.ThenByDescending(i => i.DateCreated)
|
.ThenByDescending(i => i.DateCreated)
|
||||||
.ThenBy(i => i.Name)
|
.ThenBy(i => i.Name)
|
||||||
|
|
|
@ -306,7 +306,6 @@ namespace MediaBrowser.Api
|
||||||
ParentId = parentIdGuid,
|
ParentId = parentIdGuid,
|
||||||
Recursive = true,
|
Recursive = true,
|
||||||
DtoOptions = options
|
DtoOptions = options
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var returnItems = _dtoService.GetBaseItemDtos(itemsResult, options, user);
|
var returnItems = _dtoService.GetBaseItemDtos(itemsResult, options, user);
|
||||||
|
@ -390,7 +389,6 @@ namespace MediaBrowser.Api
|
||||||
IsMissing = request.IsMissing,
|
IsMissing = request.IsMissing,
|
||||||
IsSpecialSeason = request.IsSpecialSeason,
|
IsSpecialSeason = request.IsSpecialSeason,
|
||||||
AdjacentTo = request.AdjacentTo
|
AdjacentTo = request.AdjacentTo
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var dtoOptions = GetDtoOptions(_authContext, request);
|
var dtoOptions = GetDtoOptions(_authContext, request);
|
||||||
|
|
|
@ -322,7 +322,6 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
{
|
{
|
||||||
ibnItems = ibnItems.Take(request.Limit.Value);
|
ibnItems = ibnItems.Take(request.Limit.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var tuples = ibnItems.Select(i => new Tuple<BaseItem, List<BaseItem>>(i, new List<BaseItem>()));
|
var tuples = ibnItems.Select(i => new Tuple<BaseItem, List<BaseItem>>(i, new List<BaseItem>()));
|
||||||
|
|
|
@ -129,7 +129,6 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
{
|
{
|
||||||
Name = i.Name,
|
Name = i.Name,
|
||||||
Id = i.Id.ToString("N", CultureInfo.InvariantCulture)
|
Id = i.Id.ToString("N", CultureInfo.InvariantCulture)
|
||||||
|
|
||||||
})
|
})
|
||||||
.OrderBy(i => i.Name)
|
.OrderBy(i => i.Name)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
|
@ -35,12 +35,10 @@ namespace MediaBrowser.Controller.Channels
|
||||||
|
|
||||||
public interface IDisableMediaSourceDisplay
|
public interface IDisableMediaSourceDisplay
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface ISupportsMediaProbe
|
public interface ISupportsMediaProbe
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IHasFolderAttributes
|
public interface IHasFolderAttributes
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue