From b178b1d780b576a648c871ce5d7a09e72b12b17d Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 9 Sep 2023 05:46:56 -0400 Subject: [PATCH] Bugfix --- lib/app_sources/uptodown.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/app_sources/uptodown.dart b/lib/app_sources/uptodown.dart index 4075ee1..dd9b68a 100644 --- a/lib/app_sources/uptodown.dart +++ b/lib/app_sources/uptodown.dart @@ -35,11 +35,11 @@ class Uptodown extends AppSource { String? version = html.querySelector('div.version')?.innerHtml; String? apkUrl = html.querySelector('#detail-download-button')?.attributes['data-url']; - String? name = html.querySelector('#detail-app-name')?.innerHtml; - String? author = html.querySelector('#author-link')?.innerHtml; + String? name = html.querySelector('#detail-app-name')?.innerHtml.trim(); + String? author = html.querySelector('#author-link')?.innerHtml.trim(); var detailElements = html.querySelectorAll('#technical-information td'); - String? appId = (detailElements.elementAtOrNull(2))?.innerHtml; - String? dateStr = (detailElements.elementAtOrNull(29))?.innerHtml; + String? appId = (detailElements.elementAtOrNull(2))?.innerHtml.trim(); + String? dateStr = (detailElements.elementAtOrNull(29))?.innerHtml.trim(); return Map.fromEntries([ MapEntry('version', version), MapEntry('apkUrl', apkUrl),