mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
fixed an oopsie in tumblr module
This commit is contained in:
@ -8,7 +8,7 @@ export default async function(obj) {
|
||||
}).then((r) => {return r.text()}).catch(() => {return false});
|
||||
if (!html) return { error: 'ErrorCouldntFetch' };
|
||||
if (html.includes('property="og:video" content="https://va.media.tumblr.com/')) {
|
||||
return { urls: `https://va.media.tumblr.com/${html.split('property="og:video" content="https://va.media.tumblr.com/')[1].split('"/>')[0]}`, audioFilename: `tumblr_${obj.id}_audio` }
|
||||
return { urls: `https://va.media.tumblr.com/${html.split('property="og:video" content="https://va.media.tumblr.com/')[1].split('"')[0]}`, audioFilename: `tumblr_${obj.id}_audio` }
|
||||
} else return { error: 'ErrorEmptyDownload' }
|
||||
} catch (e) {
|
||||
return { error: 'ErrorBadFetch' };
|
||||
|
Reference in New Issue
Block a user