File tree Expand file tree Collapse file tree 10 files changed +26
-9
lines changed Expand file tree Collapse file tree 10 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { getFromContainer } from '@/infrastructure/container/container';
8
8
import { MovieMapper } from '@/resources/movie/mapper' ;
9
9
import { ShowMapper } from '@/resources/show/mapper' ;
10
10
import { MovieService } from '@/services/movie/movie' ;
11
- import { ShowService } from '@/services/show/show' ;
11
+ import { ShowService } from '@/services/show/show-service ' ;
12
12
13
13
const handleTv = async ( ctx : Context ) => {
14
14
const service = getFromContainer ( ShowService ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Context } from 'koa';
4
4
5
5
import { getFromContainer } from '@/infrastructure/container/container' ;
6
6
import { ShowMapper } from '@/resources/show/mapper' ;
7
- import { ShowService } from '@/services/show/show' ;
7
+ import { ShowService } from '@/services/show/show-service ' ;
8
8
import { discoverSeries , network } from '@/services/tmdb/show' ;
9
9
10
10
const lookupById = async ( ctx : Context ) => {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { CompanyService } from '@/services/company/company-service';
16
16
import { MovieService } from '@/services/movie/movie' ;
17
17
import { NetworkService } from '@/services/network/network-service' ;
18
18
import { PersonService } from '@/services/person/person-service' ;
19
- import { ShowService } from '@/services/show/show' ;
19
+ import { ShowService } from '@/services/show/show-service ' ;
20
20
21
21
@Service ( )
22
22
export class CacheService {
Original file line number Diff line number Diff line change @@ -38,7 +38,13 @@ export class CompanyService {
38
38
. map ( ( result ) => result . unwrap ( ) ) ;
39
39
} ,
40
40
) ;
41
- return companies . map ( ( company ) => CompanyEntity . create ( company ) ) ;
41
+ return companies . map ( ( company ) => {
42
+ this . logger . debug (
43
+ { companyId : company . provider . tmdbId } ,
44
+ `got company details` ,
45
+ ) ;
46
+ return CompanyEntity . create ( company ) ;
47
+ } ) ;
42
48
} catch ( error ) {
43
49
this . logger . error ( { error } , 'Error fetching companies' ) ;
44
50
return [ ] ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class MovieService {
78
78
const details = detailsResult . unwrap ( ) ;
79
79
const ratings = ratingProvider ?. isOk ( ) ? ratingProvider . unwrap ( ) : { } ;
80
80
const artwork = artworkResult ?. isOk ( ) ? artworkResult . unwrap ( ) : { } ;
81
- this . logger . debug ( `got movie details for ${ id } ` ) ;
81
+ this . logger . debug ( { movieId : id } , `got movie details` ) ;
82
82
return {
83
83
...details ,
84
84
artwork : {
Original file line number Diff line number Diff line change @@ -39,7 +39,13 @@ export class NetworkService {
39
39
. map ( ( result ) => result . unwrap ( ) ) ;
40
40
} ,
41
41
) ;
42
- return networks . map ( ( network ) => NetworkEntity . create ( network ) ) ;
42
+ return networks . map ( ( network ) => {
43
+ this . logger . debug (
44
+ { networkId : network . provider . tmdbId } ,
45
+ `got network details` ,
46
+ ) ;
47
+ return NetworkEntity . create ( network ) ;
48
+ } ) ;
43
49
} catch ( error ) {
44
50
this . logger . error ( { error } , 'Error fetching networks' ) ;
45
51
return [ ] ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
PersonTrendingProvider ,
13
13
} from '@/services/person/provider/provider' ;
14
14
import { GetDetailsOptions } from '@/services/person/types' ;
15
- import { ShowService } from '@/services/show/show' ;
15
+ import { ShowService } from '@/services/show/show-service ' ;
16
16
17
17
@Service ( )
18
18
export class PersonService {
@@ -67,6 +67,7 @@ export class PersonService {
67
67
) ,
68
68
] ) ;
69
69
}
70
+ this . logger . debug ( { personId : id } , `got person details` ) ;
70
71
return Some ( person ) ;
71
72
} catch ( error ) {
72
73
this . logger . error ( { error } , 'Error fetching person details' ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { ShowRepository } from '@/resources/show/repository';
15
15
import { MovieService } from '@/services/movie/movie' ;
16
16
import { ScannerProvider } from '@/services/scanner/provider' ;
17
17
import { scannerProviders } from '@/services/scanner/providers' ;
18
- import { ShowService } from '@/services/show/show' ;
18
+ import { ShowService } from '@/services/show/show-service ' ;
19
19
import { UserService } from '@/services/user/user' ;
20
20
21
21
@Service ( )
Original file line number Diff line number Diff line change 7
7
ShowTrendingProvider ,
8
8
} from '@/services/show/provider/provider' ;
9
9
import { TmdbShowProvider } from '@/services/show/provider/tmdb/tmdb' ;
10
- import { ShowService } from '@/services/show/show' ;
10
+ import { ShowService } from '@/services/show/show-service ' ;
11
11
12
12
export default ( builder : ContainerBuilder ) => {
13
13
builder . register ( ShowProvider ) . use ( TmdbShowProvider ) . asSingleton ( ) ;
Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ export class ShowService {
77
77
const artwork = artworkResult ?. isOk ( )
78
78
? artworkResult . unwrap ( )
79
79
: undefined ;
80
+ this . logger . debug (
81
+ { showId : id , seasons : details . seasons . length } ,
82
+ `got show details` ,
83
+ ) ;
80
84
return {
81
85
...details ,
82
86
artwork : {
You can’t perform that action at this time.
0 commit comments