fixes #1349 - Problem with Greek subtitle download
This commit is contained in:
parent
575ca7683c
commit
74b7a816f8
|
@ -222,6 +222,17 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
});
|
||||
}
|
||||
|
||||
private string NormalizeLanguage(string language)
|
||||
{
|
||||
// Problem with Greek subtitle download #1349
|
||||
if (string.Equals (language, "gre", StringComparison.OrdinalIgnoreCase)) {
|
||||
|
||||
return "ell";
|
||||
}
|
||||
|
||||
return language;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<RemoteSubtitleInfo>> Search(SubtitleSearchRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
var imdbIdText = request.GetProviderId(MetadataProviders.Imdb);
|
||||
|
@ -258,7 +269,7 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
|
||||
await Login(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
var subLanguageId = request.Language;
|
||||
var subLanguageId = NormalizeLanguage(request.Language);
|
||||
var hash = Utilities.ComputeHash(request.MediaPath);
|
||||
var fileInfo = new FileInfo(request.MediaPath);
|
||||
var movieByteSize = fileInfo.Length;
|
||||
|
|
Loading…
Reference in New Issue
Block a user