Releases: sky-cake/Ritual
Releases · sky-cake/Ritual
2.0.2
v1.0.2
-
Address <br/>
-
Add config
ensure_all_files_downloaded# If new posts are added to the database and Ritual is interrupted before their media is downloaded, # it's likely that some media will be missed when you restart Ritual, resulting in gaps of posts with no media. # Setting this to True ensures that all media (according to the per-board download configs below) is fetched # by verifying each post's media file on disk. # This incurs a minimal CPU cost (os.path.isfile() is cheap), so the default is True. ensure_all_files_downloaded = True
v1.0.1
v1.0.0
With the recent updates to Ritual, it's time to starting documenting and tagging releases.
What's new:
- Only insert new posts from threads.
- Before entire threads were continuously shoved into sqlite with
on conflicthandling unique id collisions.
- Before entire threads were continuously shoved into sqlite with
- Reduced RAM usage.
- Better log messages.
- Persistent thread-last-modified cache.
- Utilizing
last_threadsin catalog responses, resulting in fewer requests than previous releases. - Then there are config changes. We don't hard code URLs anymore, and we support custom headers. See below.
You'll need to update configs for this release. In configs.py, between database = make_path() and logger_name = '', overwrite everything with,
headers = None
# headers = {'User-Agent', ''}
# 4chan API data should html unescaped before writes i.e. unescape_data_b4_db_write = True
# The goal here is to persist data that is not html escaped
unescape_data_b4_db_write = True
## 4chan
url_catalog = "https://a.4cdn.org/{board}/catalog.json"
url_thread = "https://a.4cdn.org/{board}/thread/{thread_id}.json"
url_full_media = "https://i.4cdn.org/{board}/{image_id}{ext}" # str or None
url_thumbnail = "https://i.4cdn.org/{board}/{image_id}s.jpg" # str or None
## lainchan
# url_full_media = "https://lainchan.org/{board}/src/{image_id}{ext}"
# url_thumbnail = None
# url_catalog = "https://lainchan.org/{board}/catalog.json"
# url_thread = "https://lainchan.org/{board}/res/{thread_id}.json"