Add anyhow, Improve Auth token code
Moved test helper code to its own module.
This commit is contained in:
@@ -42,6 +42,9 @@ mod database;
|
||||
mod files;
|
||||
mod video;
|
||||
|
||||
#[cfg(test)]
|
||||
mod testhelpers;
|
||||
|
||||
lazy_static! {
|
||||
static ref IMAGE_GAUGE: IntGauge = IntGauge::new(
|
||||
"imageserver_image_total",
|
||||
@@ -190,7 +193,7 @@ async fn generate_video(
|
||||
let filename = name.to_str().expect("Filename should convert to string");
|
||||
let playlist = format!("tmp/{}.m3u8", filename);
|
||||
if let Some(path) = is_valid_path(&body.path) {
|
||||
if let Ok(child) = create_playlist(&path.to_str().unwrap(), &playlist).await {
|
||||
if let Ok(child) = create_playlist(path.to_str().unwrap(), &playlist).await {
|
||||
data.stream_manager
|
||||
.do_send(ProcessMessage(playlist.clone(), child));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user