mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 7507e7bf5c | ||
|  | 783e8029b6 | ||
|  | 3554257918 | 
| @@ -60,8 +60,17 @@ class SourceHut extends AppSource { | |||||||
|       int ind = 0; |       int ind = 0; | ||||||
|  |  | ||||||
|       for (var entry in parsedHtml.querySelectorAll('item').sublist(0, 6)) { |       for (var entry in parsedHtml.querySelectorAll('item').sublist(0, 6)) { | ||||||
|         // Limit 5 for speed |         ind++; | ||||||
|         if (!fallbackToOlderReleases && ind > 0) { |         String releasePage = // querySelector('link') fails for some reason | ||||||
|  |             entry | ||||||
|  |                     .querySelector('guid') // Luckily guid is identical | ||||||
|  |                     ?.innerHtml | ||||||
|  |                     .trim() ?? | ||||||
|  |                 ''; | ||||||
|  |         if (!releasePage.startsWith('$standardUrl/refs')) { | ||||||
|  |           continue; | ||||||
|  |         } | ||||||
|  |         if (!fallbackToOlderReleases && ind > 1) { | ||||||
|           break; |           break; | ||||||
|         } |         } | ||||||
|         String? version = entry.querySelector('title')?.text.trim(); |         String? version = entry.querySelector('title')?.text.trim(); | ||||||
| @@ -69,7 +78,6 @@ class SourceHut extends AppSource { | |||||||
|           throw NoVersionError(); |           throw NoVersionError(); | ||||||
|         } |         } | ||||||
|         String? releaseDateString = entry.querySelector('pubDate')?.innerHtml; |         String? releaseDateString = entry.querySelector('pubDate')?.innerHtml; | ||||||
|         String releasePage = '$standardUrl/refs/$version'; |  | ||||||
|         DateTime? releaseDate; |         DateTime? releaseDate; | ||||||
|         try { |         try { | ||||||
|           releaseDate = releaseDateString != null |           releaseDate = releaseDateString != null | ||||||
| @@ -98,7 +106,6 @@ class SourceHut extends AppSource { | |||||||
|             AppNames(entry.querySelector('author')?.innerHtml.trim() ?? appName, |             AppNames(entry.querySelector('author')?.innerHtml.trim() ?? appName, | ||||||
|                 appName), |                 appName), | ||||||
|             releaseDate: releaseDate)); |             releaseDate: releaseDate)); | ||||||
|         ind++; |  | ||||||
|       } |       } | ||||||
|       if (apkDetailsList.isEmpty) { |       if (apkDetailsList.isEmpty) { | ||||||
|         throw NoReleasesError(); |         throw NoReleasesError(); | ||||||
|   | |||||||
| @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev | |||||||
| # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html | ||||||
| # In Windows, build-name is used as the major, minor, and patch parts | # In Windows, build-name is used as the major, minor, and patch parts | ||||||
| # of the product and file versions while build-number is used as the build suffix. | # of the product and file versions while build-number is used as the build suffix. | ||||||
| version: 1.1.24+2281 | version: 1.1.25+2282 | ||||||
|  |  | ||||||
| environment: | environment: | ||||||
|   sdk: '>=3.0.0 <4.0.0' |   sdk: '>=3.0.0 <4.0.0' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user