View Single Post
Old Yesterday, 02:20 AM   #45
lktr45
Zealot
lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'lktr45 knows the difference between 'who' and 'whom'
 
Posts: 136
Karma: 10280
Join Date: Oct 2016
Device: none
Bonjour Louis Richard,
Quand tu auras le temps, peux-tu jeter un coup d'œil au plugin Babelio Notes qui ne fonctionne plus depuis un moment déjà.
unbreak51 t'as laissé un message, et pour ma part en tâtonnant, j'ai modifié le code de main.py avec un résultat satisfaisant.
Comme les modifications sont mineures, je te les propose ici :

Code:
rating_soup = soup.select_one('div[class="grosse_note"]').string
bbl_rating = float(rating_soup.text.strip().replace(',','.'))          
rating_cnt_soup = soup.select_one('span[itemprop="ratingCount"]').string
bbl_rating_cnt = int(rating_cnt_soup.text.strip())
remplace
Code:
rating_soup = soup.select_one('span[itemprop="aggregateRating"]').select_one('span[itemprop="ratingValue"]')
bbl_rating = float(rating_soup.text.strip())
rating_cnt_soup = soup.select_one('span[itemprop="aggregateRating"]').select_one('span[itemprop="ratingCount"]')
bbl_rating_cnt = int(rating_cnt_soup.text.strip())
lktr45 is offline   Reply With Quote