Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor extras and movie multi-part parsing #6956

Merged
merged 12 commits into from
Dec 17, 2021

Conversation

cvium
Copy link
Member

@cvium cvium commented Dec 7, 2021

Changes
Tried to consolidate the extras parsing instead of having multiple methods doing the same things.

Removed support for extras in flat file structures (they will be outright ignored).

Issues
Fixes #6906

@github-actions
Copy link

github-actions bot commented Dec 7, 2021

No changes to OpenAPI specification found. See history of this comment for previous changes.

}

if (includeDirectories)
var files = directoryService.GetFileSystemEntries(path).OrderBy(i => Array.IndexOf(BaseItem.SupportedImageExtensions, i.Extension ?? string.Empty));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are somewhat unrelated to the extras, but related to the slowness of #6906

SetVideoType(video, videoInfo);
}

Set3DFormat(video, videoInfo);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does moving this out of the loop also fix #6609?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doubt it

/// <param name="isNumerical">Whether the file stack rule uses numerical or alphabetical numbering.</param>
public FileStackRule(string token, bool isNumerical)
{
_tokenRegex = new Regex(token, RegexOptions.IgnoreCase);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth doing .Compiled here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NamingOptions is a Singleton so it doesn't matter much

Emby.Naming/Video/FileStackRule.cs Outdated Show resolved Hide resolved
@cvium cvium changed the title Refactor extras parsing Refactor extras and movie multi-part parsing Dec 11, 2021
Copy link
Member

@Bond-009 Bond-009 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emby.Naming/Video/ExtraResolver.cs Outdated Show resolved Hide resolved
cvium and others added 2 commits December 14, 2021 22:57
Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
@jellyfin-bot jellyfin-bot added the merge conflict Merge conflicts should be resolved before a merge label Dec 15, 2021
@jellyfin-bot jellyfin-bot removed the merge conflict Merge conflicts should be resolved before a merge label Dec 15, 2021
@cvium cvium requested a review from Bond-009 December 15, 2021 07:39
@crobibero crobibero merged commit 923720c into jellyfin:master Dec 17, 2021
@1337joe 1337joe mentioned this pull request Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue]: Slow performances when scanning large amount of files inside a directory
6 participants