Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/ac802322de703be589ba5ce4598c4f223606045d?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

check location type before starting directory watchers

pull/702/head
Luke Pulverenti 12 years ago
parent 4a29bb012b
commit ac802322de

@ -3,6 +3,7 @@ using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.IO; using MediaBrowser.Controller.IO;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging; using MediaBrowser.Model.Logging;
using MediaBrowser.Server.Implementations.ScheduledTasks; using MediaBrowser.Server.Implementations.ScheduledTasks;
using System; using System;
@ -111,7 +112,11 @@ namespace MediaBrowser.Server.Implementations.IO
var pathsToWatch = new List<string> { LibraryManager.RootFolder.Path }; var pathsToWatch = new List<string> { LibraryManager.RootFolder.Path };
var paths = LibraryManager.RootFolder.Children.OfType<Folder>() var paths = LibraryManager
.RootFolder
.Children
.OfType<Folder>()
.Where(i => i.LocationType != LocationType.Remote && i.LocationType != LocationType.Virtual)
.SelectMany(f => .SelectMany(f =>
{ {
try try
@ -125,7 +130,10 @@ namespace MediaBrowser.Server.Implementations.IO
} }
}) })
.Where(Path.IsPathRooted); .Where(Path.IsPathRooted)
.Distinct(StringComparer.OrdinalIgnoreCase)
.OrderBy(i => i)
.ToList();
foreach (var path in paths) foreach (var path in paths)
{ {

Loading…
Cancel
Save