mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-23 05:59:58 +00:00
Support for SeriesId (#192)
https://github.com/jellyfin/jellyfin-plugin-webhook/issues/172
This commit is contained in:
parent
4543c0ce55
commit
92ad2a0d9a
@ -84,6 +84,11 @@ public static class DataObjectHelpers
|
||||
dataObject["Year"] = season.Series.ProductionYear;
|
||||
}
|
||||
|
||||
if (season.Series?.Id is not null)
|
||||
{
|
||||
dataObject["SeriesId"] = season.Series.Id;
|
||||
}
|
||||
|
||||
if (season.IndexNumber is not null)
|
||||
{
|
||||
dataObject["SeasonNumber"] = season.IndexNumber;
|
||||
@ -98,6 +103,11 @@ public static class DataObjectHelpers
|
||||
dataObject["SeriesName"] = episode.Series.Name.Escape();
|
||||
}
|
||||
|
||||
if (episode.Series?.Id is not null)
|
||||
{
|
||||
dataObject["SeriesId"] = episode.Series.Id;
|
||||
}
|
||||
|
||||
if (!episode.SeasonId.Equals(default))
|
||||
{
|
||||
dataObject["SeasonId"] = episode.SeasonId;
|
||||
|
Loading…
Reference in New Issue
Block a user