fix ricerca altadefinizioneclick e registrazione hdmario

This commit is contained in:
marco
2020-11-19 19:21:55 +01:00
parent 005d11bb38
commit 43504da41d
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -77,7 +77,8 @@ def registerOrLogin(page_url):
if reg['email'] == mailbox.address:
mail = mailbox.waitForMail()
if mail:
checkUrl = scrapertools.find_single_match(mail.body, 'href="([^"]+)">Premi qui')
checkUrl = scrapertools.find_single_match(mail.body, 'href="([^"]+)">Premi qui').replace(r'\/', '/')
logger.debug('CheckURL: ' + checkUrl)
httptools.downloadpage(checkUrl)
config.set_setting('username', mailbox.address, server='hdmario')
config.set_setting('password', randPsw, server='hdmario')