mirror of
https://github.com/kemayo/leech
synced 2025-12-15 21:05:59 +01:00
Let the spacebattles handler suck in sufficientvelocity as well
This commit is contained in:
parent
61e0ad411f
commit
43f0ec9fef
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from bs4 import BeautifulSoup
|
|||
|
||||
|
||||
def match(url):
|
||||
return re.match(r'^https?://forums.spacebattles.com/threads/.*\d+/?.*', url)
|
||||
return re.match(r'^https?://forums.(?:spacebattles|sufficientvelocity).com/threads/.*\d+/?.*', url)
|
||||
|
||||
def extract(url, fetch):
|
||||
page = fetch(url)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from bs4 import BeautifulSoup
|
|||
|
||||
|
||||
def match(url):
|
||||
return re.match(r'^https?://forums.spacebattles.com/posts/\d+/?.*', url)
|
||||
return re.match(r'^https?://forums.(?:spacebattles|sufficientvelocity).com/posts/\d+/?.*', url)
|
||||
|
||||
def extract(url, fetch):
|
||||
page = fetch(url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue