Update src/modules/processing/services/odysee.js

Co-authored-by: jj <log@riseup.net>
This commit is contained in:
ihatespawn 2024-07-07 17:04:54 +02:00 committed by GitHub
parent 2ae66cc9c4
commit bf3bb79b54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ export default async function({ id }) {
"user-agent": genericUserAgent
}
})
.then(req => {return req.text()})
.then(req => req.text())
.catch(() => {});
if (!requestText.includes('"contentUrl": ')) return { error: 'ErrorEmptyDownload' };