mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Lint code
This commit is contained in:
parent
e8654ca181
commit
05b8f5b400
@ -1,3 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Kyoo - A portable and vast media library solution.
|
||||||
|
* Copyright (c) Kyoo.
|
||||||
|
*
|
||||||
|
* See AUTHORS.md and LICENSE file in the project root for full license information.
|
||||||
|
*
|
||||||
|
* Kyoo is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* Kyoo is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
// Type definitions for react-native-video 5.0
|
// Type definitions for react-native-video 5.0
|
||||||
// Project: https://github.com/react-native-community/react-native-video, https://github.com/brentvatne/react-native-video
|
// Project: https://github.com/react-native-community/react-native-video, https://github.com/brentvatne/react-native-video
|
||||||
// Definitions by: HuHuanming <https://github.com/huhuanming>
|
// Definitions by: HuHuanming <https://github.com/huhuanming>
|
||||||
|
@ -13,8 +13,8 @@ use crate::{
|
|||||||
audio::*,
|
audio::*,
|
||||||
identify::{identify, Audio, Chapter, MediaInfo, Subtitle, Video},
|
identify::{identify, Audio, Chapter, MediaInfo, Subtitle, Video},
|
||||||
state::Transcoder,
|
state::Transcoder,
|
||||||
|
transcode::Quality,
|
||||||
video::*,
|
video::*,
|
||||||
transcode::Quality
|
|
||||||
};
|
};
|
||||||
mod audio;
|
mod audio;
|
||||||
mod error;
|
mod error;
|
||||||
|
@ -2,7 +2,6 @@ use derive_more::Display;
|
|||||||
use rand::distributions::Alphanumeric;
|
use rand::distributions::Alphanumeric;
|
||||||
use rand::{thread_rng, Rng};
|
use rand::{thread_rng, Rng};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use utoipa::ToSchema;
|
|
||||||
use std::collections::hash_map::DefaultHasher;
|
use std::collections::hash_map::DefaultHasher;
|
||||||
use std::hash::{Hash, Hasher};
|
use std::hash::{Hash, Hasher};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
@ -12,6 +11,7 @@ use std::str::FromStr;
|
|||||||
use tokio::io::{AsyncBufReadExt, BufReader};
|
use tokio::io::{AsyncBufReadExt, BufReader};
|
||||||
use tokio::process::{Child, Command};
|
use tokio::process::{Child, Command};
|
||||||
use tokio::sync::watch;
|
use tokio::sync::watch;
|
||||||
|
use utoipa::ToSchema;
|
||||||
|
|
||||||
const SEGMENT_TIME: u32 = 10;
|
const SEGMENT_TIME: u32 = 10;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user