mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #4456] [MERGED] Emby.Naming - nullable & code coverage #9909
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#9909
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4456
Author: @martinek-stepan
Created: 11/10/2020
Status: ✅ Merged
Merged: 11/17/2020
Merged by: @joshuaboniface
Base:
master← Head:emby-namig-nullable📝 Commits (10+)
59619b6Enable nullable in Emby.Naming60b49e6Re-Sharper inspection issues6437cf6Removed Success property from AudioBookFilePathParserResult, since it was unused and consider only audiobooks that have chapter/page number in name makes no sensee7a37beSimplify AudioBookResolver since there is no option of passing directories into it (AudioResolver.cs:179) and handling directories were not implemented anywayf39775dWritten test to finish coverage for AudioBookListResolver & AudioBookResolver and corrected some logical erros / unhandled exception50a2ef9Simplify Resolve_InvalidExtension Test and created tests for Alternative Versions parsing & Year Extraction for audiobooks1e71775Add Name and Year parsing for audiobooks7b6363bUpdate test for detecting audiobooks extras and alternative filesc060ed1Added resolving of alternative files and extras for audibooks.aef1fe6Complete test coverage for Emby.Naming.Subtitles📊 Changes
59 files changed (+1760 additions, -814 deletions)
View changed files
📝
Emby.Naming/Audio/AlbumParser.cs(+12 -3)📝
Emby.Naming/Audio/AudioFileParser.cs(+9 -3)📝
Emby.Naming/AudioBook/AudioBookFileInfo.cs(+16 -7)📝
Emby.Naming/AudioBook/AudioBookFilePathParser.cs(+12 -5)📝
Emby.Naming/AudioBook/AudioBookFilePathParserResult.cs(+9 -5)📝
Emby.Naming/AudioBook/AudioBookInfo.cs(+11 -4)📝
Emby.Naming/AudioBook/AudioBookListResolver.cs(+117 -12)➕
Emby.Naming/AudioBook/AudioBookNameParser.cs(+67 -0)➕
Emby.Naming/AudioBook/AudioBookNameParserResult.cs(+18 -0)📝
Emby.Naming/AudioBook/AudioBookResolver.cs(+20 -19)📝
Emby.Naming/Common/EpisodeExpression.cs(+32 -10)📝
Emby.Naming/Common/MediaType.cs(+3 -2)📝
Emby.Naming/Common/NamingOptions.cs(+342 -306)📝
Emby.Naming/Emby.Naming.csproj(+2 -1)📝
Emby.Naming/Subtitles/SubtitleInfo.cs(+17 -3)📝
Emby.Naming/Subtitles/SubtitleParser.cs(+17 -10)📝
Emby.Naming/TV/EpisodeInfo.cs(+38 -7)📝
Emby.Naming/TV/EpisodePathParser.cs(+22 -13)📝
Emby.Naming/TV/EpisodePathParserResult.cs(+33 -4)📝
Emby.Naming/TV/EpisodeResolver.cs(+19 -6)...and 39 more files
📄 Description
Changes
Two main changes are:
Issues
Resolves #4107
Part of issue #2768
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.