-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
No changes to OpenAPI specification found. See history of this comment for previous changes. |
1c8c0f2
to
fde84a1
Compare
} | ||
|
||
if (includeDirectories) | ||
var files = directoryService.GetFileSystemEntries(path).OrderBy(i => Array.IndexOf(BaseItem.SupportedImageExtensions, i.Extension ?? string.Empty)); |
There was a problem hiding this comment.
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
Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs
Outdated
Show resolved
Hide resolved
SetVideoType(video, videoInfo); | ||
} | ||
|
||
Set3DFormat(video, videoInfo); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth doing .Compiled
here?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your usage of RegexOptions.Compiled
is wrong
https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-options#compiled-regular-expressions
Co-authored-by: Bond-009 <bond.009@outlook.com>
Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
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