mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-21 23:57:07 +02:00
fixed an oopsie in tumblr module
This commit is contained in:
parent
8d3ffe3ea4
commit
1a1a4534b7
@ -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' };
|
||||
|
Loading…
x
Reference in New Issue
Block a user