Add playlist playback support #173

This commit is contained in:
Prayag Prajapati committed 2023-09-20 23:28:26 +05:30
1 parent 3d87404bbf
commit 7650b49a6b
11 files changed
+377 -26

No files matched your search

+3 -8
View File
@@ -42,6 +42,7 @@ import TextLink from "../../textLink";
* @property {string} albumBy
* @property {bool} audioPlayButton
* @property {bool} favourParentImg
* @property {"portrait"| "thumb"| 'square'} cardType
*/
/**
@@ -65,6 +66,7 @@ const Hero = ({
audioPlayButton = false,
favourParentImg = true,
isEpisode = false,
cardType = "portrait",
}) => {
const filterMediaStreamVideo = (source) => {
if (source.Type == MediaStreamType.Video) {
@@ -691,14 +693,7 @@ const Hero = ({
item={item}
seriesId={favourParentImg && item.SeriesId}
imageType={"Primary"}
cardType={
item.Type == BaseItemKind.MusicAlbum ||
item.Type == BaseItemKind.Audio
? "square"
: item.Type == BaseItemKind.Episode
? "thumb"
: "portrait"
}
cardType={cardType}
queryKey={queryKey}
userId={userId}
imageBlurhash={