diff --git a/lib/pages/download.dart b/lib/pages/download.dart index 3fe6731..a829874 100644 --- a/lib/pages/download.dart +++ b/lib/pages/download.dart @@ -162,7 +162,7 @@ class _DownloadPageState extends State { else if (downloadKey.startsWith('https://twitter.com/') || downloadKey.startsWith('https://mobile.twitter.com/') || downloadKey.startsWith('https://x.com/') || downloadKey.startsWith('https://vxtwitter.com/') || downloadKey.startsWith('https://fixvx.com/') || downloadKey.startsWith('https://tumblr.com/') || downloadKey.startsWith('https://www.tumblr.com/') || downloadKey.startsWith('https://tiktok.com/') || downloadKey.startsWith('https://www.tiktok.com/') || downloadKey.startsWith('https://vm.tiktok.com/') || downloadKey.startsWith('https://vt.tiktok.com/') || downloadKey.startsWith('https://instagram.com/') || downloadKey.startsWith('https://www.instagram.com/') || downloadKey.startsWith('https://www.vine.co/v/') || downloadKey.startsWith('https://vine.co/v/') || downloadKey.startsWith('https://pinterest.com/') || downloadKey.startsWith('https://www.pinterest.com/') || downloadKey.startsWith('https://pinterest.fr/') || downloadKey.startsWith('https://www.pinterest.fr/') || downloadKey.startsWith('https://pin.it/') || downloadKey.startsWith('https://streamable.com/') || downloadKey.startsWith('https://www.streamable.com/')) { service = 'cobalt'; } - else if (!storeRelease && (downloadKey.startsWith('https://bilibili.com/') || downloadKey.startsWith('https://bilibili.tv/') || downloadKey.startsWith('https://youtube.com/watch?v=') || downloadKey.startsWith('https://www.youtube.com/watch?v=') || downloadKey.startsWith('https://m.youtube.com/watch?v=') || downloadKey.startsWith('https://youtu.be/') || downloadKey.startsWith('https://youtube.com/embed/') || downloadKey.startsWith('https://youtube.com/watch/') || downloadKey.startsWith('https://vimeo.com/') || downloadKey.startsWith('https://soundcloud.com/') || downloadKey.startsWith('https://on.soundcloud.com/') || downloadKey.startsWith('https://m.soundcloud.com/') || downloadKey.startsWith('https://twitch.tv/') || downloadKey.startsWith('https://clips.twitch.tv/') || downloadKey.startsWith('https://www.twitch.tv/') || downloadKey.startsWith('https://dailymotion.com/video/') || downloadKey.startsWith('https://www.dailymotion.com/video/') || downloadKey.startsWith('https://dai.ly/'))) { // sur les stores, on permet pas de télécharger depuis ces services + else if (!storeRelease && (downloadKey.startsWith('https://bilibili.com/') || downloadKey.startsWith('https://bilibili.tv/') || downloadKey.startsWith('https://youtube.com/watch?v=') || downloadKey.startsWith('https://www.youtube.com/watch?v=') || downloadKey.startsWith('https://m.youtube.com/watch?v=') || downloadKey.startsWith('https://youtu.be/') || downloadKey.startsWith('https://youtube.com/embed/') || downloadKey.startsWith('https://youtube.com/shorts/') || downloadKey.startsWith('https://youtube.com/watch/') || downloadKey.startsWith('https://vimeo.com/') || downloadKey.startsWith('https://soundcloud.com/') || downloadKey.startsWith('https://on.soundcloud.com/') || downloadKey.startsWith('https://m.soundcloud.com/') || downloadKey.startsWith('https://twitch.tv/') || downloadKey.startsWith('https://clips.twitch.tv/') || downloadKey.startsWith('https://www.twitch.tv/') || downloadKey.startsWith('https://dailymotion.com/video/') || downloadKey.startsWith('https://www.dailymotion.com/video/') || downloadKey.startsWith('https://dai.ly/'))) { // sur les stores, on permet pas de télécharger depuis ces services service = 'cobalt'; } else if (downloadKey.startsWith('https://mediafire.com/file/') || downloadKey.startsWith('https://www.mediafire.com/file/')) {