This commit is contained in:
Theenoro
2026-02-26 09:34:55 +01:00
parent ff9864a1db
commit a6d8f3c2ee
6 changed files with 435 additions and 0 deletions

18
providers/coub.py Normal file
View File

@@ -0,0 +1,18 @@
from .base import EmbedProvider
class CoubProvider(EmbedProvider):
name = "coub"
pattern = r"\{\{COUB:([A-Za-z0-9]+)\}\}"
def replace(self, match):
coub_id = match.group(1)
embed_html = f'''
<iframe src="https://coub.com/embed/{coub_id}"
width="640"
height="480"
frameborder="0"
allowfullscreen>
</iframe>
'''
return self.wrap_template("coub", embed_html)