mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-20 09:06:38 +00:00
fix and remove a few more tests
This commit is contained in:
@@ -31,7 +31,6 @@ namespace Emby.Naming.Subtitles
|
||||
}
|
||||
|
||||
var flags = GetFlags(path);
|
||||
|
||||
var info = new SubtitleInfo
|
||||
{
|
||||
Path = path,
|
||||
@@ -45,7 +44,7 @@ namespace Emby.Naming.Subtitles
|
||||
// Should have a name, language and file extension
|
||||
if (parts.Count >= 3)
|
||||
{
|
||||
info.Language = parts[parts.Count - 2];
|
||||
info.Language = parts[^2];
|
||||
}
|
||||
|
||||
return info;
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace Emby.Naming.TV
|
||||
var endingNumberGroup = match.Groups["endingepnumber"];
|
||||
if (endingNumberGroup.Success)
|
||||
{
|
||||
// Will only set EndingEpsiodeNumber if the captured number is not followed by additional numbers
|
||||
// Will only set EndingEpisodeNumber if the captured number is not followed by additional numbers
|
||||
// or a 'p' or 'i' as what you would get with a pixel resolution specification.
|
||||
// It avoids erroneous parsing of something like "series-s09e14-1080p.mkv" as a multi-episode from E14 to E108
|
||||
int nextIndex = endingNumberGroup.Index + endingNumberGroup.Length;
|
||||
|
||||
Reference in New Issue
Block a user