-
-
Couldn't load subscription status.
- Fork 69
Support for external ID's for Shows #316
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -159,6 +159,14 @@ public static Dictionary<string, object> AddBaseItemData(this Dictionary<string, | |||||||||||||||||||||||||||||||||
| dataObject["AirTime"] = episode.Series.AirTime; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| if (episode.Series?.ProviderIds is not null) | ||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||
| foreach (var (providerKey, providerValue) in episode.Series.ProviderIds) | ||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||
| dataObject[$"SeriesProvider_{providerKey.ToLowerInvariant()}"] = providerValue; | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+162
to
+168
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
why not make this a new object instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not using use ProviderIds directly ? looking at the rest of the existing code. there seems to be a conscious effort to avoid objects (look at how media streams are assigned). I don't know what the reason is. changing those could be a breaking change for people. |
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| break; | ||||||||||||||||||||||||||||||||||
| case Audio audio: | ||||||||||||||||||||||||||||||||||
| if (!string.IsNullOrEmpty(audio.Album)) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
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.
the dataObject dictionary is using StringComparer.OrdinalIgnoreCase comparer, so need to use ToLowerInvariant() on the keys, you're just making more allocations.