mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-05-13 17:02:36 +02:00
fix: use resolved config in raw_html selector guard; remove dead path_prefix fallback
This commit is contained in:
parent
bac13fc1b5
commit
f22051491f
2 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ pub fn resolve(
|
||||||
path_prefix: if explicit("path_prefix") {
|
path_prefix: if explicit("path_prefix") {
|
||||||
cli.path_prefix.clone()
|
cli.path_prefix.clone()
|
||||||
} else {
|
} else {
|
||||||
cfg.path_prefix.clone().or(cli.path_prefix.clone())
|
cfg.path_prefix.clone()
|
||||||
},
|
},
|
||||||
include_paths: if explicit("include_paths") {
|
include_paths: if explicit("include_paths") {
|
||||||
cli.include_paths
|
cli.include_paths
|
||||||
|
|
|
||||||
|
|
@ -2350,7 +2350,7 @@ async fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// --raw-html: skip extraction, dump the fetched HTML
|
// --raw-html: skip extraction, dump the fetched HTML
|
||||||
if cli.raw_html && cli.include.is_none() && cli.exclude.is_none() {
|
if resolved.raw_html && resolved.include_selectors.is_empty() && resolved.exclude_selectors.is_empty() {
|
||||||
match fetch_html(&cli, &resolved).await {
|
match fetch_html(&cli, &resolved).await {
|
||||||
Ok(r) => println!("{}", r.html),
|
Ok(r) => println!("{}", r.html),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue