mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
relaxed image check
don't use fetch here - it doesn't work
This commit is contained in:
@@ -23,12 +23,12 @@ 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' })
|
||||
// try {
|
||||
// await fetch(url, { mode: 'no-cors' })
|
||||
return true
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
// } catch (e) {
|
||||
// return false
|
||||
// }
|
||||
}
|
||||
|
||||
const magnetRegex = /^magnet:\?xt=urn:[a-z0-9].*/i
|
||||
|
||||
Reference in New Issue
Block a user