diff --git a/pym/euscan/handlers/generic.py b/pym/euscan/handlers/generic.py index 76f598f..c1687c8 100644 --- a/pym/euscan/handlers/generic.py +++ b/pym/euscan/handlers/generic.py @@ -63,7 +63,7 @@ def scan_html(data, url, pattern): if href.startswith(url): href = href.replace(url, "", 1) - match = re.match(pattern, href, re.I) + match = re.search(pattern, href, re.I) if match: results.append( (".".join([x for x in match.groups() if x is not None]), diff --git a/pym/euscan/handlers/kde.py b/pym/euscan/handlers/kde.py index b789b88..101446e 100644 --- a/pym/euscan/handlers/kde.py +++ b/pym/euscan/handlers/kde.py @@ -19,7 +19,7 @@ def clean_results(results): return ret -def scan_url(pkg, url): +def scan_url(pkg, url, options): results = generic.scan(pkg.cpv, url) if generic.startswith('mirror://kde/unstable/'):