mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
migrate to esm structure
This commit is contained in:
@@ -8,11 +8,9 @@ const staticVideoUrls = {
|
||||
FAILED_INFRINGEMENT: `videos/failed_infringement_v2.mp4`
|
||||
}
|
||||
|
||||
function isStaticUrl(url) {
|
||||
|
||||
export function isStaticUrl(url) {
|
||||
return Object.values(staticVideoUrls).some(videoUrl => url?.endsWith(videoUrl));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
...staticVideoUrls,
|
||||
isStaticUrl
|
||||
}
|
||||
export default staticVideoUrls
|
||||
Reference in New Issue
Block a user