Compare commits
2 Commits
6dab626084
...
21837c5335
Author | SHA1 | Date |
---|---|---|
Alexander Andreev | 21837c5335 | |
Alexander Andreev | b970973018 |
|
@ -4,8 +4,8 @@
|
|||
### Added
|
||||
- For 2ch.hk check for if a file is a sticker was added;
|
||||
- Encoding for `!op.txt` file was explicitly set to `utf-8`;
|
||||
- Handling of HTTP errors was added so now program won't crash if file doesn't
|
||||
exist or not accessible for any other reason;
|
||||
- Handling of HTTP errors and reset connection error was added so now program
|
||||
won't crash if file doesn't exist or not accessible for any other reason;
|
||||
- To a scraper was added matching of hashes of two files that happen to share
|
||||
same name and size, but hash reported by an imageboard is not the same as of
|
||||
a file. It results in excessive downloading and hash calculations. Hopefully,
|
||||
|
|
|
@ -106,3 +106,6 @@ class Scraper:
|
|||
remove(filepath)
|
||||
except HTTPError as e:
|
||||
print(e, f.download_url)
|
||||
except ConnectionResetError:
|
||||
print("Remote host reset connection for", f.download_url, \
|
||||
"Try again later.")
|
||||
|
|
Loading…
Reference in New Issue