Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Added SOCKS proxy support. See [the reqwest docs](https://docs.rs/reqwest/latest/reqwest/#proxies) for usage instructions. ([#3](https://github.com/THEOplayer/streamrr/pull/3))
- Added cookies support while recording. ([#4](https://github.com/THEOplayer/streamrr/pull/4))

## v0.2.0 (2025-11-19)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = false
[dependencies]
m3u8-rs = "6.0.0"
url = "2.5.7"
reqwest = { version = "0.12.23", features = ["rustls-tls", "stream", "socks"], default-features = false }
reqwest = { version = "0.12.23", features = ["rustls-tls", "stream", "socks", "cookies"], default-features = false }
clap = { version = "4.5.48", features = ["derive"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
Expand Down
5 changes: 4 additions & 1 deletion src/record/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ pub async fn record(
let recording_path = dest.join("recording.json");
let recording = RecordingFile::new(&recording_path).await?;
let recording = Arc::new(Mutex::new(recording));
let client = Client::builder()
.cookie_store(true)
.build()
.map_err(|_| RecordError::Config("Error while building HTTP client"))?;
// Download initial playlist
let client = Client::new();
let raw_playlist = token
.run_until_cancelled(download_playlist(&client, url))
.await
Expand Down
Loading