mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 22:08:27 +01:00
improve scan progress and fix a few bugs
This commit is contained in:
@@ -126,12 +126,6 @@ namespace MediaBrowser.Controller.Session
|
||||
[JsonIgnore]
|
||||
public ISessionController[] SessionControllers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the application icon URL.
|
||||
/// </summary>
|
||||
/// <value>The application icon URL.</value>
|
||||
public string AppIconUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the supported commands.
|
||||
/// </summary>
|
||||
@@ -259,7 +253,7 @@ namespace MediaBrowser.Controller.Session
|
||||
|
||||
foreach (var additionalUser in AdditionalUsers)
|
||||
{
|
||||
if (userId.Equals(userId))
|
||||
if (additionalUser.UserId.Equals(userId))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -321,7 +315,7 @@ namespace MediaBrowser.Controller.Session
|
||||
|
||||
var newPositionTicks = positionTicks + ProgressIncrement;
|
||||
var item = progressInfo.Item;
|
||||
long? runtimeTicks = item == null ? null : item.RunTimeTicks;
|
||||
long? runtimeTicks = item?.RunTimeTicks;
|
||||
|
||||
// Don't report beyond the runtime
|
||||
if (runtimeTicks.HasValue && newPositionTicks >= runtimeTicks.Value)
|
||||
|
||||
Reference in New Issue
Block a user