Skip to content

Commit

Permalink
Handle getImagesUrl new cases
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Dec 31, 2024
1 parent 6840c77 commit 2b014d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions violet/lib/component/eh/eh_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ class EHParser {
var url = element.querySelector('a')!.attributes['href'];
if (!result.contains(url)) result.add(url!);
});
doc.querySelectorAll('a').forEach((element) {
var url = element.attributes['href'];
if (!result.contains(url)) result.add(url!);
});
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions violet/lib/network/wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import 'package:violet/thread/semaphore.dart';

class HttpWrapper {
static String accept =
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8';
'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7';
static String userAgent =
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36';
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36';
static String mobileUserAgent =
'Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Mobile Safari/537.36';
static Semaphore throttlerExHentai = Semaphore(maxCount: 1);
Expand Down

0 comments on commit 2b014d2

Please sign in to comment.