Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

chore: release v0.1.22

Samir Hossains38d7238391d1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 44e93ac..561d0fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog
-## [Unreleased]
+## [0.1.22] - 2026-09-21
### Added
- **Dramachi Native Streaming Provider**:
- Integrated Dramachi as a native streaming provider for Asian dramas, K-dramas, C-dramas, anime, and movies via `https://api.nodeobjects.com/`.
@@ -26,6 +26,7 @@
- Reset `active_screen` to `Screen::Home` in `reset_mode_state` (`src/tui/app/tv.rs`), preventing orphaned Details screen states when switching between TV and Streaming modes.
- **Logging Engine, Crash Diagnostics & Backtrace Capture**:
- Added stack backtrace capture (`std::backtrace::Backtrace::capture()`) and immediate log buffer flushing (`moviebox_tui::logging::flush()`) to `std::panic::set_hook` in `src/main.rs`, ensuring crash locations and backtraces are committed to disk before terminal restoration and process termination.
+ - Standardized default file log level to `info` across all builds in `src/logging.rs`, ensuring session startup metadata, player lifecycle commands, and exit durations are consistently captured without requiring manual `MOVIEBOX_LOG` configuration.
- Retained `LoggerHandle` globally in `src/logging.rs` with graceful fallback to default logging levels if `MOVIEBOX_LOG` contains an invalid level specification.
- Re-routed Windows logs directory (`crate::config::logs_dir()`) to Local AppData (`%LOCALAPPDATA%\moviebox-tui\logs`) to align with documentation and avoid roaming enterprise profile sync issues.
- Hardened `sanitize_url` in `src/logging.rs` to redact embedded user/password credentials (`user:pass@host`), preserve original URI schemes, and retain port numbers for localhost and custom IPTV ports.
diff --git a/Cargo.lock b/Cargo.lock
index d01c905..acbbe8f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1479,7 +1479,7 @@ dependencies = [
[[package]]
name = "moviebox-tui"
-version = "0.1.21"
+version = "0.1.22"
dependencies = [
"base64 0.23.1",
"crossterm",
diff --git a/Cargo.toml b/Cargo.toml
index 8fce252..0584548 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ exclude = [
"book.toml",
"book/",
]
-version = "0.1.21"
+version = "0.1.22"
edition = "2024"
description = "Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players."
repository = "https://github.com/mesamirh/MovieBox-Tui"
diff --git a/docs/logging.md b/docs/logging.md
index b2b6ccc..e5bfe40 100644
--- a/docs/logging.md
+++ b/docs/logging.md
@@ -15,7 +15,7 @@ The active file is `moviebox-tui_rCURRENT.log`; rotated files are
## Behavior
- **Level** is controlled by `MOVIEBOX_LOG` (`off|error|warn|info|debug|trace`). Default is
- `warn` in release builds, `info` in debug builds.
+ `info` across all builds (`warn` and `error` lines are always included).
- **Rotation**: rotates at 5MB and keeps 3 files.
- **Terminal output**: normal log lines go only to the file without writing to stdout or stderr, preventing screen bleed before entering alternate screen mode. Setup errors (if any) are reported on `stderr`.
- **Session header**: version, OS, and the log path are written on startup.
diff --git a/src/logging.rs b/src/logging.rs
index d69934a..af2ee86 100644
--- a/src/logging.rs
+++ b/src/logging.rs
@@ -4,11 +4,7 @@ use std::sync::OnceLock;
static LOGGER_HANDLE: OnceLock<LoggerHandle> = OnceLock::new();
pub fn init() {
- let default_level = if cfg!(debug_assertions) {
- "info"
- } else {
- "warn"
- };
+ let default_level = "info";
let spec = std::env::var("MOVIEBOX_LOG")
.ok()
.filter(|value| !value.is_empty())