mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-03 23:03:29 +01:00 
			
		
		
		
	attempted switch to dio (still using http for partial dnwloads/headers)
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
import 'package:dio/dio.dart';
 | 
			
		||||
import 'package:html/parser.dart';
 | 
			
		||||
import 'package:http/http.dart';
 | 
			
		||||
import 'package:obtainium/custom_errors.dart';
 | 
			
		||||
import 'package:obtainium/providers/source_provider.dart';
 | 
			
		||||
 | 
			
		||||
@@ -83,7 +83,7 @@ class NeutronCode extends AppSource {
 | 
			
		||||
  ) async {
 | 
			
		||||
    Response res = await sourceRequest(standardUrl, additionalSettings);
 | 
			
		||||
    if (res.statusCode == 200) {
 | 
			
		||||
      var http = parse(res.body);
 | 
			
		||||
      var http = parse(res.data);
 | 
			
		||||
      var name = http.querySelector('.pd-title')?.innerHtml;
 | 
			
		||||
      var filename = http.querySelector('.pd-filename .pd-float')?.innerHtml;
 | 
			
		||||
      if (filename == null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user