diff --git a/Cargo.toml b/Cargo.toml
index ce548fb..199a6e3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "RuStream"
-version = "1.0.0"
+version = "1.0.1"
description = "Self-hosted Streaming Engine, that can render videos via authenticated sessions."
license = "MIT"
documentation = "https://docs.rs/RuStream"
diff --git a/README.md b/README.md
index 22a818c..b52c829 100644
--- a/README.md
+++ b/README.md
@@ -58,8 +58,6 @@ curl -o RuStream-Windows-x86_64.zip -LH "Accept: application/octet-stream" "http
#### Environment Variables
-> Environment variables can (optionally) be loaded from any plain text file.
-> Refer the [wiki page][gh-wiki-env] for more information.
**Mandatory**
- **authorization**: Dictionary of key-value pairs with `username` as key and `password` as value.
@@ -80,6 +78,8 @@ curl -o RuStream-Windows-x86_64.zip -LH "Accept: application/octet-stream" "http
> If `SECURE_SESSION` is to set to `true`, the cookie `session_token` will only be sent via HTTPS
> This means that the server can **ONLY** be hosted via `HTTPS` or `localhost`
+> Checkout [GitHub Wiki][gh-wiki-env] for more information about environment variables and `dotenv` usage.
+
## Crate
[https://crates.io/crates/RuStream][crate]
@@ -91,9 +91,6 @@ curl -o RuStream-Windows-x86_64.zip -LH "Accept: application/octet-stream" "http
cargo doc --document-private-items --no-deps
```
-### GitHub Wiki - Project Insights
-[https://github.com/thevickypedia/RuStream/wiki][gh-wiki]
-
## Linting
### Requirement
```shell
@@ -104,6 +101,9 @@ rustup component add clippy
cargo clippy --no-deps --fix
```
+## GitHub Wiki - Project Insights
+[https://github.com/thevickypedia/RuStream/wiki][gh-wiki]
+
## License & copyright
© Vignesh Rao
diff --git a/src/routes/video.rs b/src/routes/video.rs
index 9e880db..58b0e8a 100644
--- a/src/routes/video.rs
+++ b/src/routes/video.rs
@@ -139,7 +139,7 @@ pub async fn stream(config: web::Data>,
// Rust doesn't allow re-assignment, so might as well create a mutable variable
// Load the default response body and re-construct with subtitles if present
let mut response_body = landing.render(context!(
- video_title => &filepath, path => render_path,
+ video_title => &__filename, path => render_path,
previous => &rust_iter.previous,
next => &rust_iter.next,
previous_title => &rust_iter.previous,
@@ -149,7 +149,7 @@ pub async fn stream(config: web::Data>,
if subtitle.vtt.exists() {
let sfx_file = format!("/track?file={}", url_encode(&subtitle.vtt_file));
response_body = landing.render(context!(
- video_title => &filepath, path => render_path,
+ video_title => &__filename, path => render_path,
previous => &rust_iter.previous,
next => &rust_iter.next,
previous_title => &rust_iter.previous,
@@ -165,7 +165,7 @@ pub async fn stream(config: web::Data>,
log::debug!("Successfully converted srt to vtt file");
let sfx_file = format!("/track?file={}", url_encode(&subtitle.vtt_file));
response_body = landing.render(context!(
- video_title => &filepath, path => render_path,
+ video_title => &__filename, path => render_path,
previous => &rust_iter.previous,
next => &rust_iter.next,
previous_title => &rust_iter.previous,
diff --git a/src/templates/landing.rs b/src/templates/landing.rs
index 924c677..dc9fb13 100644
--- a/src/templates/landing.rs
+++ b/src/templates/landing.rs
@@ -13,7 +13,7 @@ pub fn get_content() -> String {
- Rustic video streaming
+ {{ video_title }}