diff --git a/Cargo.lock b/Cargo.lock index 1f93965..fb8f007 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1865,7 +1865,7 @@ dependencies = [ [[package]] name = "tf_core" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", @@ -1883,7 +1883,7 @@ dependencies = [ [[package]] name = "tf_filter" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "tf_observer", ] @@ -1891,7 +1891,7 @@ dependencies = [ [[package]] name = "tf_join" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", @@ -1910,12 +1910,12 @@ dependencies = [ [[package]] name = "tf_observer" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" [[package]] name = "tf_platform_lbry" version = "0.0.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", @@ -1927,7 +1927,7 @@ dependencies = [ [[package]] name = "tf_platform_peertube" version = "0.0.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", @@ -1939,7 +1939,7 @@ dependencies = [ [[package]] name = "tf_platform_youtube" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", @@ -1957,7 +1957,7 @@ dependencies = [ [[package]] name = "tf_playlist" version = "0.1.1" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "log", "tf_observer", @@ -1966,7 +1966,7 @@ dependencies = [ [[package]] name = "tf_utils" version = "0.1.0" -source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=1656676ebd89ecbe6f3eeca651f73ba1c9c3855f#1656676ebd89ecbe6f3eeca651f73ba1c9c3855f" +source = "git+https://github.com/Tubefeeder/tubefeeder-extractor.git?rev=d18735f502fc8ff46ac8505df268fdd541d96902#d18735f502fc8ff46ac8505df268fdd541d96902" dependencies = [ "async-trait", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 5bb02bf..c5a6afc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" } diff --git a/src/gui/feed/thumbnail.rs b/src/gui/feed/thumbnail.rs index b5390ee..26aa37e 100644 --- a/src/gui/feed/thumbnail.rs +++ b/src/gui/feed/thumbnail.rs @@ -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); }