Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/a2d129116827c01b80691c6a910da11449f1109a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
12 additions and
1 deletions
@ -78,6 +78,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Ricardo Arjona - APNEA (Single 2014) (320 kbps)", null, 0)]
[TestCase("Kehlani - SweetSexySavage (Deluxe Edition) (2017) 320", null, 0)]
[TestCase("Anderson Paak - Malibu (320)(2016)", null, 0)]
[TestCase("Zeynep_Erbay-Flashlights_On_Love-WEB-2022-BABAS", null, 0)]
[TestCase("", "MPEG Version 1 Audio, Layer 3", 320)]
public void should_parse_mp3_320_quality ( string title , string desc , int bitrate )
{
@ -43,6 +43,9 @@ namespace NzbDrone.Core.Parser
private static readonly Regex CodecRegex = new Regex ( @"\b(?:(?<MP1>MPEG Version \d(.5)? Audio, Layer 1|MP1)|(?<MP2>MPEG Version \d(.5)? Audio, Layer 2|MP2)|(?<MP3VBR>MP3.*VBR|MPEG Version \d(.5)? Audio, Layer 3 vbr)|(?<MP3CBR>MP3|MPEG Version \d(.5)? Audio, Layer 3)|(?<FLAC>(web)?flac)|(?<WAVPACK>wavpack|wv)|(?<ALAC>alac)|(?<WMA>WMA\d?)|(?<WAV>WAV|PCM)|(?<AAC>M4A|M4P|M4B|AAC|mp4a|MPEG-4 Audio(?!.*alac))|(?<OGG>OGG|OGA|Vorbis))\b|(?<APE>monkey's audio|[\[|\(].*\bape\b.*[\]|\)])|(?<OPUS>Opus Version \d(.5)? Audio|[\[|\(].*\bopus\b.*[\]|\)])" ,
RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
private static readonly Regex WebRegex = new Regex ( @"\b(?<web>WEB)(?:\b|$|[ .])" ,
RegexOptions . Compiled | RegexOptions . IgnoreCase ) ;
public static QualityModel ParseQuality ( string name , string desc , int fileBitrate , int fileSampleSize = 0 )
{
Logger . Debug ( "Trying to parse quality for {0}" , name ) ;
@ -219,7 +222,14 @@ namespace NzbDrone.Core.Parser
}
else
{
result . Quality = Quality . Unknown ;
if ( WebRegex . IsMatch ( normalizedName ) )
{
result . Quality = Quality . MP3_320 ;
}
else
{
result . Quality = Quality . Unknown ;
}
}
break ;