diff --git a/websites/H/HDrezka/metadata.json b/websites/H/HDrezka/metadata.json index b318175456c2..1891ac2ec460 100644 --- a/websites/H/HDrezka/metadata.json +++ b/websites/H/HDrezka/metadata.json @@ -12,9 +12,10 @@ }, "url": [ "rezka.ag", - "hdrezka.ag" + "hdrezka.ag", + "rezka-ua.org" ], - "version": "1.0.5", + "version": "1.0.6", "logo": "https://cdn.rcd.gg/PreMiD/websites/H/HDrezka/assets/logo.png", "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/H/HDrezka/assets/thumbnail.jpeg", "color": "#DA3D36", @@ -23,4 +24,4 @@ "video", "media" ] -} +} \ No newline at end of file diff --git a/websites/H/HDrezka/presence.ts b/websites/H/HDrezka/presence.ts index 3ac50f2c6c73..dc2cb39d0ead 100644 --- a/websites/H/HDrezka/presence.ts +++ b/websites/H/HDrezka/presence.ts @@ -17,7 +17,9 @@ presence.on('UpdateData', async () => { ? 'сериал' : contentType === 'cartoons' ? 'мультфильм' - : 'чего-то' + : contentType === "animation" + ? 'аниме' + : 'чего-то' if (document.location.pathname === '/') presenceData.details = 'На главной странице' @@ -26,9 +28,10 @@ presence.on('UpdateData', async () => { document.location.pathname === '/films' || document.location.pathname === '/series' || document.location.pathname === '/cartoons' - || document.location.pathname.match(/\/(films|series|cartoons)\//) + || document.location.pathname === '/animation' + || document.location.pathname.match(/\/(films|series|cartoons|animation)\//) ) { - if (document.location.pathname.match(/\/(films|series|cartoons)\/.+/)) { + if (document.location.pathname.match(/\/(films|series|cartoons|animation)\/.+/)) { presenceData.details = `Смотрит ${currentType}` presenceData.state = `${ document.querySelector('.b-post__title h1')?.textContent