Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/182743e65357b81fd0842c8ce6efb777a79d829c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
29 additions and
5 deletions
@ -73,14 +73,26 @@ namespace NzbDrone.Api.ClientSchema
if ( propertyInfo . PropertyType = = typeof ( Int32 ) )
{
var intValue = Convert . ToInt32 ( field . Value ) ;
propertyInfo . SetValue ( target , intValue , null ) ;
var value = Convert . ToInt32 ( field . Value ) ;
propertyInfo . SetValue ( target , value , null ) ;
}
if ( propertyInfo . PropertyType = = typeof ( Int64 ) )
{
var value = Convert . ToInt64 ( field . Value ) ;
propertyInfo . SetValue ( target , value , null ) ;
}
else if ( propertyInfo . PropertyType = = typeof ( Nullable < Int32 > ) )
{
var intValue = field . Value . ToString ( ) . ParseInt32 ( ) ;
propertyInfo . SetValue ( target , intValue , null ) ;
var value = field . Value . ToString ( ) . ParseInt32 ( ) ;
propertyInfo . SetValue ( target , value , null ) ;
}
else if ( propertyInfo . PropertyType = = typeof ( Nullable < Int64 > ) )
{
var value = field . Value . ToString ( ) . ParseInt64 ( ) ;
propertyInfo . SetValue ( target , value , null ) ;
}
else
@ -15,5 +15,17 @@ namespace NzbDrone.Common
return null ;
}
public static Nullable < long > ParseInt64 ( this string source )
{
Int64 result = 0 ;
if ( Int64 . TryParse ( source , out result ) )
{
return result ;
}
return null ;
}
}
}
@ -13,6 +13,6 @@ namespace NzbDrone.Core.Notifications.PushBullet
}
}
public string ApiKey { get ; set ; }
public int DeviceId { get ; set ; }
public long DeviceId { get ; set ; }
}
}