mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
fixed quality parse bug
This commit is contained in:
parent
500e9af6c3
commit
bbdad5844f
@ -91,6 +91,9 @@ public void file_path_parse(string path, int season, int episode)
|
|||||||
[Row("WEEDS.S03E01-06.DUAL.BDRip.XviD.AC3.-HELLYWOOD.avi", QualityTypes.DVD)]
|
[Row("WEEDS.S03E01-06.DUAL.BDRip.XviD.AC3.-HELLYWOOD.avi", QualityTypes.DVD)]
|
||||||
[Row("Law & Order: Special Victims Unit - 11x11 - Quickie", QualityTypes.Unknown)]
|
[Row("Law & Order: Special Victims Unit - 11x11 - Quickie", QualityTypes.Unknown)]
|
||||||
[Row("(<a href=\"http://www.newzbin.com/browse/post/6076286/nzb/\">NZB</a>)", QualityTypes.Unknown)]
|
[Row("(<a href=\"http://www.newzbin.com/browse/post/6076286/nzb/\">NZB</a>)", QualityTypes.Unknown)]
|
||||||
|
[Row("S07E23 - [HDTV].mkv ", QualityTypes.HDTV)]
|
||||||
|
[Row("S07E23.mkv ", QualityTypes.HDTV)]
|
||||||
|
[Row("S07E23 .avi ", QualityTypes.SDTV)]
|
||||||
public void quality_parse(string postTitle, object quality)
|
public void quality_parse(string postTitle, object quality)
|
||||||
{
|
{
|
||||||
var result = Parser.ParseQuality(postTitle);
|
var result = Parser.ParseQuality(postTitle);
|
||||||
|
@ -205,7 +205,7 @@ internal static QualityTypes ParseQuality(string name)
|
|||||||
Logger.Trace("Trying to parse quality for {0}", name);
|
Logger.Trace("Trying to parse quality for {0}", name);
|
||||||
|
|
||||||
var result = QualityTypes.Unknown;
|
var result = QualityTypes.Unknown;
|
||||||
name = name.ToLowerInvariant();
|
name = name.ToLowerInvariant().Trim();
|
||||||
|
|
||||||
if (name.Contains("dvd") || name.Contains("bdrip") || name.Contains("brrip"))
|
if (name.Contains("dvd") || name.Contains("bdrip") || name.Contains("brrip"))
|
||||||
{
|
{
|
||||||
@ -268,7 +268,8 @@ internal static QualityTypes ParseQuality(string name)
|
|||||||
//path characters.
|
//path characters.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (name.Contains("hdtv"))
|
|
||||||
|
if (result == QualityTypes.Unknown && name.Contains("hdtv"))
|
||||||
{
|
{
|
||||||
return QualityTypes.SDTV;
|
return QualityTypes.SDTV;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user