feat: add series

This commit is contained in:
2023-08-07 14:44:04 +02:00
parent 990db3ae50
commit 7390d35a98
16 changed files with 275 additions and 23 deletions

View File

@ -45,6 +45,8 @@ export const addMovieInfos: MenuEntry = {
visible: () => {
const loc = globalThis["location"];
if (!getCookie("session_cookie")) return false;
return loc?.pathname?.includes("movie") && !loc.pathname.endsWith("movies");
return (loc?.pathname?.includes("movie") &&
!loc.pathname.endsWith("movies")) ||
(loc?.pathname?.includes("series") && !loc.pathname.endsWith("series"));
},
};