View Single Post
Old 10-26-2023, 09:42 AM   #25
capichou
Junior Member
capichou began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Oct 2023
Device: Kobo Libra H2O
Quote:
Originally Posted by lrpirlet View Post
SVP rapporte les problèmes vus, si possible avec un log après avoir configuré babelio_db et avoir mis la verbosité du journal a 15.
Hello,

Je viens de faire la mise à jour... Ça a fonctionné pour quelques livres, mais ça me renvoie maintenant des résultats aberrants. Voici un log avec verbosité à 15 comme demandé :
Spoiler:


Running identify query with parameters:
{'title': 'Janua Vera', 'authors': ['Jean-Philippe Jaworski'], 'identifiers': {}, 'timeout': 30}
Using plugins: Babelio_db (0, 8, 5)
The log from individual plugins is below

****************************** Babelio_db (0, 8, 5) ******************************
Found 1 results
Downloading from Babelio_db took 3.093478202819824


---
Title : Le Café sans nom
Author(s) : Robert Seethaler
Publisher : Sabine Wespieser
Tags : Roman Étranger, Littérature Générale, Rentrée Littéraire 2023, Roman, Amitié, Quartier Populaire, Littérature, Café, Littérature Allemande, Vienne, Littérature Autrichienne, Après-Guerre
Languages : fr
Rating : 2
Published : 2023-01-06T22:00:00+00:00
Identifiers : isbn:9782848054926, babelio_id:Seethaler-Le-Cafe-sans-nom/1525266
Comments : b'<html>\n <body>\n <div>\n <p>\n Référence:\n <a href="https://www.babelio.com/livres/Seethaler-Le-Cafe-sans-nom/1525266">\n https://www.babelio.com/livres/Seeth...-nom/1525266\n </a>\n </p>\n </div>\n </body>\n</html>\n<html>\n <body>\n <div>\n <hr/>\n <p style="font-weight: bold; font-size: 18px">\n Popularité\n </p>\n <hr/>\n </div>\n </body>\n</html>\n<html>\n <body>\n <div>\n <p>\n Le nombre de cotations est\n <strong>\n 28\n </strong>\n , avec une note moyenne de\n <strong>\n 4.0\n </strong>\n sur 5\n </p>\n </div>\n </body>\n</html>\n<html>\n <body>\n <div>\n <hr/>\n <p style="font-weight: bold; font-size: 18px">\n Résumé\n </p>\n <hr/>\n </div>\n </body>\n</html>\n<html>\n <head>\n </head>\n <body>\n En cette année 1966, Robert Simon décide de prendre un nouveau départ, la trentaine venue. Employé journalier au marché des Carmélites, dans un faubourg populaire de Vienne, il réalise son vieux rêve et redonne vie au café laissé à l\'abandon devant lequel il passe chaque jour. C\'est avec sa coutumière attention aux détails que le grand écrivain Autrichien évoque les destinées modestes de ceux qui deviendront les habitués du Café sans nom.\n <br/>\n Depuis Le Tabac Tresniek (2014), Seethaler n\'avait plus mis en scène sa ville natale : ses descriptions de Vienne renaissant de ses cendres vingt ans après la fin de la Deuxième guerre mondiale ont ici une tendresse et une saveur particulières.\n <br/>\n </body>\n</html>'
-+-+-+-+-+-+-+-+-+-+ Entry point +-+-+-+-+-+-+-+-+-+-
self.dgb_lvl : 15
self.with_cover : True
self.with_pretty_comments : True
self.with_detailed_rating : True
self.tag_genre : 12
self.tag_theme : 12
self.tag_lieu : 12
self.tag_quand : 12

In identify(self, log, result_queue, abort, title=.., authors=.., identifiers=.., timeout=30)

title : Janua Vera
identifiers : {}
authors : ['Jean-Philippe Jaworski'] <class 'list'>
Pas de résultat avec babelio_id ou avec l'ISBN, on recherche les auteurs et le titre.

in create_query()

title : Janua Vera
authors : ['Jean-Philippe Jaworski']

In ret_clean_txt(self, log, text, who='')

text : Jean-Philippe Jaworski
cleaned text : jean philippe jaworski
return text from ret_clean_txt

In ret_clean_txt(self, log, text, who='')

text : Janua Vera
cleaned text : janua vera
return text from ret_clean_txt
return url from create_query : https://www.babelio.com/recherche
return rkt from create_query : {'Recherche': 'jean philippe jaworski janua vera'}
In ret_soup(log, dbg_lvl, br, url, rkt={'Recherche': 'jean philippe jaworski janua vera'}, who=)

