A personal media tracker built on the AT Protocol opnshelf.xyz
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fix lint web

+29 -12
+17 -9
apps/web/src/routes/shows.$showId.$title.seasons.$seasonNumber.episodes.$episodeNumber.tsx
··· 77 77 showName && episodeName 78 78 ? `${showName}: ${episodeName} | OpnShelf` 79 79 : "Episode | OpnShelf"; 80 - const posterUrl = 81 - episode?.still_path 82 - ? `https://image.tmdb.org/t/p/w780${episode.still_path}` 83 - : show?.poster_path 84 - ? `https://image.tmdb.org/t/p/w780${show.poster_path}` 85 - : null; 80 + const posterUrl = episode?.still_path 81 + ? `https://image.tmdb.org/t/p/w780${episode.still_path}` 82 + : show?.poster_path 83 + ? `https://image.tmdb.org/t/p/w780${show.poster_path}` 84 + : null; 86 85 const url = typeof window !== "undefined" ? window.location.href : ""; 87 86 88 87 return { ··· 90 89 { title }, 91 90 { 92 91 name: "description", 93 - content: episode?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 92 + content: 93 + episode?.overview?.slice(0, 160) || 94 + show?.overview?.slice(0, 160) || 95 + "", 94 96 }, 95 97 { property: "og:title", content: title }, 96 98 { 97 99 property: "og:description", 98 - content: episode?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 100 + content: 101 + episode?.overview?.slice(0, 160) || 102 + show?.overview?.slice(0, 160) || 103 + "", 99 104 }, 100 105 { property: "og:type", content: "video.episode" }, 101 106 { property: "og:url", content: url }, ··· 106 111 { name: "twitter:title", content: title }, 107 112 { 108 113 name: "twitter:description", 109 - content: episode?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 114 + content: 115 + episode?.overview?.slice(0, 160) || 116 + show?.overview?.slice(0, 160) || 117 + "", 110 118 }, 111 119 ...(posterUrl ? [{ name: "twitter:image", content: posterUrl }] : []), 112 120 { name: "twitter:url", content: url },
+12 -3
apps/web/src/routes/shows.$showId.$title.seasons.$seasonNumber.tsx
··· 80 80 { title }, 81 81 { 82 82 name: "description", 83 - content: season?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 83 + content: 84 + season?.overview?.slice(0, 160) || 85 + show?.overview?.slice(0, 160) || 86 + "", 84 87 }, 85 88 { property: "og:title", content: title }, 86 89 { 87 90 property: "og:description", 88 - content: season?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 91 + content: 92 + season?.overview?.slice(0, 160) || 93 + show?.overview?.slice(0, 160) || 94 + "", 89 95 }, 90 96 { property: "og:type", content: "video.tv" }, 91 97 { property: "og:url", content: url }, ··· 96 102 { name: "twitter:title", content: title }, 97 103 { 98 104 name: "twitter:description", 99 - content: season?.overview?.slice(0, 160) || show?.overview?.slice(0, 160) || "", 105 + content: 106 + season?.overview?.slice(0, 160) || 107 + show?.overview?.slice(0, 160) || 108 + "", 100 109 }, 101 110 ...(posterUrl ? [{ name: "twitter:image", content: posterUrl }] : []), 102 111 { name: "twitter:url", content: url },