mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 13:09:30 +02:00
This commit is contained in:
@@ -89,11 +89,11 @@ class Uptodown extends AppSource {
|
||||
throw getObtainiumHttpError(res);
|
||||
}
|
||||
var html = parse(res.body);
|
||||
var finalUrl =
|
||||
(html.querySelector('.post-download')?.attributes['data-url']);
|
||||
if (finalUrl == null) {
|
||||
var finalUrlKey =
|
||||
html.querySelector('.post-download')?.attributes['data-url'];
|
||||
if (finalUrlKey == null) {
|
||||
throw NoAPKError();
|
||||
}
|
||||
return finalUrl;
|
||||
return 'https://dw.$host/dwn/$finalUrlKey';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user