mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
fix windows restart
This commit is contained in:
@@ -1165,7 +1165,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
/// <returns>IEnumerable{VirtualFolderInfo}.</returns>
|
||||
private IEnumerable<VirtualFolderInfo> GetView(string path)
|
||||
{
|
||||
return _fileSystem.GetFileSystemEntryPaths(path)
|
||||
return _fileSystem.GetDirectoryPaths(path)
|
||||
.Select(dir => new VirtualFolderInfo
|
||||
{
|
||||
Name = Path.GetFileName(dir),
|
||||
|
||||
@@ -67,10 +67,14 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
||||
}
|
||||
}
|
||||
|
||||
else if (info.ProductionYear != null)
|
||||
else if (info.IsMovie && info.ProductionYear != null)
|
||||
{
|
||||
name += " (" + info.ProductionYear + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
name += " " + info.StartDate.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -1322,8 +1322,9 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
if (existing.Items.Length > 0)
|
||||
{
|
||||
_logger.Debug("Reissuing access token");
|
||||
return existing.Items[0].AccessToken;
|
||||
var token = existing.Items[0].AccessToken;
|
||||
_logger.Debug("Reissuing access token: " + token);
|
||||
return token;
|
||||
}
|
||||
|
||||
var newToken = new AuthenticationInfo
|
||||
|
||||
Reference in New Issue
Block a user