pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

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

display season and episode on resume button

authored by

Aykhan and committed by
Pas
cf9503f4 a9a9cbf6

+25 -18
+25 -18
src/components/overlays/details/DetailsBody.tsx
··· 219 219 > 220 220 <Icon icon={Icons.PLAY} className="text-white" /> 221 221 <span className="text-white text-sm pr-1"> 222 - {data.type === "movie" 223 - ? !data.releaseDate || new Date(data.releaseDate) > new Date() 224 - ? t("media.unreleased") 222 + {showProgress && 223 + data.type === "show" && 224 + showProgress.season && 225 + showProgress.episode 226 + ? `${t("details.resume")} S${showProgress.season.number}:E${ 227 + showProgress.episode.number 228 + }` 229 + : data.type === "movie" 230 + ? !data.releaseDate || new Date(data.releaseDate) > new Date() 231 + ? t("media.unreleased") 232 + : showProgress 233 + ? t("details.resume") 234 + : t("details.play") 225 235 : showProgress 226 236 ? t("details.resume") 227 - : t("details.play") 228 - : showProgress 229 - ? t("details.resume") 230 - : t("details.play")} 237 + : t("details.play")} 231 238 </span> 232 239 </Button> 233 240 <div className="flex items-center gap-1 flex-shrink-0"> ··· 244 251 /> 245 252 </button> 246 253 )} 254 + <button 255 + type="button" 256 + onClick={onShareClick} 257 + className="p-2 opacity-75 transition-opacity duration-300 hover:scale-110 hover:cursor-pointer hover:opacity-95" 258 + title="Share" 259 + > 260 + <IconPatch 261 + icon={Icons.IOS_SHARE} 262 + className="transition-transform duration-300 hover:scale-110 hover:cursor-pointer" 263 + /> 264 + </button> 247 265 <MediaBookmarkButton 248 266 media={{ 249 267 id: data.id?.toString() || "", ··· 255 273 type: data.type || "movie", 256 274 }} 257 275 /> 258 - <button 259 - type="button" 260 - onClick={onShareClick} 261 - className="p-2 opacity-75 transition-opacity duration-300 hover:scale-110 hover:cursor-pointer hover:opacity-95" 262 - title="Share" 263 - > 264 - <IconPatch 265 - icon={Icons.IOS_SHARE} 266 - className="transition-transform duration-300 hover:scale-110 hover:cursor-pointer" 267 - /> 268 - </button> 269 276 </div> 270 277 </div> 271 278