bugfix
This commit is contained in:
@@ -49,7 +49,7 @@ impl JavtifulProvider {
|
|||||||
fn build_channel(&self, clientversion: ClientVersion) -> Channel {
|
fn build_channel(&self, clientversion: ClientVersion) -> Channel {
|
||||||
let _ = clientversion;
|
let _ = clientversion;
|
||||||
Channel {
|
Channel {
|
||||||
id: "pimpbunny".to_string(),
|
id: "javtiful".to_string(),
|
||||||
name: "Javtiful".to_string(),
|
name: "Javtiful".to_string(),
|
||||||
description: "Watch Porn!".to_string(),
|
description: "Watch Porn!".to_string(),
|
||||||
premium: false,
|
premium: false,
|
||||||
@@ -214,7 +214,18 @@ impl JavtifulProvider {
|
|||||||
.and_then(|s| s.split("row row-cols-1 row-cols-sm-2 row-cols-lg-3 row-cols-xl-4").nth(1))
|
.and_then(|s| s.split("row row-cols-1 row-cols-sm-2 row-cols-lg-3 row-cols-xl-4").nth(1))
|
||||||
{
|
{
|
||||||
Some(b) => b,
|
Some(b) => b,
|
||||||
None => return vec![],
|
None => {
|
||||||
|
eprint("Javtiful Provider: Failed to get block from html");
|
||||||
|
let _ = futures::executor::block_on(send_discord_error_report(
|
||||||
|
&e,
|
||||||
|
Some("Javtiful Provider"),
|
||||||
|
Some(&format!("Failed to get block from html:\n```{html}\n```")),
|
||||||
|
file!(),
|
||||||
|
line!(),
|
||||||
|
module_path!(),
|
||||||
|
));
|
||||||
|
return vec![]
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
let futures = block
|
let futures = block
|
||||||
@@ -227,6 +238,7 @@ impl JavtifulProvider {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.inspect(|r| {
|
.inspect(|r| {
|
||||||
if let Err(e) = r {
|
if let Err(e) = r {
|
||||||
|
eprint("Javtiful Provider: Failed to get video item");
|
||||||
let _ = futures::executor::block_on(send_discord_error_report(
|
let _ = futures::executor::block_on(send_discord_error_report(
|
||||||
&e,
|
&e,
|
||||||
Some("Javtiful Provider"),
|
Some("Javtiful Provider"),
|
||||||
|
|||||||
Reference in New Issue
Block a user