limit open subtitle formats
This commit is contained in:
parent
4f4bb2ebfb
commit
6dc4f3ddf1
|
@ -205,7 +205,7 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
public async Task<IEnumerable<NameIdPair>> GetSupportedLanguages(CancellationToken cancellationToken)
|
||||
{
|
||||
await Login(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
|
||||
var result = OpenSubtitles.GetSubLanguages("en");
|
||||
if (!(result is MethodResponseGetSubLanguages))
|
||||
{
|
||||
|
@ -321,7 +321,8 @@ namespace MediaBrowser.Providers.Subtitles
|
|||
Name = i.SubFileName,
|
||||
DateCreated = DateTime.Parse(i.SubAddDate, _usCulture),
|
||||
IsHashMatch = i.MovieHash == hasCopy
|
||||
});
|
||||
|
||||
}).Where(i => !string.Equals(i.Format, "sub", StringComparison.OrdinalIgnoreCase) && !string.Equals(i.Format, "idx", StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
Loading…
Reference in New Issue
Block a user