Skip to content

Commit

Permalink
feat(movie-web): add working instances and watching status (#8607)
Browse files Browse the repository at this point in the history
* sudo-flix is gone, added more from the main instance page and sudo-flix's instances page

* update instances, use Watching instead of playing and movie episode to the end instead of start of the status

---------

Signed-off-by: myysty <[email protected]>
Co-authored-by: Dark_Ville <[email protected]>
  • Loading branch information
myysty and Dark_Ville authored Jul 28, 2024
1 parent 5671d22 commit 2d2e8fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
26 changes: 14 additions & 12 deletions websites/M/movie-web/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,32 @@
"watch.qtchaos.de",
"mw.lonelil.com",
"mw.lonelil.ru",
"mv-web.netlify.app",
"bmov.vercel.app",
"stream.thehairy.me",
"scootydooter.vercel.app",
"movie-web-me.vercel.app",
"sudo-flix.lol",
"movie.exorbgn.net",
"www.vidbinge.com",
"movies.levrx.lol",
"www.essential.wtf",
"streamerflix.xyz",
"envyflix.xyz",
"pseudo-flix.pro",
"movie-web.x"
],
"regExp": "(dev[.])?(movie-web[.]app)",
"matches": [
"*://watch.qtchaos.de/*",
"*://mw.lonelil.com/*",
"*://mw.lonelil.ru/*",
"*://mv-web.netlify.app/*",
"*://bmov.vercel.app/*",
"*://stream.thehairy.me/*",
"*://scootydooter.vercel.app/*",
"*://movie-web-me.vercel.app/*",
"*://sudo-flix.lol/*",
"*://movie.exorbgn.net/*",
"*://www.vidbinge.com/*",
"*://movies.levrx.lol/*",
"*://www.essential.wtf/*",
"*://streamerflix.xyz/*",
"*://envyflix.xyz/*",
"*://pseudo-flix.pro/*",
"*://movie-web.x/*"
],
"version": "1.0.9",
"version": "1.1.1",
"logo": "https://cdn.rcd.gg/PreMiD/websites/M/movie-web/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/M/movie-web/assets/thumbnail.png",
"color": "#533670",
Expand Down Expand Up @@ -102,4 +104,4 @@
"value": true
}
]
}
}
4 changes: 3 additions & 1 deletion websites/M/movie-web/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ presence.on("UpdateData", async () => {
presenceData: PresenceData = {
largeImageKey:
"https://cdn.rcd.gg/PreMiD/websites/M/movie-web/assets/logo.png",
type: ActivityType.Watching,
};

if (pathname === "" || pathname.startsWith("/search"))
Expand Down Expand Up @@ -96,9 +97,10 @@ presence.on("UpdateData", async () => {
}

const title = `${meta.title} (${meta.year})`;
presenceData.name = title;

if (meta.type === "show" && episode && season)
presenceData.details = `S${season.number}E${episode.number}${title}`;
presenceData.details = `Season ${season.number}, Episode ${episode.number}`;
else presenceData.details = title;

if (controls.isLoading) {
Expand Down

0 comments on commit 2d2e8fb

Please sign in to comment.