Skip to content

Commit 988c6f7

Browse files
committed
v0.9.9 added support for 4channel through input regex, 4cdn retained so html processor did not need regex changed
1 parent 6a54d1b commit 988c6f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

basc_archiver/sites/fourchan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
THREAD_CHILD_FOUND = '{timestamp} Child thread {site} / {board} / {thread_id} found and now being downloaded'
2626

2727
# finding board name/thread id
28-
THREAD_REGEX = re.compile(r"""https?://(?:boards\.)?4chan\.org/([0-9a-zA-Z]+)/(?:res|thread)/([0-9]+)""")
28+
THREAD_REGEX = re.compile(r"""https?://(?:boards\.)?4chan(?:nel)?\.org/([0-9a-zA-Z]+)/(?:res|thread)/([0-9]+)""")
2929

3030
# top level domains
3131
FOURCHAN_BOARDS = 'boards.4chan.org'
3232
FOURCHAN = '4chan.org'
33+
FOURCHANNEL = '4channel.org'
34+
FOURCHANNEL_BOARDS = 'boards.4channel.org'
3335
FOURCHAN_CDN = '4cdn.org'
3436

3537
# new urls

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
setup(
2323
name='BASC-Archiver',
24-
version='0.9.8',
24+
version='0.9.9',
2525
description='Makes a complete archive of imageboard threads including images, HTML, and JSON.',
2626
long_description=long_description,
2727
author='Antonizoon Overtwater <[email protected]>, Daniel Oaks <[email protected]>',

0 commit comments

Comments
 (0)