URL request time : 15:39:02
br : <Browser (not visiting a URL)>
url : https://www.babelio.com/recherche
rkt : {'Recherche': 'jean philippe jaworski janua vera'}
Accessing url : https://www.babelio.com/recherche
search parameters : {'Recherche': 'jean philippe jaworski janua vera'}
formated parameters : Recherche=jean+philippe+jaworski+janua+vera
In urlopen_with_retry(log, dbg_lvl, br, url, rkt=b'Recherche=jean+philippe+jaworski+janua+vera' , who=)

(urlopen_with_retry) sr.getcode() : 200
url_vrai : https://www.babelio.com/recherche
sr.info() : Server: nginx
Date: Thu, 26 Oct 2023 13:39:01 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
Set-Cookie: p=BE; expires=Fri, 25-Oct-2024 13:39:01 GMT; Max-Age=31536000
Set-Cookie: disclaimer=1; expires=Fri, 25-Oct-2024 13:39:01 GMT; Max-Age=31536000
Cache-Control: no-cache
Expires: Thu, 26 Oct 2023 13:39:00 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 : Janua Vera
orig_authors : ['jean philippe jaworski']
display each item found
<div class="cr_meta">
<div class="livres_txt">
<a class="titre1" href="/livres/Seethaler-Le-Cafe-sans-nom/1525266">
Le Café sans nom
</a>
</div>
<div class="sgst_auteur_txt" style="font-size: .65rem;">
<a class="libelle" href="/auteur/Robert-Seethaler/329203">
Robert Seethaler
</a>
<br/>
4.06★

(148)
</div>
</div>


In ret_clean_txt(self, log, text, who='')

text : Le Café sans nom
cleaned text : le cafe sans nom
return text from ret_clean_txt

In ret_clean_txt(self, log, text, who='')

text : Janua Vera
cleaned text : janua vera
return text from ret_clean_txt

In ret_clean_txt(self, log, text, who='')

text : Robert Seethaler
cleaned text : robert seethaler
return text from ret_clean_txt

In ret_clean_txt(self, log, text, who='')

text : jean philippe jaworski
cleaned text : jean philippe jaworski
return text from ret_clean_txt
titre : Le Café sans nom, auteur : Robert Seethaler, sous_url : /livres/Seethaler-Le-Cafe-sans-nom/1525266
nombre de références trouvées dans babelio 1
nombre de matches : 1
matches at return time :
https://www.babelio.com/livres/Seeth...ns-nom/1525266
matches : ['https://www.babelio.com/livres/Seethaler-Le-Cafe-sans-nom/1525266']
[worker 0] entry time : Thu Oct 26 15:39:02 2023
[worker 0] self.url : https://www.babelio.com/livres/Seeth...ns-nom/1525266
[worker 0] self.relevance : 0
[worker 0] self.plugin : <calibre_plugins.babelio_db.Babelio object at 0x000001DAE861C550>
[worker 0] self.dbg_lvl : 15
[worker 0] self.timeout : 20
[worker 0] self.with_cover : True
[worker 0] self.with_pretty_comments : True
[worker 0] self.with_detailed_rating : True
[worker 0] self.tag_genre : 12
[worker 0] self.tag_theme : 12
[worker 0] self.tag_lieu : 12
[worker 0] self.tag_quand : 12
submit time : Thu Oct 26 15:39:02 2023

[worker 0] in run(self)

[worker 0] in get_details(self)
[worker 0] in get details(), start time : 1698327542.6075132
[worker 0] calling ret_soup(log, dbg_lvl, br, url, rkt=None, who='')
[worker 0] self.url : https://www.babelio.com/livres/Seeth...ns-nom/1525266
[worker 0] In ret_soup(log, dbg_lvl, br, url, rkt=None, who=[worker 0])

[worker 0] URL request time : 15:39:03
[worker 0] br : <Browser (not visiting a URL)>
[worker 0] url : https://www.babelio.com/livres/Seeth...ns-nom/1525266
[worker 0] rkt : None
[worker 0] Accessing url : https://www.babelio.com/livres/Seeth...ns-nom/1525266
[worker 0] In urlopen_with_retry(log, dbg_lvl, br, url, rkt=None, who=[worker 0])

[worker 0] (urlopen_with_retry) sr.getcode() : 200
[worker 0] url_vrai : https://www.babelio.com/livres/Seeth...ns-nom/1525266
[worker 0] sr.info() : Server: nginx
Date: Thu, 26 Oct 2023 13:39:03 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
Cache-Control: no-cache
Expires: Thu, 26 Oct 2023 13:39:02 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.4092881679534912

[worker 0] in parse_bbl_id
[worker 0] bbl_id : Seethaler-Le-Cafe-sans-nom/1525266
[worker 0] Temps après parse_bbl_id() ... : 1.4092881679534912

