1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 01:27:00 +00:00

more media file extension cleanup

This commit is contained in:
Mark McDowall 2013-09-12 08:08:48 -07:00
parent 7c324b7cd2
commit 9d3bef982b

View file

@ -30,7 +30,6 @@ static MediaFileExtensions()
{ ".divx", Quality.SDTV },
{ ".xvid", Quality.SDTV },
{ ".bivx", Quality.SDTV },
{ ".vob", Quality.SDTV },
{ ".nrg", Quality.SDTV },
{ ".pva", Quality.SDTV },
{ ".wmv", Quality.SDTV },
@ -58,11 +57,14 @@ static MediaFileExtensions()
//DVD
{ ".img", Quality.DVD },
{ ".iso", Quality.DVD },
{ ".vob", Quality.DVD },
//HD
{ ".mkv", Quality.HDTV720p },
{ ".ts", Quality.HDTV720p },
{ ".m2ts", Quality.HDTV720p }
//Bluray
{ ".m2ts", Quality.Bluray720p }
};
}
@ -71,7 +73,7 @@ public static HashSet<String> Extensions
get { return new HashSet<String>(_fileExtensions.Keys); }
}
public static Quality FindQuality(string extension)
public static Quality GetQualityForExtension(string extension)
{
if (_fileExtensions.ContainsKey(extension))
{