YAMJ / yamj-v3

Main Project for YAMJ v3
11 stars 7 forks source link

filmography not scanned or stored if scanner.person=allocine #185

Closed jluc2808 closed 9 years ago

jluc2808 commented 9 years ago

[11:10:01] DEBUG org.yamj.core.service.metadata.online.OnlineScannerService - Person 173-'Jamel Debbouze', scanned OK [11:10:01] DEBUG org.yamj.core.service.metadata.MetadataScannerService - Updated person in database: 173-'Jamel Debbouze' [11:10:01] INFO org.yamj.core.service.metadata.online.OnlineScannerService - Scanning for information on person 170-'Alain Chabat' using allocine [11:10:01] DEBUG org.yamj.core.service.metadata.online.OnlineScannerService - Person 170-'Alain Chabat', scanned OK [11:10:01] DEBUG org.yamj.core.service.metadata.MetadataScannerService - Updated person in database: 170-'Alain Chabat' [11:10:04] DEBUG org.yamj.core.service.ScanningScheduler - Finished people data scanning [11:10:04] INFO org.yamj.core.service.ScanningScheduler - Found 2 filmography objects to process; scan with 1 threads [11:10:04] INFO org.yamj.core.service.metadata.online.OnlineScannerService - Scanning for filmography of person 173-'Jamel Debbouze' using allocine [11:10:05] DEBUG org.yamj.core.service.metadata.online.OnlineScannerService - Person filmography 173-'Jamel Debbouze', scanned OK [11:10:05] DEBUG org.yamj.core.service.metadata.MetadataScannerService - Updated person filmography in database: 173-'Jamel Debbouze' [11:10:05] INFO org.yamj.core.service.metadata.online.OnlineScannerService - Scanning for filmography of person 170-'Alain Chabat' using allocine [11:10:05] DEBUG org.yamj.core.service.metadata.online.OnlineScannerService - Person filmography 170-'Alain Chabat', scanned OK [11:10:06] DEBUG org.yamj.core.service.metadata.MetadataScannerService - Updated person filmography in database: 170-'Alain Chabat' [11:10:09] DEBUG org.yamj.core.service.ScanningScheduler - Finished filmography data scanning

But nothing is stored under participation

My setting : yamj3.sourcedb.scanner.person=allocine yamj3.sourcedb.scanner.person.alternate=tmdb allocine.person.filmography=true themoviedb.person.filmography=true

jluc2808 commented 9 years ago

new test: if i change the person scanner order to set tmdb 1rst then the filmography is performed ==> alternate isn't performed in the 1rst setting

jluc2808 commented 9 years ago

i confirm , if i set

yamj3.sourcedb.scanner.person=allocine yamj3.sourcedb.scanner.person.alternate=tmdb

filmography (participation) is empty

if i set yamj3.sourcedb.scanner.person=tmdb yamj3.sourcedb.scanner.person.alternate=allocine

filmography is stored with value, but the biography is in english

jluc2808 commented 9 years ago

i tried several config and update so i can confirm that filmography is never scrapped from allocine: tested with yamj3.sourcedb.scanner.person=allocine yamj3.sourcedb.scanner.person.alternate=tmdb allocine.person.filmography=true themoviedb.person.filmography=true

when i set the filmgraphy_status to UPDATED , the logs show :

Found 1 filmography objects to process; scan with 1 threads Scanning for filmography of person 5-'Doug Jones' using allocine IO download host: http://api.allocine.fr; rule: .*, maxRequests: 2 Person filmography 5-'Doug Jones', scanned OK Updated person filmography in database: 5-'Doug Jones' Finished filmography data scanning

there is no entries added in participation table and filmography_status is reset to DONE alternate parameter (tmdb) is not used and fillmography is left blank

modmax commented 9 years ago

Set following values in static properties: yamj3.sourcedb.scanner.filmography=allocine yamj3.sourcedb.scanner.filmography.alternate=tmdb

If allocine has no error but no film participations are found, then the scanner returns with NO_RESULT and the alternate scan is forced. The filmography_status of the person will then be NOTFOUND, cause the status is always set for themain scanner; the alternate scanner is just an enhancement and not relevant for the status.