[worker 0] in parse_details(self, soup)
[worker 0] in parse_details(), new start : 1698327544.0168014

[worker 0] in parse_authors(self, soup)
[worker 0] return bbl_authors ['Robert Seethaler']
[worker 0] Temps après parse_authors() ... : 0.0025281906127929688

[worker 0] in parse_title_series(self, soup, bbl_authors)
[worker 0] bbl_title : Le Café sans nom - Robert Seethaler
[worker 0] name : Robert Seethaler
[worker 0] bbl_title : Le Café sans nom
[worker 0] Temps après parse_title_series() ... : 0.010026693344116211

[worker 0] in parse_meta(self, soup)
[worker 0] bbl_publisher processed : Sabine Wespieser
[worker 0] bbl_isbn processed : 9782848054926
[worker 0] bbl_pubdate processed : 2023-01-07 00:00:00
[worker 0] parse_meta() returns bbl_isbn, bbl_publisher, bbl_pubdate : 9782848054926 Sabine Wespieser 2023-01-07 00:00:00
[worker 0] Temps après parse_meta() ... : 0.01202702522277832

[worker 0] in parse_rating(self, soup)
[worker 0] parse_rating() returns bbl_rating : 4.0, bbl_rating_cnt : 28
[worker 0] Temps après parse_rating() ... : 0.014027118682861328

[worker 0] in parse_tags(self, soup)
[worker 0] parse_tags() return bbl_tags ['Roman Étranger', 'Littérature Générale', 'Rentrée Littéraire 2023', 'Roman', 'Amitié', 'Quartier Populaire', 'Littérature', 'Café', 'Littérature Allemande', 'Vienne', 'Littérature Autrichienne', 'Après-Guerre']
[worker 0] Temps après parse_tags() ... : 0.01706409454345703

[worker 0] in parse_cover(self, soup)
[worker 0] parse_cover() returns bbl_cover : https://www.babelio.com/couv/CVT_Le-...s-nom_6541.jpg
[worker 0] Temps après parse_cover() ... : 0.017557859420776367

[worker 0] in parse_comments(self, soup)
[worker 0] onclick : javascript:voir_plus_a('#d_bio',1,1398241);
[worker 0] calling ret_soup(log, dbg_lvl, br, url, rkt=rkt, who=self.who
[worker 0] url : https://www.babelio.com/aj_voir_plus_a.php
[worker 0] rkt : {'type': '1', 'id_obj': '1398241'}
[worker 0] In ret_soup(log, dbg_lvl, br, url, rkt={'type': '1', 'id_obj': '1398241'}, who=[worker 0])

[worker 0] URL request time : 15:39:05
[worker 0] br : <Browser visiting https://www.babelio.com/livres/Seethaler-Le-Cafe-sans-nom/1525266>
[worker 0] url : https://www.babelio.com/aj_voir_plus_a.php
[worker 0] rkt : {'type': '1', 'id_obj': '1398241'}
[worker 0] Accessing url : https://www.babelio.com/aj_voir_plus_a.php
[worker 0] search parameters : {'type': '1', 'id_obj': '1398241'}
[worker 0] formated parameters : type=1&id_obj=1398241
[worker 0] In urlopen_with_retry(log, dbg_lvl, br, url, rkt=b'type=1&id_obj=1398241', who=[worker 0])

[worker 0] (urlopen_with_retry) sr.getcode() : 200
[worker 0] url_vrai : https://www.babelio.com/aj_voir_plus_a.php
[worker 0] sr.info() : Server: nginx
Date: Thu, 26 Oct 2023 13:39:04 GMT
Content-Type: text/html; charset=ISO-8859-1
Connection: close
Cache-Control: no-cache
Expires: Thu, 26 Oct 2023 13:39:03 GMT
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN


[worker 0] Temps après parse_comments() ... : 1.2789580821990967

timing of the accesses to Babelio for this book
When : Thu Oct 26 15:39:02 2023; Who : [__init__]; Where : https://www.babelio.com/recherche
When : Thu Oct 26 15:39:04 2023; Who : [worker 0]; Where : https://www.babelio.com/livres/Seeth...ns-nom/1525266
When : Thu Oct 26 15:39:05 2023; Who : [worker 0]; Where : https://www.babelio.com/aj_voir_plus_a.php

************************************************** ******************************
The identify phase took 3.25 seconds
The longest time (3.093478) was taken by: Babelio_db
Merging results from different sources
We have 1 merged results, merging took: 0.00 seconds



En tous cas merci... Le plugin est au top.

Last edited by theducks; 10-26-2023 at 10:22 AM. Reason: SPOILER LOG files
capichou is offline   Reply With Quote