aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.LocalMetadata/Parsers
AgeCommit message (Collapse)Author
2025-02-03Merge branch 'master' into sort-nfo-dataMarc Brooks
2025-01-25chore: fix spellingJosh Soref
* a * acceleration * addition * altogether * api clients * artist * associated * bandwidth * cannot * capabilities * case-insensitive * case-sensitive * configuration * delimiter * dependent * diacritics * directors * enable * explicitly * filters * finish * have * hierarchy * implicit * include * information * into * its * keepalive * localization * macos * manual * matching * metadata * nonexistent * options * overridden * parsed * parser * playback * preferring * processes * processing * provider * ratings * retrieval * running * segments * separate * should * station * subdirectories * superseded * supported * system * than * the * throws * transpose * valid * was link: forum or chat rooms Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-18Sort embedded collections in Nfo filesMarc Brooks
Because the Nfo files emit the collections as they are in-memory, the files are not stable in format, genres, tags, albums, people, etc. are emitted in random orders. Add ordering of the collections when emitting the Nfo files so the file remains stable (unchanged) when underlying media information doesn't change. In the process of this, it became clear that most of the providers and probes don't trim the strings like people's names, genre names, etc. so did a pass of Trim cleanup too. Specific ordering: (alphabetical/numeric ascending after trimming blanks and defaulting to zero for missing numbers) BaseItem: Directors, Writers, Trailers (by Url), Production Locations, Genres, Studios, Tags, Custom Provider Data (by key), Linked Children (by Path>LibraryItemId), Backdrop Images (by path), Actors (by SortOrder>Name) AlbumNfo: Artists, Album Artists, Tracks (by ParentIndexNumber>IndexNumber>Name) ArtistNfo: Albums (by Production Year>SortName>Name) MovieNfo: Artists Fix Debug build lint Fix CI debug build lint issue. Fix review issues Fixed debug-build lint issues. Emits the `disc` number to NFO for tracks with a non-zero ParentIndexNumber and only emit `position` if non-zero. Removed the exception filtering I put in for testing. Don't emit actors for MusicAlbums or MusicArtists Swap from String.Trimmed() to ?.Trim() Addressing PR feedback Can't use ReadOnlySpan in an async method Removed now-unused namespace
2024-07-17Add TrySetProviderId extensionBond_009
2024-04-01Implement update endpointShadowghost
2024-04-01Apply review suggestionsShadowghost
2024-03-26Apply review suggestionsShadowghost
2023-10-10Convert string MediaType to enum MediaTypeCody Robibero
2023-10-06Remove logger parameter from XmlReaderExtensions.TryReadDateTimePatrick Barron
2023-10-06More miscellaneous cleanupPatrick Barron
2023-10-06Add TryReadInt to XmlReaderExtensionsPatrick Barron
2023-10-06Add ReadNormalizedString to XmlReaderExtensionsPatrick Barron
2023-10-06Add TryParseDateTime and TryParseDateTimeExact to XmlReaderExtensionsPatrick Barron
2023-10-06Add GetStringArray and GetPersonArray to XmlReaderExtensionsPatrick Barron
2023-10-06Add XmlReader.GetPersonFromXmlNodePatrick Barron
2023-04-06Use TryAddStepan Goremykin
2023-03-28Merge pull request #9466 from Shadowghost/playlist-fixBond-009
2023-03-25Convert Person.Type to use PersonKind enum (#9487)Cody Robibero
2023-03-10Fix playlist creation and removalShadowghost
2023-02-19Optimize tryparseBond_009
* Don't check for null before * Don't try different formats when not needed (NumberFormat.Integer is the fast path)
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-12-05Replace != null with is not nullBond_009
2022-11-01Fix double assignmentJulius Vitkauskas
2022-10-06Use ArgumentNullException.ThrowIfNull helper methodBond_009
Did a simple search/replace on the whole repo (except the RSSDP project) This reduces LOC and should improve performance (methods containing a throw statement don't get inlined) ``` if \((\w+) == null\) \s+\{ \s+throw new ArgumentNullException\((.*)\); \s+\} ``` ``` ArgumentNullException.ThrowIfNull($1); ```
2021-11-09Fix some warningsBond_009
down to 580
2021-11-08Fix and disable new dotnet6 warningsCody Robibero
2021-09-26Remove all instances of en-US cultureCody Robibero
2021-09-21Specify DateTimeStyles when possibleBond_009
2021-09-19Reduce allocationsBond_009
2021-08-04Minor improvementsBond_009
2021-05-05Code Clean up: Use Pattern Matching (#5838)BaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-01-09Add tests for NFO parsersBond_009
2020-11-13Fix nullability errors in MediaBrowser.LocalMetadatacrobibero
2020-06-26Fix nullable string usage.crobibero
2020-06-13Remove warnings from MediaBrowser.LocalMetadatacrobibero
2020-06-13Merge pull request #3254 from crobibero/iloggerdkanada
Use typed logger where possible
2020-06-09Fix a small number of compile warningsaled
2020-06-06Fix a small number of compile warningsaled
2020-06-05Use typed logger where possiblecrobibero
2020-01-31Fix warningsBond_009
2019-03-07Remove useless commentsBond_009
2019-03-07Remove useless abstraction around XmlReaderSettingsBond_009
This removes the amount of stuff that needs to be passed around Also removes some unneeded `ManagedFileSystem` usage
2019-01-31Remove support for games as a media typeClaus Vium
2019-01-28Unwrapped `OpenRead` and `CopyFile`Erwin de Haan
2019-01-17Reformat JustAMan review pt2 changesErwin de Haan
Refs #575
2019-01-13ReSharper format: conform inline 'out' parameters.Erwin de Haan
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.ModelErwin de Haan
2019-01-13Visual Studio Reformat: MediaBrowser.LocalMetadataErwin de Haan