telethon_archiver working for multiple media

This commit is contained in:
msramalho
2022-12-14 15:37:34 +00:00
parent b3860cfec1
commit 53ffa2d4ae
5 changed files with 125 additions and 31 deletions

View File

@@ -29,8 +29,3 @@ class Step(ABC):
print(sub.name, "CALLING NEW")
return sub(config)
raise ClassFoundException(f"Unable to initialize STEP with {name=}")
def get_url(self, item: Metadata) -> str:
url = item.get("url")
assert type(url) is str and len(url) > 0
return url