Fix youtube presence
Build presences / build (push) Successful in 33s

This commit is contained in:
hibna
2026-04-26 02:03:30 +03:00
parent e3b81e2ed7
commit 499c9d9ed5
2 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -2,10 +2,13 @@
"id": "youtube", "id": "youtube",
"name": "YouTube", "name": "YouTube",
"description": "Shows the video you're watching on YouTube as a Source rich presence.", "description": "Shows the video you're watching on YouTube as a Source rich presence.",
"version": "1.0.0", "version": "1.0.1",
"author": "hibna", "author": "hibna",
"match": [ "match": [
"https://www.youtube.com/*", "https://www.youtube.com/*",
"https://youtube.com/*",
"https://m.youtube.com/*",
"https://youtu.be/*",
"https://music.youtube.com/*" "https://music.youtube.com/*"
], ],
"tickInterval": 1000, "tickInterval": 1000,
+7 -1
View File
@@ -22,7 +22,13 @@ function readChannel(): string | null {
} }
export default definePresence({ export default definePresence({
match: ["https://www.youtube.com/*", "https://music.youtube.com/*"], match: [
"https://www.youtube.com/*",
"https://youtube.com/*",
"https://m.youtube.com/*",
"https://youtu.be/*",
"https://music.youtube.com/*",
],
tickInterval: 1000, tickInterval: 1000,
tick(ctx) { tick(ctx) {
const video = findVideo(); const video = findVideo();