luscious_downloader: temporary fix for retrieving html

downloader.read_html() fails to get html for luscious link in issue #4379
This commit is contained in:
bog_4t 2022-02-05 00:55:10 -05:00
parent ff96316bef
commit 0c2a1248d7
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#coding:utf8
import downloader
import requests
from utils import Soup, Downloader, LazyUrl, urljoin, try_n, get_outdir, clean_title
import ree as re
import os
@ -49,7 +50,7 @@ class Downloader_luscious(Downloader):
url = fix_url(self.url)
for try_ in range(8):
try:
html = downloader.read_html(url)
html = requests.get(url).text
break
except Exception as e:
print(e)