Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
refactor(bdix): rename circleftp search_to_moviebox_json
Samir Hossains917eda55f48c
diff --git a/src/providers/bdix/circleftp/client.rs b/src/providers/bdix/circleftp/client.rsindex 06f00ec..498e23e 100644--- a/src/providers/bdix/circleftp/client.rs+++ b/src/providers/bdix/circleftp/client.rs@@ -6,7 +6,7 @@ use crate::providers::models::{SourceMirror,};-use super::parser::{CircleFtpSearchResponse, search_to_moviebox_json};+use super::parser::{CircleFtpSearchResponse, circleftp_search_to_catalog};#[derive(Debug, Error)]pub enum CircleFtpError {@@ -46,7 +46,7 @@ impl CircleFtpClient {let resp = self.client.get(url).send().await?;let search_resp: CircleFtpSearchResponse = resp.json().await?;- Ok(search_to_moviebox_json(&search_resp))+ Ok(circleftp_search_to_catalog(&search_resp))}pub async fn details(&self, id: &str) -> Result<MediaDetails, CircleFtpError> {diff --git a/src/providers/bdix/circleftp/parser.rs b/src/providers/bdix/circleftp/parser.rsindex a0aca64..9ae6d52 100644--- a/src/providers/bdix/circleftp/parser.rs+++ b/src/providers/bdix/circleftp/parser.rs@@ -33,7 +33,7 @@ pub struct CircleFtpEpisode {pub link: Option<String>,}-pub fn search_to_moviebox_json(response: &CircleFtpSearchResponse) -> Vec<CatalogItem> {+pub fn circleftp_search_to_catalog(response: &CircleFtpSearchResponse) -> Vec<CatalogItem> {let mut items = Vec::new();if let Some(posts) = &response.posts {for post in posts {