Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/e1de291f8c3c9f44f2cfa43aff8a8586c4fb677a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
15 additions and
4 deletions
@ -10,14 +10,14 @@ define(['app', 'Cells/NzbDroneCell'], function () {
this . $el . empty ( ) ;
var airDateField = this . column . get ( 'airDate' ) || 'airDate' ;
var seasonFi l ed = this . column . get ( 'seasonNumber' ) || 'seasonNumber' ;
var episodeFi l ed = this . column . get ( 'episodes' ) || 'episodeNumber' ;
var seasonFi el d = this . column . get ( 'seasonNumber' ) || 'seasonNumber' ;
var episodeFi el d = this . column . get ( 'episodes' ) || 'episodeNumber' ;
if ( this . cellValue ) {
var airDate = this . cellValue . get ( airDateField ) ;
var seasonNumber = this . cellValue . get ( seasonFi l ed) ;
var episodes = this . cellValue . get ( episodeFi l ed) ;
var seasonNumber = this . cellValue . get ( seasonFi el d) ;
var episodes = this . cellValue . get ( episodeFi el d) ;
var result = 'Unknown' ;
@ -4,6 +4,7 @@ define(['app', 'Series/SeriesModel'], function () {
mutators : {
paddedEpisodeNumber : function ( ) {
var test = this . get ( 'episodeNumber' ) ;
return this . get ( 'episodeNumber' ) . pad ( 2 ) ;
} ,
day : function ( ) {
@ -64,6 +65,16 @@ define(['app', 'Series/SeriesModel'], function () {
toJSON : function ( ) {
var json = _ . clone ( this . attributes ) ;
_ . each ( this . mutators , _ . bind ( function ( mutator , name ) {
// check if we have some getter mutations
if ( _ . isObject ( this . mutators [ name ] ) === true && _ . isFunction ( this . mutators [ name ] . get ) ) {
json [ name ] = _ . bind ( this . mutators [ name ] . get , this ) ( ) ;
} else {
json [ name ] = _ . bind ( this . mutators [ name ] , this ) ( ) ;
}
} , this ) ) ;
json . series = this . get ( 'series' ) . toJSON ( ) ;
return json ;