fixed an oopsie in tumblr module
This commit is contained in:
parent
8d3ffe3ea4
commit
1a1a4534b7
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ export default async function(obj) {
|
||||||
}).then((r) => {return r.text()}).catch(() => {return false});
|
}).then((r) => {return r.text()}).catch(() => {return false});
|
||||||
if (!html) return { error: 'ErrorCouldntFetch' };
|
if (!html) return { error: 'ErrorCouldntFetch' };
|
||||||
if (html.includes('property="og:video" content="https://va.media.tumblr.com/')) {
|
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' }
|
} else return { error: 'ErrorEmptyDownload' }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return { error: 'ErrorBadFetch' };
|
return { error: 'ErrorBadFetch' };
|
||||||
|
|
Loading…
Reference in a new issue