diff --git a/core/scrapertools.py b/core/scrapertools.py index 669eb0eb..0c7ac130 100644 --- a/core/scrapertools.py +++ b/core/scrapertools.py @@ -41,7 +41,7 @@ def printMatches(matches): def find_single_match(data, patron, index=0): try: if index == 0: - matches = re.search(patron, data, flags=re.DOTALL) + matches = re.search(patron, data, flags=re.DOTALL).groups() else: matches = re.findall(patron, data, flags=re.DOTALL) return matches[index]