From 40a82142bf442012b55dd08de0312c2b74c5351f Mon Sep 17 00:00:00 2001 From: Kasisnu <5044120+kasisnu@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:38:30 +0530 Subject: [PATCH] update FY bucket paths --- .../src/http_server/common_responses/media/media_domain.rs | 2 +- .../web_utils/bucket_urls/bucket_url_from_str_path.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/service/web/storyteller_web/src/http_server/common_responses/media/media_domain.rs b/crates/service/web/storyteller_web/src/http_server/common_responses/media/media_domain.rs index 406cdff815..e6dd96335f 100644 --- a/crates/service/web/storyteller_web/src/http_server/common_responses/media/media_domain.rs +++ b/crates/service/web/storyteller_web/src/http_server/common_responses/media/media_domain.rs @@ -2,7 +2,7 @@ use once_cell::sync::Lazy; use url::Url; //const FAKEYOU_CDN_STR: &str = "https://storage.googleapis.com/dev-vocodes-public"; -const FAKEYOU_CDN_STR: &str = "https://cdn.fakeyou.com"; +const FAKEYOU_CDN_STR: &str = "https://cdn-2.fakeyou.com"; const STORYTELLER_CDN_STR: &str = "https://cdn.storyteller.ai"; diff --git a/crates/service/web/storyteller_web/src/http_server/web_utils/bucket_urls/bucket_url_from_str_path.rs b/crates/service/web/storyteller_web/src/http_server/web_utils/bucket_urls/bucket_url_from_str_path.rs index 06b0f80673..f7dc714102 100644 --- a/crates/service/web/storyteller_web/src/http_server/web_utils/bucket_urls/bucket_url_from_str_path.rs +++ b/crates/service/web/storyteller_web/src/http_server/web_utils/bucket_urls/bucket_url_from_str_path.rs @@ -5,7 +5,7 @@ use errors::AnyhowResult; pub fn bucket_url_from_str_path( bucket_path: &str, ) -> AnyhowResult { - let url = format!("https://storage.googleapis.com/vocodes-public{}", bucket_path); + let url = format!("https://cdn-2.fakeyou.com{}", bucket_path); let url = Url::parse(&url)?; Ok(url) } @@ -14,7 +14,6 @@ pub fn bucket_url_from_str_path( mod tests { use url::Url; - use bucket_paths::legacy::typified_paths::public::media_files::bucket_file_path::MediaFileBucketPath; use crate::http_server::web_utils::bucket_urls::bucket_url_from_str_path::bucket_url_from_str_path; #[test]