Skip to content

Commit efebfc0

Browse files
youtube parameters modification
1 parent 259f15a commit efebfc0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ def handle_starttag(self, tag: str, attrs: dict[str, str]):
206206
else:
207207
raise ValueError(
208208
"must have one of 'short', 'id', 'list' attribute")
209+
# add global attributes
210+
url += "&cc_load_policy=1&cc_lang_pref=en&rel=0&enablejsapi=1"
209211
attrs = {
210-
"style": ("margin-left:auto;margin-right:auto;"
212+
"style": ("display:block;margin-left:auto;margin-right:auto;"
211213
f"aspect-ratio:{ratio};width:{width};"
212214
"min-width:500px;"
213215
"max-width:1000px"),

docs/2023/not-your-daddys-boost-converter/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/2024/depends-on-your-definition-of-viral/index.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy