2026.01.02 09:05:15 (cachyos.cmoser.eu)

This commit is contained in:
2026-01-02 09:05:15 +01:00
parent 57df278ace
commit ac19ba3f7c
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@@ -443,4 +443,6 @@ pip-selfcheck.json
django_project/local/
.data
.static
.media
db.sqlite

View File

@@ -404,7 +404,6 @@ def render_youtube_video(tag_name: str, value, options, parent, context):
div_classes = []
div_styles = []
if 'width' in options:
_w = options['width']
if _w.endswith('px') or _w.endswith('em') or _w.endswith('rem'):
@@ -476,7 +475,7 @@ def render_youtube_video(tag_name: str, value, options, parent, context):
div_style = ""
if settings.USE_BOOTSTRAP:
return f"""<div class=""{' '.join(div_classes)}" {div_style}>
<iframe class="{' '.join(classes)}" src="https://www.youtube.com/embgit ed/{options[tag_name]}?rel=0" allowfullscreen></iframe>
<iframe class="{' '.join(classes)}" src="https://www.youtube.com/embed/{options[tag_name]}?rel=0" allowfullscreen></iframe>
</div>""" # noqa: E501
else:
return f'<div {div_style}><iframe src="https://www.youtube.com/embed/{options[tag_name]}?rel=0" allowfullscreen></iframe></div>' # noqa: E501