1
0
Fork 0
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:
David Lynch 2015-06-30 00:28:33 -05:00
parent 61e0ad411f
commit 43f0ec9fef
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)