diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-20 14:47:39 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-20 14:47:39 +0100 |
commit | 9499c195230a7d5adaebd46892b373c86c5248c2 (patch) | |
tree | ff652e9959dc2f0349a4e5aed75e8837b452e45f /import | |
parent | 730353601db9818d148c85bfe1ecb119abaab7cc (diff) | |
download | jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.bz2 jellything-9499c195230a7d5adaebd46892b373c86c5248c2.tar.zst |
seperate secrets config file
Diffstat (limited to 'import')
-rw-r--r-- | import/src/lib.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs index abaf7fd..1d8efd8 100644 --- a/import/src/lib.rs +++ b/import/src/lib.rs @@ -12,10 +12,7 @@ use anyhow::{anyhow, bail, Context, Ok}; use async_recursion::async_recursion; use futures::{executor::block_on, stream::FuturesUnordered, StreamExt}; use jellybase::{ - cache::{async_cache_file, cache_memory}, - database::{DataAcid, ReadableTable, Ser, T_NODE, T_NODE_IMPORT}, - federation::Federation, - AssetLocationExt, CONF, + cache::{async_cache_file, cache_memory}, database::{DataAcid, ReadableTable, Ser, T_NODE, T_NODE_IMPORT}, federation::Federation, AssetLocationExt, CONF, SECRETS }; use jellyclient::Session; use jellycommon::{ @@ -241,8 +238,7 @@ async fn process_source( ImportSource::Override(n) => insert_node(&id, n)?, ImportSource::Tmdb { id: tid } => { info!("tmdb lookup {id}"); - let key = CONF - .tmdb_api_key + let key = SECRETS.api.tmdb .as_ref() .ok_or(anyhow!("no tmdb api key"))?; |