Skip to content

Commit

Permalink
adjust default extractor to catch more supported themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Jul 17, 2023
1 parent 46570cf commit 3364e1b
Show file tree
Hide file tree
Showing 62 changed files with 23 additions and 63 deletions.
1 change: 1 addition & 0 deletions src/Extractors/Banlist/DefaultExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function canHandle(Crawler $crawler): bool

return collect($css)->contains(
fn (string $href) => str_starts_with(trim($href, '/'), 'themes/default/css')
|| str_starts_with(trim($href, '/'), 'themes/gcg/css')
);
}

Expand Down
5 changes: 2 additions & 3 deletions tests/Datasets/baseurls.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
dataset('baseurls', [
// default
'https://firepoweredgaming.com/sourcebanspp/index.php',
'https://neonheights.xyz/bans/index.php',
'https://bans.harpoongaming.com/index.php',
'https://bans.panda-community.com/index.php',
'https://sourcebans.gamerzhost.de/sb419/index.php',
Expand All @@ -13,11 +12,9 @@
'https://csgoskin.ir/server/index.php',
'https://tf2-casual-fun.de/sourcebans/index.php',
'https://vimo.lt/bans/index.php',
'http://95.216.143.68/index.php',
'https://bans.blackwonder.tf/index.php',
'https://sourcebans.pelikriisi.net/index.php',
'https://hellbreak.pl/sb/index.php',
'http://162.55.184.155/index.php',
'https://sourcebans.ghostcap.com/index.php',
'https://pong.setti.info/sourcebans/index.php',
// fluent
Expand All @@ -31,4 +28,6 @@
'https://goodteemo.serverscstrike.com/index.php',
'https://bans.gaming-biatch.eu/index.php',
'https://newlandscsgo.com.br/sourcebans/index.php',
// blue
'https://neonheights.xyz/bans/index.php',
]);

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 3364e1b

Please sign in to comment.