[common] add __str__ method for Extractor class

This commit is contained in:
Mike Fährmann
2026-02-04 08:41:45 +01:00
parent cbf8ed1be9
commit f688c59f8d

View File

@@ -74,6 +74,9 @@ class Extractor():
self._cfgpath = ("extractor", self.category, self.subcategory)
self._parentdir = ""
def __str__(self):
return f"{self.__class__.__name__} <{self.url}>"
@classmethod
def from_url(cls, url):
if isinstance(cls.pattern, str):