Skip to content

Commit 3ee6bae

Browse files
committed
Add video links to Invidious (closes #48)
1 parent 55bd017 commit 3ee6bae

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/components/SharedLinks.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ const byLabel = resolve({ en: 'by', ru: 'от' }, locale);
5959
<li>
6060
&ldquo;{resolve(item.text, locale)}&rdquo;
6161
{item.author && <> &mdash; {item.author}</>}
62-
{' '}&mdash; <a href={item.url} target="_blank">{item.url} ↗</a>
62+
{' '}&mdash; <a href={`https://www.youtube.com/watch?v=${item.ytid}`} target="_blank">YouTube ↗</a>
63+
{' '}| <a href={`https://redirect.invidious.io/watch?v=${item.ytid}`} target="_blank">Invidious ↗</a>
6364
</li>
6465
))}
6566
</ul>

src/data/links/videos.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ heading:
2121
items:
2222
- text: "Google: 'Your $1000 phone needs our permission to install apps now'"
2323
author: "Louis Rossmann"
24-
url: "https://youtu.be/QBEKlIV_70E"
24+
ytid: "QBEKlIV_70E"
2525
- text: "F-Droid Will Die in 2026 Unless We Act Now"
2626
author: "Techlore"
27-
url: "https://youtu.be/wRvqdLsnsKY"
27+
ytid: "wRvqdLsnsKY"
2828
- text: "Google is Removing Sideloading"
2929
author: "LMG Clips"
30-
url: "https://youtu.be/-R76VJtTDJ8"
30+
ytid: "-R76VJtTDJ8"
3131
- text: "Google's changes to sideloading could end F-Droid"
3232
author: "Linux Weekly News"
33-
url: "https://youtu.be/iMqpm2Ahmt0"
33+
ytid: "iMqpm2Ahmt0"
3434
- text: "Is F-Droid in Trouble? Google Developer Verification"
35-
url: "https://youtu.be/-SOOoQWv4kk"
35+
ytid: "-SOOoQWv4kk"
3636
- text: "Google is Applefying Android: The End of Openness"
3737
author: "ChiefGyk3D"
38-
url: "https://youtu.be/WFOPzixHoLY"
38+
ytid: "WFOPzixHoLY"

0 commit comments

Comments
 (0)