mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Add language names as hints in TMDbSettings
Add Romanian in TMDb Language Codes Move DateTime.TryParse to if condition in TMDbParser
This commit is contained in:
parent
b8abafd72f
commit
5ec7e86488
@ -1,30 +1,58 @@
|
||||
using NzbDrone.Core.Annotations;
|
||||
|
||||
namespace NzbDrone.Core.ImportLists.TMDb
|
||||
{
|
||||
public enum TMDbLanguageCodes
|
||||
{
|
||||
[FieldOption(Hint = "Danish")]
|
||||
da,
|
||||
[FieldOption(Hint = "Dutch")]
|
||||
nl,
|
||||
[FieldOption(Hint = "English")]
|
||||
en,
|
||||
[FieldOption(Hint = "Finnish")]
|
||||
fi,
|
||||
[FieldOption(Hint = "French")]
|
||||
fr,
|
||||
[FieldOption(Hint = "German")]
|
||||
de,
|
||||
[FieldOption(Hint = "Greek")]
|
||||
el,
|
||||
[FieldOption(Hint = "Hungarian")]
|
||||
hu,
|
||||
[FieldOption(Hint = "Italian")]
|
||||
it,
|
||||
[FieldOption(Hint = "Japanese")]
|
||||
ja,
|
||||
[FieldOption(Hint = "Korean")]
|
||||
ko,
|
||||
[FieldOption(Hint = "Norwegian")]
|
||||
no,
|
||||
[FieldOption(Hint = "Polish")]
|
||||
pl,
|
||||
[FieldOption(Hint = "Portuguese")]
|
||||
pt,
|
||||
[FieldOption(Hint = "Russian")]
|
||||
ru,
|
||||
[FieldOption(Hint = "Spanish")]
|
||||
es,
|
||||
[FieldOption(Hint = "Swedish")]
|
||||
sv,
|
||||
[FieldOption(Hint = "Turkish")]
|
||||
tr,
|
||||
[FieldOption(Hint = "Vietnamese")]
|
||||
vi,
|
||||
[FieldOption(Hint = "Chinese")]
|
||||
zh,
|
||||
[FieldOption(Hint = "Tamil")]
|
||||
ta,
|
||||
[FieldOption(Hint = "Telugu")]
|
||||
te,
|
||||
[FieldOption(Hint = "Hindi")]
|
||||
hi,
|
||||
bn
|
||||
[FieldOption(Hint = "Bengali")]
|
||||
bn,
|
||||
[FieldOption(Hint = "Romanian")]
|
||||
ro
|
||||
}
|
||||
}
|
||||
|
@ -39,9 +39,8 @@ protected ImportListMovie MapListMovie(MovieResultResource movieResult)
|
||||
Title = movieResult.Title,
|
||||
};
|
||||
|
||||
if (movieResult.ReleaseDate.IsNotNullOrWhiteSpace())
|
||||
if (movieResult.ReleaseDate.IsNotNullOrWhiteSpace() && DateTime.TryParse(movieResult.ReleaseDate, out var releaseDate))
|
||||
{
|
||||
DateTime.TryParse(movieResult.ReleaseDate, out var releaseDate);
|
||||
movie.Year = releaseDate.Year;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user