Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/5bf56ffca358782ff1b207b9c684f1a7aa222546
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
30 additions and
8 deletions
@ -105,16 +105,19 @@ namespace NzbDrone.Core.Providers.Indexer
if ( currentResult ! = null )
{
var quality = Parser . ParseQuality ( item . Summary . Text ) ;
currentResult . Quality = quality ;
var languageString = Regex . Match ( item . Summary . Text , @"Language - \w*" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Language = Parser . ParseLanguage ( languageString ) ;
var sizeString = Regex . Match ( item . Summary . Text , @"\(Size: \d*\,?\d+\.\d{1,2}\w{2}\)" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Size = Parser . GetReportSize ( sizeString ) ;
var dateString = Regex . Match ( item . Summary . Text ,
@"(?:\<li\>PostDate\:\s)(?<date>.+?(AM|PM))(?:\s[a-zA-Z]+)(?:\<\/li\>)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) . Groups [ "date" ] . Value ;
currentResult . Age = DateTime . Today . Subtract ( DateTime . Parse ( dateString ) ) . Days ;
}
return currentResult ;
}
@ -80,8 +80,13 @@ namespace NzbDrone.Core.Providers.Indexer
if ( currentResult ! = null )
{
var sizeString = Regex . Match ( item . Summary . Text , @">\d+\.\d{1,2} \w{2}</a>" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Size = Parser . GetReportSize ( sizeString ) ;
var dateString = Regex . Match ( item . Summary . Text ,
@"(?:\<pubDate\>)(?<date>.+?)(?:\<\/pubDate\>)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) . Groups [ "date" ] . Value ;
currentResult . Age = DateTime . Today . Subtract ( DateTime . Parse ( dateString ) ) . Days ;
}
return currentResult ;
}
@ -106,8 +106,13 @@ namespace NzbDrone.Core.Providers.Indexer
if ( currentResult ! = null )
{
var sizeString = Regex . Match ( item . Summary . Text , @"<b>Size:</b> \d+\.\d{1,2} \w{2}<br />" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Size = Parser . GetReportSize ( sizeString ) ;
var dateString = Regex . Match ( item . Summary . Text ,
@"(?:\<b\>Added\:\<\/b\>)(?<date>.+?)(?:\<br\s\/\>)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) . Groups [ "date" ] . Value ;
currentResult . Age = DateTime . Today . Subtract ( DateTime . Parse ( dateString ) ) . Days ;
}
return currentResult ;
}
@ -93,7 +93,6 @@ namespace NzbDrone.Core.Providers.Indexer
get { return "Nzbs.org" ; }
}
protected override string NzbDownloadUrl ( SyndicationItem item )
{
return item . Id ;
@ -104,8 +103,13 @@ namespace NzbDrone.Core.Providers.Indexer
if ( currentResult ! = null )
{
var sizeString = Regex . Match ( item . Summary . Text , @">\d+\.\d{1,2} \w{2}</a>" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Size = Parser . GetReportSize ( sizeString ) ;
var dateString = Regex . Match ( item . Summary . Text ,
@"(?:\<b\>Posted\:\<\/b\>\s)(?<date>.+?)(?:\s[a-zA-Z]+)(?:\<br\s\/\>)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) . Groups [ "date" ] . Value ;
currentResult . Age = DateTime . Today . Subtract ( DateTime . Parse ( dateString ) ) . Days ;
}
return currentResult ;
}
@ -75,8 +75,13 @@ namespace NzbDrone.Core.Providers.Indexer
if ( currentResult ! = null )
{
var sizeString = Regex . Match ( item . Summary . Text , @"\d+\.\d{1,2} \w{3}" , RegexOptions . IgnoreCase ) . Value ;
currentResult . Size = Parser . GetReportSize ( sizeString ) ;
var dateString = Regex . Match ( item . Summary . Text ,
@"(?:\<pubDate\>)(?<date>.+?)(?:\<\/pubDate\>)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) . Groups [ "date" ] . Value ;
currentResult . Age = DateTime . Today . Subtract ( DateTime . Parse ( dateString ) ) . Days ;
}
return currentResult ;
}