Compare commits

..

14 Commits

Author SHA1 Message Date
7de6a5f0fc chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 2m12s
Continuous integration / Test Suite (push) Successful in 2m25s
Continuous integration / Trunk (push) Successful in 2m10s
Continuous integration / Rustfmt (push) Successful in 49s
Continuous integration / Disallow unused dependencies (push) Successful in 2m39s
Continuous integration / build (push) Successful in 4m35s
2026-01-14 13:37:20 -08:00
83230ba962 Merge branch 'renovate/lock-file-maintenance'
Some checks failed
Continuous integration / Test Suite (push) Successful in 3m47s
Continuous integration / Check (push) Successful in 5m46s
Continuous integration / Trunk (push) Successful in 2m12s
Continuous integration / Rustfmt (push) Successful in 1m38s
Continuous integration / build (push) Successful in 4m32s
Continuous integration / Disallow unused dependencies (push) Has been cancelled
2026-01-14 13:27:00 -08:00
6ef786c4e7 Manually update deps to a buildable rev 2026-01-14 13:26:30 -08:00
d4c29d7b98 chore(deps): lock file maintenance
Some checks failed
Continuous integration / Check (push) Failing after 1m34s
Continuous integration / Test Suite (push) Failing after 3m56s
Continuous integration / Rustfmt (push) Successful in 45s
Continuous integration / build (push) Failing after 3m11s
Continuous integration / Disallow unused dependencies (push) Failing after 3m7s
Continuous integration / Trunk (push) Successful in 21m26s
2026-01-14 18:31:51 +00:00
95a4f2e630 Merge pull request 'chore(deps): update all non-major dependencies' (#227) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Check (push) Successful in 1m38s
Continuous integration / Trunk (push) Successful in 1m53s
Continuous integration / Rustfmt (push) Successful in 53s
Continuous integration / Test Suite (push) Successful in 4m26s
Continuous integration / build (push) Successful in 2m20s
Continuous integration / Disallow unused dependencies (push) Successful in 5m42s
2026-01-14 10:31:19 -08:00
faa35dd65a chore(deps): update all non-major dependencies
All checks were successful
Continuous integration / Test Suite (push) Successful in 2m36s
Continuous integration / Check (push) Successful in 2m44s
Continuous integration / Trunk (push) Successful in 1m27s
Continuous integration / Rustfmt (push) Successful in 1m36s
Continuous integration / build (push) Successful in 2m48s
Continuous integration / Disallow unused dependencies (push) Successful in 5m37s
2026-01-14 13:16:29 +00:00
7c54c6b9c3 Merge pull request 'fix(deps): update rust crate quick-xml to 0.39.0' (#225) from renovate/all-minor-patch into master
All checks were successful
Continuous integration / Test Suite (push) Successful in 2m29s
Continuous integration / Check (push) Successful in 2m38s
Continuous integration / Trunk (push) Successful in 1m19s
Continuous integration / Rustfmt (push) Successful in 1m40s
Continuous integration / build (push) Successful in 2m16s
Continuous integration / Disallow unused dependencies (push) Successful in 5m35s
2026-01-11 11:31:18 -08:00
2d1e38bdff fix(deps): update rust crate quick-xml to 0.39.0
All checks were successful
Continuous integration / Check (push) Successful in 2m33s
Continuous integration / Test Suite (push) Successful in 4m6s
Continuous integration / Rustfmt (push) Successful in 1m38s
Continuous integration / build (push) Successful in 4m17s
Continuous integration / Trunk (push) Successful in 7m52s
Continuous integration / Disallow unused dependencies (push) Successful in 5m40s
2026-01-11 19:01:21 +00:00
33bb355975 chore: Release
All checks were successful
Continuous integration / Check (push) Successful in 1m48s
Continuous integration / Test Suite (push) Successful in 2m4s
Continuous integration / Rustfmt (push) Successful in 58s
Continuous integration / Trunk (push) Successful in 2m11s
Continuous integration / build (push) Successful in 3m33s
Continuous integration / Disallow unused dependencies (push) Successful in 5m42s
2026-01-08 16:13:19 -08:00
2f20a3a8ed server: set user-agent when slurping, fixes /. bug 2026-01-08 16:13:00 -08:00
8b3bfe253f Merge pull request 'chore(deps): update actions/checkout action to v6' (#197) from renovate/actions-checkout-6.x into master
All checks were successful
Continuous integration / Check (push) Successful in 3m43s
Continuous integration / Test Suite (push) Successful in 3m52s
Continuous integration / Rustfmt (push) Successful in 46s
Continuous integration / Trunk (push) Successful in 2m27s
Continuous integration / build (push) Successful in 2m20s
Continuous integration / Disallow unused dependencies (push) Successful in 5m39s
Reviewed-on: #197
2026-01-08 12:23:57 -08:00
22b9646ac4 Merge pull request 'fix(deps): update rust crate zip to v7' (#217) from renovate/zip-7.x into master
Some checks failed
Continuous integration / Check (push) Has been cancelled
Continuous integration / Test Suite (push) Has been cancelled
Continuous integration / Trunk (push) Has been cancelled
Continuous integration / Rustfmt (push) Has been cancelled
Continuous integration / build (push) Has been cancelled
Continuous integration / Disallow unused dependencies (push) Has been cancelled
Reviewed-on: #217
2026-01-08 12:23:42 -08:00
bf7418339e fix(deps): update rust crate zip to v7
All checks were successful
Continuous integration / Check (push) Successful in 1m36s
Continuous integration / Test Suite (push) Successful in 2m46s
Continuous integration / Rustfmt (push) Successful in 40s
Continuous integration / build (push) Successful in 2m46s
Continuous integration / Disallow unused dependencies (push) Successful in 2m19s
Continuous integration / Trunk (push) Successful in 21m7s
2025-12-20 00:01:57 +00:00
51ff0b8e14 chore(deps): update actions/checkout action to v6
All checks were successful
Continuous integration / Check (push) Successful in 58s
Continuous integration / Test Suite (push) Successful in 1m51s
Continuous integration / Rustfmt (push) Successful in 41s
Continuous integration / build (push) Successful in 1m53s
Continuous integration / Disallow unused dependencies (push) Successful in 2m19s
Continuous integration / Trunk (push) Successful in 1m41s
2025-11-20 16:46:50 +00:00
5 changed files with 184 additions and 249 deletions

View File

@@ -7,7 +7,7 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo check
@@ -15,7 +15,7 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test
@@ -23,7 +23,7 @@ jobs:
name: Trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
@@ -35,7 +35,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
@@ -46,7 +46,7 @@ jobs:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo build
@@ -54,7 +54,7 @@ jobs:
name: Disallow unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly

410
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ authors = ["Bill Thiede <git@xinu.tv>"]
edition = "2021"
license = "UNLICENSED"
publish = ["xinu"]
version = "0.17.57"
version = "0.17.59"
repository = "https://git.z.xinu.tv/wathiede/letterbox"
[profile.dev]

View File

@@ -39,7 +39,7 @@ lol_html = "2.3.0"
mailparse = "0.16.1"
maplit = "1.0.2"
memmap = "0.7.0"
quick-xml = { version = "0.38.1", features = ["serialize"] }
quick-xml = { version = "0.39.0", features = ["serialize"] }
regex = "1.11.1"
reqwest = { version = "0.13.0", features = ["blocking"] }
scraper = "0.25.0"
@@ -56,7 +56,7 @@ urlencoding = "2.1.3"
#xtracing = { git = "http://git-private.h.xinu.tv/wathiede/xtracing.git" }
#xtracing = { path = "../../xtracing" }
xtracing = { version = "0.3.2", registry = "xinu" }
zip = "6.0.0"
zip = "7.0.0"
[build-dependencies]

View File

@@ -44,6 +44,8 @@ use crate::{
const NEWSREADER_TAG_PREFIX: &'static str = "News/";
const NEWSREADER_THREAD_PREFIX: &'static str = "news:";
const USER_AGENT: &'static str = "letterbox news reader (letterbox-ua@xinu.tv)";
// TODO: figure out how to use Cow
#[async_trait]
trait Transformer: Send + Sync {
@@ -318,7 +320,8 @@ impl<'c> Transformer for SlurpContents<'c> {
let body = if let Some(body) = cacher.get(link.as_str()) {
String::from_utf8_lossy(&body).to_string()
} else {
let resp = reqwest::get(link.as_str()).await?;
let client = reqwest::Client::builder().user_agent(USER_AGENT).build()?;
let resp = client.get(link.as_str()).send().await?;
let status = resp.status();
if status.is_server_error() {
error!("status error for {link}: {status}");