| @@ -18,16 +18,14 @@ def fetch_all_id(): | |||||
| print(rows[i][0]) | print(rows[i][0]) | ||||
| update_manga(rows[i][0]) | update_manga(rows[i][0]) | ||||
| print("----- FIN -----") | print("----- FIN -----") | ||||
| def update_manga(id): | |||||
| def update_chap_manga(id): | |||||
| url = get_url(id) | url = get_url(id) | ||||
| # On récupère l'URL | # On récupère l'URL | ||||
| cursor.execute("SELECT chap FROM manga WHERE id = '%s'" % id) | cursor.execute("SELECT chap FROM manga WHERE id = '%s'" % id) | ||||
| rows = cursor.fetchall() | rows = cursor.fetchall() | ||||
| # Last_chapt est le dernier chapitre sauvegardé | # Last_chapt est le dernier chapitre sauvegardé | ||||
| last_chapt = str(rows[0][0]) | last_chapt = str(rows[0][0]) | ||||
| new_chapt = get_last_chap(url) | new_chapt = get_last_chap(url) | ||||
| print("Mise a jour de %s" % get_title(url)) | print("Mise a jour de %s" % get_title(url)) | ||||
| print("Le dernier chapitre est %s" % last_chapt) | print("Le dernier chapitre est %s" % last_chapt) | ||||