Bonjour Irpirlet,
Tout d'abord merci pour ce plugin qui m'a vraiment permis d'uniformiser les metadatas de l’ensemble de ma bibliothèque virtuelle. Il a fonctionné pour l'immense majorité des livres de celle-ci, à quelques exceptions près. Par exemple avec le livre "photos volées" de "Dominique Fabre".
Le log, de ce que j'en comprends, me semble ok, c'est à dire qu'il me trouve bien sur babelio la page qui lui est consacré, et sans qu'il y ait aucun autre choix possible, mais il ne me remplis pas la fiche du livre et me sort une erreur "Impossible de trouver un livre correspondant, bla, bla bla..."? Voici le log en question :
Code:
Running identify query with parameters:
{'title': 'Photos Volées', 'authors': ['Dominique Fabre'], 'identifiers': {}, 'timeout': 30}
Using plugins: Babelio_db (0, 8, 0)
The log from individual plugins is below
****************************** Babelio_db (0, 8, 0) ******************************
Found 0 results
Downloading from Babelio_db took 2.183969020843506
-+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+-
self.dgb_lvl : 15
self.with_cover : False
self.with_pretty_comments : False
self.with_detailed_rating : False
In identify(self, log, result_queue, abort, title=.., authors=.., identifiers=.., timeout=30)
title : Photos Volées
identifiers : {}
authors : ['Dominique Fabre'] <class 'list'>
Pas de résultat avec babelio_id ou avec l'ISBN, on recherche les auteurs et le titre.
in create_query()
title : Photos Volées
authors : ['Dominique Fabre']
In ret_clean_txt(self, log, text, who='')
text : Dominique Fabre
cleaned text : dominique fabre
return text from ret_clean_txt
In ret_clean_txt(self, log, text, who='')
text : Photos Volées
cleaned text : photos volees
return text from ret_clean_txt
return query from create_query : http://www.babelio.com/resrecherche....es&pageN=1
In ret_soup(log, dbg_lvl, br, url, rkt=none, who=''
URL request time : 19:05:14
br : <Browser (not visiting a URL)>
url : http://www.babelio.com/resrecherche....es&pageN=1
rkt : None
Accessing url : http://www.babelio.com/resrecherche....es&pageN=1
In urlopen_with_retry(log, dbg_lvl, br, url, rkt, who='')
(urlopen_with_retry) sr.getcode() : 200
url_vrai : https://www.babelio.com/resrecherche...es&pageN=1
sr.info() : Server: nginx
Date: Tue, 27 Jun 2023 17:05:16 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
Set-Cookie: p=FR; expires=Wed, 26-Jun-2024 17:05:16 GMT; Max-Age=31536000
Set-Cookie: disclaimer=1; expires=Wed, 26-Jun-2024 17:05:16 GMT; Max-Age=31536000
Cache-Control: no-cache
Expires: Tue, 27 Jun 2023 17:05:15 GMT
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
content-type: text/html; charset=iso-8859-1
content-language: fr-FR
cache-control: no-cache
pragma: no-cache
expires: -1
x-ua-compatible: IE=edge
In parse_search_results(self, log, orig_title, orig_authors, soup, br)
orig_title : Photos Volées
orig_authors : ['dominique fabre']
In ret_clean_txt(self, log, text, who='')
text : Photos volées
cleaned text : photos volees
return text from ret_clean_txt
In ret_clean_txt(self, log, text, who='')
text : Photos Volées
cleaned text : photos volees
return text from ret_clean_txt
In ret_clean_txt(self, log, text, who='')
text : Dominique Fabre
cleaned text : dominique fabre
return text from ret_clean_txt
In ret_clean_txt(self, log, text, who='')
text : dominique fabre
cleaned text : dominique fabre
return text from ret_clean_txt
nombre de références trouvées dans babelio 1
nombre de matches : 1
matches at return time :
https://www.babelio.com/livres/Fabre...-volees/615123
matches : ['https://www.babelio.com/livres/Fabre-Photos-volees/615123']
[worker 0] entry time : Tue Jun 27 19:05:15 2023
[worker 0] self.url : https://www.babelio.com/livres/Fabre...-volees/615123
[worker 0] self.relevance : 0
[worker 0] self.plugin : <calibre_plugins.babelio_db.Babelio object at 0x000001CCA725F2B0>
[worker 0] self.dbg_lvl : 15
[worker 0] self.timeout : 20
[worker 0] self.with_cover : False
[worker 0] self.with_pretty_comments : False
[worker 0] self.with_detailed_rating : False
submit time : Tue Jun 27 19:05:15 2023
[worker 0] in run(self)
[worker 0] in get_details(self)
[worker 0] in get details(), start time : 1687885515.4202292
[worker 0] calling ret_soup(log, dbg_lvl, br, url, rkt=None, who='')
[worker 0] self.url : https://www.babelio.com/livres/Fabre...-volees/615123
[worker 0] In ret_soup(log, dbg_lvl, br, url, rkt=none, who=''
[worker 0] URL request time : 19:05:16
[worker 0] br : <Browser (not visiting a URL)>
[worker 0] url : https://www.babelio.com/livres/Fabre...-volees/615123
[worker 0] rkt : None
[worker 0] Accessing url : https://www.babelio.com/livres/Fabre...-volees/615123
[worker 0] In urlopen_with_retry(log, dbg_lvl, br, url, rkt, who='')
[worker 0] (urlopen_with_retry) sr.getcode() : 200
[worker 0] url_vrai : https://www.babelio.com/livres/Fabre...-volees/615123
[worker 0] sr.info() : Server: nginx
Date: Tue, 27 Jun 2023 17:05:17 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
Cache-Control: no-cache
Expires: Tue, 27 Jun 2023 17:05:16 GMT
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
content-type: text/html; charset=iso-8859-1
content-language: fr-FR
cache-control: no-cache
pragma: no-cache
expires: -1
x-ua-compatible: IE=edge
[worker 0] Temps après ret_soup()... : 1.5022366046905518
[worker 0] in parse_bbl_id
[worker 0] bbl_id : Fabre-Photos-volees/615123
[worker 0] Temps après parse_bbl_id() ... : 1.5022366046905518
[worker 0] in parse_details(self, soup)
[worker 0] in parse_details(), new start : 1687885516.9224658
[worker 0] in parse_authors(self, soup)
[worker 0] return bbl_authors ['Dominique Fabre']
[worker 0] Temps après parse_authors() ... : 0.001985788345336914
[worker 0] in parse_title_series(self, soup, bbl_authors)
[worker 0] bbl_title : Photos volées - Dominique Fabre
[worker 0] name : Dominique Fabre
[worker 0] bbl_title : Photos volées
[worker 0] Temps après parse_title_series() ... : 0.0074956417083740234
[worker 0] in parse_meta(self, soup)
[worker 0] bbl_publisher processed : Editions de l'Olivier
[worker 0] bbl_isbn processed : 9782823600711
[worker 0] bbl_pubdate processed : 2014-01-21 00:00:00
[worker 0] parse_meta() returns bbl_isbn, bbl_publisher, bbl_pubdate : 9782823600711 Editions de l'Olivier 2014-01-21 00:00:00
[worker 0] Temps après parse_meta() ... : 0.009495019912719727
[worker 0] in parse_rating(self, soup)
[worker 0] parse_rating() returns bbl_rating : 3.21, bbl_rating_cnt : 38
[worker 0] Temps après parse_rating() ... : 0.01151585578918457
[worker 0] in parse_tags(self, soup)
[worker 0] parse_tags() return bbl_tags ['Roman', 'Senior', 'Solitude', 'Mélancolie', 'Vieillesse', 'Nostalgie', 'Détail', 'Littérature Adulte', 'Amitié', 'Chômage', 'Amour', 'Photographie', 'Photos', 'Divorce', 'Littérature Française', 'Rentrée Littéraire 2014', 'Contemporain']
[worker 0] Temps après parse_tags() ... : 0.014503240585327148
Téléchargement de la couverture désactivé
[worker 0] Temps après parse_cover() ... : 0.014503240585327148
[worker 0] in parse_comments(self, soup)
[worker 0] with_pretty_comments : False
get_details failed for url: 'https://www.babelio.com/livres/Fabre-Photos-volees/615123'
Traceback (most recent call last):
File "calibre_plugins.babelio_db.worker", line 68, in run
File "calibre_plugins.babelio_db.worker", line 103, in get_details
File "calibre_plugins.babelio_db.worker", line 231, in parse_details
File "bs4\element.py", line 1613, in encode
File "bs4\element.py", line 1677, in decode
TypeError: unsupported operand type(s) for -: 'str' and 'int'
timing of the accesses to Babelio for this book
When : Tue Jun 27 19:05:15 2023; Who : [__init__]; Where : https://www.babelio.com/resrecherche...es&pageN=1
When : Tue Jun 27 19:05:16 2023; Who : [worker 0]; Where : https://www.babelio.com/livres/Fabre...-volees/615123
********************************************************************************
The identify phase took 2.24 seconds
The longest time (2.183969) was taken by: Babelio_db
Merging results from different sources
We have 0 merged results, merging took: 0.00 seconds
J'ai mis l'url
https://www.babelio.com/livres/Fabre...-volees/615123 dans la partie Id pour avoir le babelio_id, donc babelio_id:Fabre-Photos-volees/615123 , et là aussi il me trouve rien du tout ?.
Donc je sèche un peu et si tu as l'occasion de me filer un coup de main. Merci pour ton retour.