Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
🐛 Fix thumbnail beeing cut off
Browse files Browse the repository at this point in the history
Bumped tubefeeder-extractor to newest commit
  • Loading branch information
Schmiddiii committed Oct 13, 2021
1 parent 8d21d51 commit d63bc90
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ env_logger = "0.9.0"

image = "0.23.14"

tf_core = { package = "tf_core", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_join = { package = "tf_join", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_filter = { package = "tf_filter", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_observer = { package = "tf_observer", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_playlist = { package = "tf_playlist", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_yt = { package = "tf_platform_youtube", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_pt = { package = "tf_platform_peertube", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_lbry = { package = "tf_platform_lbry", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" }
tf_core = { package = "tf_core", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_join = { package = "tf_join", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_filter = { package = "tf_filter", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_observer = { package = "tf_observer", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_playlist = { package = "tf_playlist", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_yt = { package = "tf_platform_youtube", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_pt = { package = "tf_platform_peertube", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
tf_lbry = { package = "tf_platform_lbry", git = "https://github.com/Tubefeeder/tubefeeder-extractor.git", rev = "d18735f502fc8ff46ac8505df268fdd541d96902" }
3 changes: 1 addition & 2 deletions src/gui/feed/thumbnail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ impl Widget for Thumbnail {

if !path.exists() {
let image = video.thumbnail_with_client(&client).await;
let resized =
image.resize_to_fill(WIDTH, HEIGHT, image::imageops::FilterType::Triangle);
let resized = image.resize(WIDTH, HEIGHT, image::imageops::FilterType::Triangle);
let _ = resized.save(&path);
}

Expand Down

0 comments on commit d63bc90

Please sign in to comment.