| | 1 | | #nullable disable |
| | 2 | |
|
| | 3 | | #pragma warning disable CS1591 |
| | 4 | |
|
| | 5 | | using System; |
| | 6 | | using System.Collections.Generic; |
| | 7 | | using System.Globalization; |
| | 8 | | using System.Linq; |
| | 9 | | using System.Text.Json.Serialization; |
| | 10 | | using System.Threading; |
| | 11 | | using System.Threading.Tasks; |
| | 12 | | using Jellyfin.Data.Entities; |
| | 13 | | using Jellyfin.Data.Enums; |
| | 14 | | using MediaBrowser.Controller.Dto; |
| | 15 | | using MediaBrowser.Controller.Providers; |
| | 16 | | using MediaBrowser.Model.Entities; |
| | 17 | | using MediaBrowser.Model.Providers; |
| | 18 | | using MediaBrowser.Model.Querying; |
| | 19 | | using MetadataProvider = MediaBrowser.Model.Entities.MetadataProvider; |
| | 20 | |
|
| | 21 | | namespace MediaBrowser.Controller.Entities.TV |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Class Series. |
| | 25 | | /// </summary> |
| | 26 | | public class Series : Folder, IHasTrailers, IHasDisplayOrder, IHasLookupInfo<SeriesInfo>, IMetadataContainer |
| | 27 | | { |
| 105 | 28 | | public Series() |
| | 29 | | { |
| 105 | 30 | | AirDays = Array.Empty<DayOfWeek>(); |
| 105 | 31 | | } |
| | 32 | |
|
| | 33 | | public DayOfWeek[] AirDays { get; set; } |
| | 34 | |
|
| | 35 | | public string AirTime { get; set; } |
| | 36 | |
|
| | 37 | | [JsonIgnore] |
| 0 | 38 | | public override bool SupportsAddingToPlaylist => true; |
| | 39 | |
|
| | 40 | | [JsonIgnore] |
| 0 | 41 | | public override bool IsPreSorted => true; |
| | 42 | |
|
| | 43 | | [JsonIgnore] |
| 0 | 44 | | public override bool SupportsDateLastMediaAdded => true; |
| | 45 | |
|
| | 46 | | [JsonIgnore] |
| 0 | 47 | | public override bool SupportsInheritedParentImages => false; |
| | 48 | |
|
| | 49 | | [JsonIgnore] |
| 0 | 50 | | public override bool SupportsPeople => true; |
| | 51 | |
|
| | 52 | | /// <inheritdoc /> |
| | 53 | | [JsonIgnore] |
| 0 | 54 | | public IReadOnlyList<BaseItem> LocalTrailers => GetExtras() |
| 0 | 55 | | .Where(extra => extra.ExtraType == Model.Entities.ExtraType.Trailer) |
| 0 | 56 | | .ToArray(); |
| | 57 | |
|
| | 58 | | /// <summary> |
| | 59 | | /// Gets or sets the display order. |
| | 60 | | /// </summary> |
| | 61 | | /// <remarks> |
| | 62 | | /// Valid options are airdate, dvd or absolute. |
| | 63 | | /// </remarks> |
| | 64 | | public string DisplayOrder { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets the status. |
| | 68 | | /// </summary> |
| | 69 | | /// <value>The status.</value> |
| | 70 | | public SeriesStatus? Status { get; set; } |
| | 71 | |
|
| | 72 | | public override double GetDefaultPrimaryImageAspectRatio() |
| | 73 | | { |
| 0 | 74 | | double value = 2; |
| 0 | 75 | | value /= 3; |
| | 76 | |
|
| 0 | 77 | | return value; |
| | 78 | | } |
| | 79 | |
|
| | 80 | | public override string CreatePresentationUniqueKey() |
| | 81 | | { |
| 0 | 82 | | if (LibraryManager.GetLibraryOptions(this).EnableAutomaticSeriesGrouping) |
| | 83 | | { |
| 0 | 84 | | var userdatakeys = GetUserDataKeys(); |
| | 85 | |
|
| 0 | 86 | | if (userdatakeys.Count > 1) |
| | 87 | | { |
| 0 | 88 | | return AddLibrariesToPresentationUniqueKey(userdatakeys[0]); |
| | 89 | | } |
| | 90 | | } |
| | 91 | |
|
| 0 | 92 | | return base.CreatePresentationUniqueKey(); |
| | 93 | | } |
| | 94 | |
|
| | 95 | | private string AddLibrariesToPresentationUniqueKey(string key) |
| | 96 | | { |
| 0 | 97 | | var lang = GetPreferredMetadataLanguage(); |
| 0 | 98 | | if (!string.IsNullOrEmpty(lang)) |
| | 99 | | { |
| 0 | 100 | | key += "-" + lang; |
| | 101 | | } |
| | 102 | |
|
| 0 | 103 | | var folders = LibraryManager.GetCollectionFolders(this) |
| 0 | 104 | | .Select(i => i.Id.ToString("N", CultureInfo.InvariantCulture)) |
| 0 | 105 | | .ToArray(); |
| | 106 | |
|
| 0 | 107 | | if (folders.Length == 0) |
| | 108 | | { |
| 0 | 109 | | return key; |
| | 110 | | } |
| | 111 | |
|
| 0 | 112 | | return key + "-" + string.Join('-', folders); |
| | 113 | | } |
| | 114 | |
|
| | 115 | | private static string GetUniqueSeriesKey(BaseItem series) |
| | 116 | | { |
| 0 | 117 | | return series.GetPresentationUniqueKey(); |
| | 118 | | } |
| | 119 | |
|
| | 120 | | public override int GetChildCount(User user) |
| | 121 | | { |
| 0 | 122 | | var seriesKey = GetUniqueSeriesKey(this); |
| | 123 | |
|
| 0 | 124 | | var result = LibraryManager.GetCount(new InternalItemsQuery(user) |
| 0 | 125 | | { |
| 0 | 126 | | AncestorWithPresentationUniqueKey = null, |
| 0 | 127 | | SeriesPresentationUniqueKey = seriesKey, |
| 0 | 128 | | IncludeItemTypes = new[] { BaseItemKind.Season }, |
| 0 | 129 | | IsVirtualItem = false, |
| 0 | 130 | | Limit = 0, |
| 0 | 131 | | DtoOptions = new DtoOptions(false) |
| 0 | 132 | | { |
| 0 | 133 | | EnableImages = false |
| 0 | 134 | | } |
| 0 | 135 | | }); |
| | 136 | |
|
| 0 | 137 | | return result; |
| | 138 | | } |
| | 139 | |
|
| | 140 | | public override int GetRecursiveChildCount(User user) |
| | 141 | | { |
| 0 | 142 | | var seriesKey = GetUniqueSeriesKey(this); |
| | 143 | |
|
| 0 | 144 | | var query = new InternalItemsQuery(user) |
| 0 | 145 | | { |
| 0 | 146 | | AncestorWithPresentationUniqueKey = null, |
| 0 | 147 | | SeriesPresentationUniqueKey = seriesKey, |
| 0 | 148 | | DtoOptions = new DtoOptions(false) |
| 0 | 149 | | { |
| 0 | 150 | | EnableImages = false |
| 0 | 151 | | } |
| 0 | 152 | | }; |
| | 153 | |
|
| 0 | 154 | | if (query.IncludeItemTypes.Length == 0) |
| | 155 | | { |
| 0 | 156 | | query.IncludeItemTypes = new[] { BaseItemKind.Episode }; |
| | 157 | | } |
| | 158 | |
|
| 0 | 159 | | query.IsVirtualItem = false; |
| 0 | 160 | | query.Limit = 0; |
| 0 | 161 | | var totalRecordCount = LibraryManager.GetCount(query); |
| | 162 | |
|
| 0 | 163 | | return totalRecordCount; |
| | 164 | | } |
| | 165 | |
|
| | 166 | | /// <summary> |
| | 167 | | /// Gets the user data key. |
| | 168 | | /// </summary> |
| | 169 | | /// <returns>System.String.</returns> |
| | 170 | | public override List<string> GetUserDataKeys() |
| | 171 | | { |
| 0 | 172 | | var list = base.GetUserDataKeys(); |
| | 173 | |
|
| 0 | 174 | | if (this.TryGetProviderId(MetadataProvider.Imdb, out var key)) |
| | 175 | | { |
| 0 | 176 | | list.Insert(0, key); |
| | 177 | | } |
| | 178 | |
|
| 0 | 179 | | if (this.TryGetProviderId(MetadataProvider.Tvdb, out key)) |
| | 180 | | { |
| 0 | 181 | | list.Insert(0, key); |
| | 182 | | } |
| | 183 | |
|
| 0 | 184 | | if (this.TryGetProviderId(MetadataProvider.Custom, out key)) |
| | 185 | | { |
| 0 | 186 | | list.Insert(0, key); |
| | 187 | | } |
| | 188 | |
|
| 0 | 189 | | return list; |
| | 190 | | } |
| | 191 | |
|
| | 192 | | public override List<BaseItem> GetChildren(User user, bool includeLinkedChildren, InternalItemsQuery query) |
| | 193 | | { |
| 0 | 194 | | return GetSeasons(user, new DtoOptions(true)); |
| | 195 | | } |
| | 196 | |
|
| | 197 | | public List<BaseItem> GetSeasons(User user, DtoOptions options) |
| | 198 | | { |
| 0 | 199 | | var query = new InternalItemsQuery(user) |
| 0 | 200 | | { |
| 0 | 201 | | DtoOptions = options |
| 0 | 202 | | }; |
| | 203 | |
|
| 0 | 204 | | SetSeasonQueryOptions(query, user); |
| | 205 | |
|
| 0 | 206 | | return LibraryManager.GetItemList(query); |
| | 207 | | } |
| | 208 | |
|
| | 209 | | private void SetSeasonQueryOptions(InternalItemsQuery query, User user) |
| | 210 | | { |
| 0 | 211 | | var seriesKey = GetUniqueSeriesKey(this); |
| | 212 | |
|
| 0 | 213 | | query.AncestorWithPresentationUniqueKey = null; |
| 0 | 214 | | query.SeriesPresentationUniqueKey = seriesKey; |
| 0 | 215 | | query.IncludeItemTypes = new[] { BaseItemKind.Season }; |
| 0 | 216 | | query.OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) }; |
| | 217 | |
|
| 0 | 218 | | if (user is not null && !user.DisplayMissingEpisodes) |
| | 219 | | { |
| 0 | 220 | | query.IsMissing = false; |
| | 221 | | } |
| 0 | 222 | | } |
| | 223 | |
|
| | 224 | | protected override QueryResult<BaseItem> GetItemsInternal(InternalItemsQuery query) |
| | 225 | | { |
| 0 | 226 | | var user = query.User; |
| | 227 | |
|
| 0 | 228 | | if (query.Recursive) |
| | 229 | | { |
| 0 | 230 | | var seriesKey = GetUniqueSeriesKey(this); |
| | 231 | |
|
| 0 | 232 | | query.AncestorWithPresentationUniqueKey = null; |
| 0 | 233 | | query.SeriesPresentationUniqueKey = seriesKey; |
| 0 | 234 | | if (query.OrderBy.Count == 0) |
| | 235 | | { |
| 0 | 236 | | query.OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) }; |
| | 237 | | } |
| | 238 | |
|
| 0 | 239 | | if (query.IncludeItemTypes.Length == 0) |
| | 240 | | { |
| 0 | 241 | | query.IncludeItemTypes = new[] { BaseItemKind.Episode, BaseItemKind.Season }; |
| | 242 | | } |
| | 243 | |
|
| 0 | 244 | | query.IsVirtualItem = false; |
| 0 | 245 | | return LibraryManager.GetItemsResult(query); |
| | 246 | | } |
| | 247 | |
|
| 0 | 248 | | SetSeasonQueryOptions(query, user); |
| | 249 | |
|
| 0 | 250 | | return LibraryManager.GetItemsResult(query); |
| | 251 | | } |
| | 252 | |
|
| | 253 | | public IEnumerable<BaseItem> GetEpisodes(User user, DtoOptions options, bool shouldIncludeMissingEpisodes) |
| | 254 | | { |
| 0 | 255 | | var seriesKey = GetUniqueSeriesKey(this); |
| | 256 | |
|
| 0 | 257 | | var query = new InternalItemsQuery(user) |
| 0 | 258 | | { |
| 0 | 259 | | AncestorWithPresentationUniqueKey = null, |
| 0 | 260 | | SeriesPresentationUniqueKey = seriesKey, |
| 0 | 261 | | IncludeItemTypes = new[] { BaseItemKind.Episode, BaseItemKind.Season }, |
| 0 | 262 | | OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) }, |
| 0 | 263 | | DtoOptions = options, |
| 0 | 264 | | }; |
| | 265 | |
|
| 0 | 266 | | if (!shouldIncludeMissingEpisodes) |
| | 267 | | { |
| 0 | 268 | | query.IsMissing = false; |
| | 269 | | } |
| | 270 | |
|
| 0 | 271 | | var allItems = LibraryManager.GetItemList(query); |
| | 272 | |
|
| 0 | 273 | | var allSeriesEpisodes = allItems.OfType<Episode>().ToList(); |
| | 274 | |
|
| 0 | 275 | | var allEpisodes = allItems.OfType<Season>() |
| 0 | 276 | | .SelectMany(i => i.GetEpisodes(this, user, allSeriesEpisodes, options, shouldIncludeMissingEpisodes)) |
| 0 | 277 | | .Reverse(); |
| | 278 | |
|
| | 279 | | // Specials could appear twice based on above - once in season 0, once in the aired season |
| | 280 | | // This depends on settings for that series |
| | 281 | | // When this happens, remove the duplicate from season 0 |
| | 282 | |
|
| 0 | 283 | | return allEpisodes.DistinctBy(i => i.Id).Reverse(); |
| | 284 | | } |
| | 285 | |
|
| | 286 | | public async Task RefreshAllMetadata(MetadataRefreshOptions refreshOptions, IProgress<double> progress, Cancella |
| | 287 | | { |
| | 288 | | // Refresh bottom up, seasons and episodes first, then the series |
| | 289 | | var items = GetRecursiveChildren(); |
| | 290 | |
|
| | 291 | | var totalItems = items.Count; |
| | 292 | | var numComplete = 0; |
| | 293 | |
|
| | 294 | | // Refresh seasons |
| | 295 | | foreach (var item in items) |
| | 296 | | { |
| | 297 | | if (item is not Season) |
| | 298 | | { |
| | 299 | | continue; |
| | 300 | | } |
| | 301 | |
|
| | 302 | | cancellationToken.ThrowIfCancellationRequested(); |
| | 303 | |
|
| | 304 | | if (refreshOptions.RefreshItem(item)) |
| | 305 | | { |
| | 306 | | await item.RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); |
| | 307 | | } |
| | 308 | |
|
| | 309 | | numComplete++; |
| | 310 | | double percent = numComplete; |
| | 311 | | percent /= totalItems; |
| | 312 | | progress.Report(percent * 100); |
| | 313 | | } |
| | 314 | |
|
| | 315 | | // Refresh episodes and other children |
| | 316 | | foreach (var item in items) |
| | 317 | | { |
| | 318 | | if (item is Season) |
| | 319 | | { |
| | 320 | | continue; |
| | 321 | | } |
| | 322 | |
|
| | 323 | | cancellationToken.ThrowIfCancellationRequested(); |
| | 324 | |
|
| | 325 | | bool skipItem = item is Episode episode |
| | 326 | | && refreshOptions.MetadataRefreshMode != MetadataRefreshMode.FullRefresh |
| | 327 | | && !refreshOptions.ReplaceAllMetadata |
| | 328 | | && episode.IsMissingEpisode |
| | 329 | | && episode.LocationType == LocationType.Virtual |
| | 330 | | && episode.PremiereDate.HasValue |
| | 331 | | && (DateTime.UtcNow - episode.PremiereDate.Value).TotalDays > 30; |
| | 332 | |
|
| | 333 | | if (!skipItem) |
| | 334 | | { |
| | 335 | | if (refreshOptions.RefreshItem(item)) |
| | 336 | | { |
| | 337 | | await item.RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); |
| | 338 | | } |
| | 339 | | } |
| | 340 | |
|
| | 341 | | numComplete++; |
| | 342 | | double percent = numComplete; |
| | 343 | | percent /= totalItems; |
| | 344 | | progress.Report(percent * 100); |
| | 345 | | } |
| | 346 | |
|
| | 347 | | refreshOptions = new MetadataRefreshOptions(refreshOptions); |
| | 348 | | await ProviderManager.RefreshSingleItem(this, refreshOptions, cancellationToken).ConfigureAwait(false); |
| | 349 | | } |
| | 350 | |
|
| | 351 | | public List<BaseItem> GetSeasonEpisodes(Season parentSeason, User user, DtoOptions options, bool shouldIncludeMi |
| | 352 | | { |
| 0 | 353 | | var queryFromSeries = ConfigurationManager.Configuration.DisplaySpecialsWithinSeasons; |
| | 354 | |
|
| | 355 | | // add optimization when this setting is not enabled |
| 0 | 356 | | var seriesKey = queryFromSeries ? |
| 0 | 357 | | GetUniqueSeriesKey(this) : |
| 0 | 358 | | GetUniqueSeriesKey(parentSeason); |
| | 359 | |
|
| 0 | 360 | | var query = new InternalItemsQuery(user) |
| 0 | 361 | | { |
| 0 | 362 | | AncestorWithPresentationUniqueKey = queryFromSeries ? null : seriesKey, |
| 0 | 363 | | SeriesPresentationUniqueKey = queryFromSeries ? seriesKey : null, |
| 0 | 364 | | IncludeItemTypes = new[] { BaseItemKind.Episode }, |
| 0 | 365 | | OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) }, |
| 0 | 366 | | DtoOptions = options |
| 0 | 367 | | }; |
| | 368 | |
|
| 0 | 369 | | if (!shouldIncludeMissingEpisodes) |
| | 370 | | { |
| 0 | 371 | | query.IsMissing = false; |
| | 372 | | } |
| | 373 | |
|
| 0 | 374 | | var allItems = LibraryManager.GetItemList(query); |
| | 375 | |
|
| 0 | 376 | | return GetSeasonEpisodes(parentSeason, user, allItems, options, shouldIncludeMissingEpisodes); |
| | 377 | | } |
| | 378 | |
|
| | 379 | | public List<BaseItem> GetSeasonEpisodes(Season parentSeason, User user, IEnumerable<BaseItem> allSeriesEpisodes, |
| | 380 | | { |
| 0 | 381 | | if (allSeriesEpisodes is null) |
| | 382 | | { |
| 0 | 383 | | return GetSeasonEpisodes(parentSeason, user, options, shouldIncludeMissingEpisodes); |
| | 384 | | } |
| | 385 | |
|
| 0 | 386 | | var episodes = FilterEpisodesBySeason(allSeriesEpisodes, parentSeason, ConfigurationManager.Configuration.Di |
| | 387 | |
|
| 0 | 388 | | var sortBy = (parentSeason.IndexNumber ?? -1) == 0 ? ItemSortBy.SortName : ItemSortBy.AiredEpisodeOrder; |
| | 389 | |
|
| 0 | 390 | | return LibraryManager.Sort(episodes, user, new[] { sortBy }, SortOrder.Ascending).ToList(); |
| | 391 | | } |
| | 392 | |
|
| | 393 | | /// <summary> |
| | 394 | | /// Filters the episodes by season. |
| | 395 | | /// </summary> |
| | 396 | | /// <param name="episodes">The episodes.</param> |
| | 397 | | /// <param name="parentSeason">The season.</param> |
| | 398 | | /// <param name="includeSpecials"><c>true</c> to include special, <c>false</c> to not.</param> |
| | 399 | | /// <returns>The set of episodes.</returns> |
| | 400 | | public static IEnumerable<BaseItem> FilterEpisodesBySeason(IEnumerable<BaseItem> episodes, Season parentSeason, |
| | 401 | | { |
| 0 | 402 | | var seasonNumber = parentSeason.IndexNumber; |
| 0 | 403 | | var seasonPresentationKey = GetUniqueSeriesKey(parentSeason); |
| | 404 | |
|
| 0 | 405 | | var supportSpecialsInSeason = includeSpecials && seasonNumber.HasValue && seasonNumber.Value != 0; |
| | 406 | |
|
| 0 | 407 | | return episodes.Where(episode => |
| 0 | 408 | | { |
| 0 | 409 | | var episodeItem = (Episode)episode; |
| 0 | 410 | |
|
| 0 | 411 | | var currentSeasonNumber = supportSpecialsInSeason ? episodeItem.AiredSeasonNumber : episode.ParentIndexN |
| 0 | 412 | | if (currentSeasonNumber.HasValue && seasonNumber.HasValue && currentSeasonNumber.Value == seasonNumber.V |
| 0 | 413 | | { |
| 0 | 414 | | return true; |
| 0 | 415 | | } |
| 0 | 416 | |
|
| 0 | 417 | | if (!currentSeasonNumber.HasValue && !seasonNumber.HasValue && parentSeason.LocationType == LocationType |
| 0 | 418 | | { |
| 0 | 419 | | return true; |
| 0 | 420 | | } |
| 0 | 421 | |
|
| 0 | 422 | | var season = episodeItem.Season; |
| 0 | 423 | | return season is not null && string.Equals(GetUniqueSeriesKey(season), seasonPresentationKey, StringComp |
| 0 | 424 | | }); |
| | 425 | | } |
| | 426 | |
|
| | 427 | | /// <summary> |
| | 428 | | /// Filters the episodes by season. |
| | 429 | | /// </summary> |
| | 430 | | /// <param name="episodes">The episodes.</param> |
| | 431 | | /// <param name="seasonNumber">The season.</param> |
| | 432 | | /// <param name="includeSpecials"><c>true</c> to include special, <c>false</c> to not.</param> |
| | 433 | | /// <returns>The set of episodes.</returns> |
| | 434 | | public static IEnumerable<Episode> FilterEpisodesBySeason(IEnumerable<Episode> episodes, int seasonNumber, bool |
| | 435 | | { |
| 0 | 436 | | if (!includeSpecials || seasonNumber < 1) |
| | 437 | | { |
| 0 | 438 | | return episodes.Where(i => (i.ParentIndexNumber ?? -1) == seasonNumber); |
| | 439 | | } |
| | 440 | |
|
| 0 | 441 | | return episodes.Where(i => |
| 0 | 442 | | { |
| 0 | 443 | | var episode = i; |
| 0 | 444 | |
|
| 0 | 445 | | if (episode is not null) |
| 0 | 446 | | { |
| 0 | 447 | | var currentSeasonNumber = episode.AiredSeasonNumber; |
| 0 | 448 | |
|
| 0 | 449 | | return currentSeasonNumber.HasValue && currentSeasonNumber.Value == seasonNumber; |
| 0 | 450 | | } |
| 0 | 451 | |
|
| 0 | 452 | | return false; |
| 0 | 453 | | }); |
| | 454 | | } |
| | 455 | |
|
| | 456 | | protected override bool GetBlockUnratedValue(User user) |
| | 457 | | { |
| 0 | 458 | | return user.GetPreferenceValues<UnratedItem>(PreferenceKind.BlockUnratedItems).Contains(UnratedItem.Series); |
| | 459 | | } |
| | 460 | |
|
| | 461 | | public override UnratedItem GetBlockUnratedType() |
| | 462 | | { |
| 0 | 463 | | return UnratedItem.Series; |
| | 464 | | } |
| | 465 | |
|
| | 466 | | public SeriesInfo GetLookupInfo() |
| | 467 | | { |
| 0 | 468 | | var info = GetItemLookupInfo<SeriesInfo>(); |
| | 469 | |
|
| 0 | 470 | | return info; |
| | 471 | | } |
| | 472 | |
|
| | 473 | | public override bool BeforeMetadataRefresh(bool replaceAllMetadata) |
| | 474 | | { |
| 0 | 475 | | var hasChanges = base.BeforeMetadataRefresh(replaceAllMetadata); |
| | 476 | |
|
| 0 | 477 | | if (!ProductionYear.HasValue) |
| | 478 | | { |
| 0 | 479 | | var info = LibraryManager.ParseName(Name); |
| | 480 | |
|
| 0 | 481 | | var yearInName = info.Year; |
| | 482 | |
|
| 0 | 483 | | if (yearInName.HasValue) |
| | 484 | | { |
| 0 | 485 | | ProductionYear = yearInName; |
| 0 | 486 | | hasChanges = true; |
| | 487 | | } |
| | 488 | | } |
| | 489 | |
|
| 0 | 490 | | return hasChanges; |
| | 491 | | } |
| | 492 | | } |
| | 493 | | } |