Skip to content

Commit f587e1a

Browse files
author
cloud9developer
committed
updated error messaging to be more descriptive for IndexOutOfRange when getting physical location details
1 parent 4125c34 commit f587e1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Jellyfin.Plugin.Newsletters/Scanner/Scraper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ public void BuildObjs(List<BaseItem> items, string type)
161161
logger.Debug(episode.PhysicalLocations[0]); // Filepath
162162
logger.Debug("---------------");
163163
}
164+
catch (IndexOutOfRangeException iore)
165+
{
166+
logger.Error($"Physical location of file could not be found.. Turn on debug mode to see more information!");
167+
logger.Error(iore);
168+
continue;
169+
}
164170
catch (Exception e)
165171
{
166172
logger.Error("Error processing your file..");

0 commit comments

Comments
 (0)