@@ -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,
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user