Skip to content

Commit

Permalink
release(patch): Version 4.2.2
Browse files Browse the repository at this point in the history
Last round of bug fixes for 10.9.

 # Highlights

Here are some of the key features and improvements since the last stable release (4.2.1):

 ## Bug Fixes

- Don't skip valid metadata update events. (d06fbe8)

- Don't attempt to iterate directories in the VFS if it doesn't exist. (5b6da6e)

For the full list of changes, please check out the [complete changelog](4.2.1...4.2.2) here on GitHub.
  • Loading branch information
revam committed Oct 27, 2024
2 parents ef563d3 + 5b6da6e commit 4d9f055
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Shokofin/Resolvers/ShokoResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ NamingOptions namingOptions
if (parent.IsTopParent) {
var createMovies = collectionType is CollectionType.movies || (collectionType is null && Plugin.Instance.Configuration.SeparateMovies);
var pathsToRemoveBag = new ConcurrentBag<(string, bool)>();
var items = FileSystem.GetDirectories(vfsPath)
var items = (FileSystem.DirectoryExists(vfsPath) ? FileSystem.GetDirectories(vfsPath) : [])
.AsParallel()
.SelectMany(dirInfo => {
if (!dirInfo.Name.TryGetAttributeValue(ShokoSeriesId.Name, out var seriesId) || !int.TryParse(seriesId, out _))
Expand Down
4 changes: 2 additions & 2 deletions Shokofin/SignalR/SignalRConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ private void OnFileDeleted(IFileEventArgs eventArgs)

private void OnInfoUpdated(IMetadataUpdatedEventArgs eventArgs)
{
if (Plugin.Instance.Configuration.SignalR_EventSources.Contains(eventArgs.ProviderName)) {
if (!Plugin.Instance.Configuration.SignalR_EventSources.Contains(eventArgs.ProviderName)) {
Logger.LogTrace(
"{ProviderName} {MetadataType} {ProviderId} ({ProviderParentId}) skipped event with {UpdateReason}; provider not is not enabled in the plugin settings. (Episode={EpisodeId},Series={SeriesId},Group={GroupId})",
"{ProviderName} {MetadataType} {ProviderId} ({ProviderParentId}) skipped event with {UpdateReason}; provider is not enabled in the plugin settings. (Episode={EpisodeId},Series={SeriesId},Group={GroupId})",
eventArgs.ProviderName,
eventArgs.Kind,
eventArgs.ProviderId,
Expand Down

0 comments on commit 4d9f055

Please sign in to comment.