mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
fix match filters
This commit is contained in:
parent
82ff2de3dc
commit
999aa211ae
@ -204,7 +204,7 @@ class WaybackMachineDownloader
|
|||||||
|
|
||||||
def match_only_filter file_url
|
def match_only_filter file_url
|
||||||
if @only_filter
|
if @only_filter
|
||||||
only_filter_regex = @only_filter.to_regex
|
only_filter_regex = @only_filter.to_regex(detect: true)
|
||||||
if only_filter_regex
|
if only_filter_regex
|
||||||
only_filter_regex =~ file_url
|
only_filter_regex =~ file_url
|
||||||
else
|
else
|
||||||
@ -217,7 +217,7 @@ class WaybackMachineDownloader
|
|||||||
|
|
||||||
def match_exclude_filter file_url
|
def match_exclude_filter file_url
|
||||||
if @exclude_filter
|
if @exclude_filter
|
||||||
exclude_filter_regex = @exclude_filter.to_regex
|
exclude_filter_regex = @exclude_filter.to_regex(detect: true)
|
||||||
if exclude_filter_regex
|
if exclude_filter_regex
|
||||||
exclude_filter_regex =~ file_url
|
exclude_filter_regex =~ file_url
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user