diff --git a/websites/L/Lunar/metadata.json b/websites/L/Lunar/metadata.json deleted file mode 100644 index 4c3c63ada1ba..000000000000 --- a/websites/L/Lunar/metadata.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "$schema": "https://schemas.premid.app/metadata/1.17", - "apiVersion": 1, - "author": { - "name": "alex", - "id": "1253394430652846151" - }, - "service": "Lunar", - "description": { - "en": "Lunar is a free platform to stream anime and read manga and light novels, with community features, playlists and more." - }, - "url": "lunaranime.ru", - "regExp": "^https?[:][/][/](www[.])?lunaranime[.]ru[/]", - "version": "1.0.1", - "logo": "https://cdn.rcd.gg/PreMiD/websites/L/Lunar/assets/logo.png", - "thumbnail": "https://cdn.rcd.gg/PreMiD/websites/L/Lunar/assets/thumbnail.png", - "color": "#895AF6", - "category": "anime", - "tags": [ - "anime", - "manga", - "novel", - "streaming", - "reading" - ], - "settings": [ - { - "id": "privacy", - "title": "Privacy Mode", - "icon": "fad fa-user-secret", - "value": false - }, - { - "id": "browsingActivity", - "if": { - "privacy": false - }, - "title": "Show Browsing Activity", - "icon": "fad fa-book-reader", - "value": true - }, - { - "id": "cover", - "if": { - "privacy": false - }, - "title": "Show Cover", - "icon": "fad fa-images", - "value": true - }, - { - "id": "timestamps", - "if": { - "privacy": false - }, - "title": "Show Timestamps", - "icon": "fad fa-stopwatch", - "value": true - }, - { - "id": "buttons", - "if": { - "privacy": false - }, - "title": "Show Buttons", - "icon": "fad fa-compress-arrows-alt", - "value": true - }, - { - "id": "hideWhenPaused", - "title": "Hide When Paused", - "icon": "fad fa-pause", - "value": false - } - ] -} diff --git a/websites/L/Lunar/presence.ts b/websites/L/Lunar/presence.ts index cce9a3350104..8d00b3d6040d 100644 --- a/websites/L/Lunar/presence.ts +++ b/websites/L/Lunar/presence.ts @@ -160,6 +160,7 @@ presence.on('UpdateData', async () => { updateTimestamp('privacy') presence.setActivity({ largeImageKey: ActivityAssets.Logo, + largeImageText: 'lunarx.to', details: 'Browsing Lunar', startTimestamp: currentTimestamp, }) @@ -183,7 +184,10 @@ presence.on('UpdateData', async () => { details: activity.title, state: activity.meta, largeImageKey, - largeImageText: activity.title, + largeImageText: + largeImageKey === ActivityAssets.Logo + ? 'lunarx.to' + : activity.title, smallImageKey: Assets.Play, smallImageText: 'Watching', startTimestamp: currentTimestamp, @@ -221,7 +225,7 @@ presence.on('UpdateData', async () => { { label: 'Watch on Lunar', url: href }, { label: 'View Anime', - url: `https://lunaranime.ru/anime/${activity.id}`, + url: `https://lunarx.to/anime/${activity.id}`, }, ] } @@ -234,6 +238,10 @@ presence.on('UpdateData', async () => { details: activity.title, state: activity.meta, largeImageKey, + largeImageText: + largeImageKey === ActivityAssets.Logo + ? 'lunarx.to' + : activity.title, smallImageKey: Assets.Reading, smallImageText: activity.type === 'manga' ? 'Reading Manga' : 'Reading Novel', @@ -245,7 +253,7 @@ presence.on('UpdateData', async () => { { label: 'Read on Lunar', url: href }, { label: activity.type === 'manga' ? 'View Series' : 'View Novel', - url: `https://lunaranime.ru/${activity.type}/${activity.id}`, + url: `https://lunarx.to/${activity.type}/${activity.id}`, }, ] } @@ -261,6 +269,7 @@ presence.on('UpdateData', async () => { const presenceData: PresenceData = { largeImageKey: ActivityAssets.Logo, + largeImageText: 'lunarx.to', details: 'Browsing Lunar', } @@ -316,8 +325,10 @@ presence.on('UpdateData', async () => { presenceData.state = pageTitle() ?? titleFromSlug(slug) presenceData.smallImageKey = Assets.Viewing const detailCover = pageCover() - if (ready_to_use_posters && cover && detailCover) + if (ready_to_use_posters && cover && detailCover) { presenceData.largeImageKey = detailCover + presenceData.largeImageText = pageTitle() ?? titleFromSlug(slug) + } if (buttons) { presenceData.buttons = [ { label: 'View on Lunar', url: href },