mirror of
https://github.com/simon987/chan_feed.git
synced 2025-04-10 14:06:42 +00:00
add awsumchan
This commit is contained in:
parent
da1e584cf4
commit
94d15faccc
16
chan.py
16
chan.py
@ -159,6 +159,9 @@ class JsonChanHelper(ChanHelper):
|
||||
def parse_threads_list(r):
|
||||
try:
|
||||
j = json.loads(r.text)
|
||||
if len(j) == 0 or "threads" not in j[0]:
|
||||
logger.warning("No threads in response for %s: %s" % (r.url, r.text,))
|
||||
return [], None
|
||||
except JSONDecodeError:
|
||||
logger.warning("JSONDecodeError for %s:" % (r.url,))
|
||||
logger.warning(r.text)
|
||||
@ -432,5 +435,16 @@ CHANS = {
|
||||
"b", "g", "s", "v"
|
||||
),
|
||||
rps=1 / 300
|
||||
)
|
||||
),
|
||||
"awsumchan": JsonChanHelper(
|
||||
14,
|
||||
"https://awsumchan.org/",
|
||||
"https://awsumchan.org/",
|
||||
"/res/",
|
||||
"/src/",
|
||||
(
|
||||
"an", "aw", "cr", "fi", "ra", "au", "ga", "he", "sp"
|
||||
),
|
||||
rps=1 / 600
|
||||
),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user