mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
changed # of download logic
This commit is contained in:
parent
ed923045ad
commit
d93dbb103b
1 changed files with 2 additions and 1 deletions
|
|
@ -106,6 +106,7 @@ class C2CScrape:
|
|||
time.sleep(random.randint(3,7))
|
||||
|
||||
# Update last download info
|
||||
self.episodes_downloaded += 1
|
||||
self.last_download = date
|
||||
self.last_download_link = url
|
||||
|
||||
|
|
@ -145,7 +146,7 @@ class C2CScrape:
|
|||
download_url = self.create_download_link()
|
||||
if download_url:
|
||||
self.download_episode(download_url)
|
||||
self.episodes_downloaded += 1
|
||||
|
||||
except requests.RequestException as e:
|
||||
print(f'Error processing episode: {e}')
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue