mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +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)
|
||||
.toList();
|
||||
String absoluteUrl;
|
||||
if (ambiguousUrl.startsWith('/') || currPathSegments.isEmpty) {
|
||||
if (ambiguousUrl.startsWith('/')) {
|
||||
absoluteUrl = '${referenceAbsoluteUrl.origin}$ambiguousUrl';
|
||||
} else if (currPathSegments.isEmpty) {
|
||||
absoluteUrl = '${referenceAbsoluteUrl.origin}/$ambiguousUrl';
|
||||
|
Reference in New Issue
Block a user