mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-20 00:09:40 +02:00
HTML link extraction bugfix (#1937)
This commit is contained in:
@@ -18,7 +18,7 @@ String ensureAbsoluteUrl(String ambiguousUrl, Uri referenceAbsoluteUrl) {
|
|||||||
.where((element) => element.trim().isNotEmpty)
|
.where((element) => element.trim().isNotEmpty)
|
||||||
.toList();
|
.toList();
|
||||||
String absoluteUrl;
|
String absoluteUrl;
|
||||||
if (ambiguousUrl.startsWith('/') || currPathSegments.isEmpty) {
|
if (ambiguousUrl.startsWith('/')) {
|
||||||
absoluteUrl = '${referenceAbsoluteUrl.origin}$ambiguousUrl';
|
absoluteUrl = '${referenceAbsoluteUrl.origin}$ambiguousUrl';
|
||||||
} else if (currPathSegments.isEmpty) {
|
} else if (currPathSegments.isEmpty) {
|
||||||
absoluteUrl = '${referenceAbsoluteUrl.origin}/$ambiguousUrl';
|
absoluteUrl = '${referenceAbsoluteUrl.origin}/$ambiguousUrl';
|
||||||
|
Reference in New Issue
Block a user