mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
update web
This commit is contained in:
@@ -22,13 +22,7 @@ export const getMoviePosters = (movieName, language = 'en') => {
|
||||
|
||||
export const checkImageURL = async url => {
|
||||
if (!url || !url.match(/.(jpg|jpeg|png|gif)$/i)) return false
|
||||
|
||||
// try {
|
||||
// await fetch(url, { mode: 'no-cors' })
|
||||
return true
|
||||
// } catch (e) {
|
||||
// return false
|
||||
// }
|
||||
return true
|
||||
}
|
||||
|
||||
const magnetRegex = /^magnet:\?xt=urn:[a-z0-9].*/i
|
||||
|
||||
@@ -129,7 +129,7 @@ const Torrent = ({ torrent }) => {
|
||||
<Dialog open={isDeleteTorrentOpened} onClose={closeDeleteTorrentAlert}>
|
||||
<DialogTitle>{t('DeleteTorrent?')}</DialogTitle>
|
||||
<DialogActions>
|
||||
<Button variant='outlined' onClick={closeDeleteTorrentAlert} color='primary'>
|
||||
<Button variant='outlined' onClick={closeDeleteTorrentAlert} color='secondary'>
|
||||
{t('Cancel')}
|
||||
</Button>
|
||||
|
||||
@@ -139,7 +139,7 @@ const Torrent = ({ torrent }) => {
|
||||
deleteTorrent(torrent)
|
||||
closeDeleteTorrentAlert()
|
||||
}}
|
||||
color='primary'
|
||||
color='secondary'
|
||||
autoFocus
|
||||
>
|
||||
{t('OK')}
|
||||
|
||||
Reference in New Issue
Block a user