fix: magnet link
This commit is contained in:
1 parent
12223b79d5
commit
97264226b6
2 files changed
+2
-2
No files matched your search
@@ -28,7 +28,7 @@ const Card: FC<Props> = ({ movie, onClick, fit }) => {
|
|||||||
onDoubleClick={handleToggleFavorite}
|
onDoubleClick={handleToggleFavorite}
|
||||||
onTap={onClick}
|
onTap={onClick}
|
||||||
className={cn(
|
className={cn(
|
||||||
'w-[300px] h-[450px] shrink-0 mx-auto',
|
'w-[300px] h-[450px] min-w-[300px] shrink-0 mx-auto',
|
||||||
fit ? 'w-full h-auto xs:w-[300px] xs:h-[450px]' : undefined
|
fit ? 'w-full h-auto xs:w-[300px] xs:h-[450px]' : undefined
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const Torrents: FC<Props> = ({ title, year, isOpen, onResolve }) => {
|
|||||||
|
|
||||||
hosts.split(',').forEach((host) => {
|
hosts.split(',').forEach((host) => {
|
||||||
const link = window.open(`http://${host}:65220/playuri?uri=${magnet}`, '_blank');
|
const link = window.open(`http://${host}:65220/playuri?uri=${magnet}`, '_blank');
|
||||||
setTimeout(() => link?.close(), 100);
|
setTimeout(() => link?.close(), 1000);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user