Extend CMS detection for Urwahl3000 theme (#96)
* Extend check for Urwahl3000 theme * Remove unused import
This commit is contained in:
parent
d0e3a4210f
commit
deff95306b
|
@ -3,8 +3,6 @@ Checks the 'generator' meta tag and page content properties
|
|||
to detect well-known content management systems, themes etc.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from checks.abstract_checker import AbstractChecker
|
||||
|
||||
class Checker(AbstractChecker):
|
||||
|
@ -74,7 +72,8 @@ class Checker(AbstractChecker):
|
|||
elif 'gruenes-internet.de' in page_content['content']:
|
||||
generator = 'wordpress-gruenes-internet'
|
||||
|
||||
elif 'Urwahl3000' in page_content['content']:
|
||||
elif ('Urwahl3000' in page_content['content'] or
|
||||
'/themes/urwahl3000' in page_content['content']):
|
||||
generator = 'wordpress-urwahl'
|
||||
|
||||
elif ('josephknowsbest' in page_content['content'] or
|
||||
|
|
Loading…
Reference in New Issue