From 6da49ec983b5da46645b517f65dcea3a6ea96c99 Mon Sep 17 00:00:00 2001 From: lov3b Date: Sun, 5 Mar 2023 20:02:26 +0100 Subject: [PATCH] consider the traits parser instead --- src/grandmother.rs | 2 +- src/lib.rs | 4 ++-- src/{getm3u8.rs => parser.rs} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{getm3u8.rs => parser.rs} (100%) diff --git a/src/grandmother.rs b/src/grandmother.rs index 013b6de..3dc824c 100644 --- a/src/grandmother.rs +++ b/src/grandmother.rs @@ -1,7 +1,7 @@ #[allow(unused_imports)] use crate::GetM3u8; use crate::{ - getm3u8::{Parser, WatchedFind}, + parser::{Parser, WatchedFind}, Configuration, OfflineParser, OnlineParser, Playlist, MAX_TRIES, }; use std::fs; diff --git a/src/lib.rs b/src/lib.rs index 5fb06de..da785fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ mod config; mod downloader; -pub mod getm3u8; +pub mod parser; mod grandmother; mod m3u8; mod offlineparser; @@ -13,7 +13,7 @@ use std::io::{stdin, stdout, Stdin, StdoutLock, Write}; use async_recursion::async_recursion; pub use config::Configuration; pub use downloader::download_with_progress; -pub use getm3u8::{GetM3u8, GetPlayPath, WatchedFind}; +pub use parser::{GetM3u8, GetPlayPath, WatchedFind}; pub use grandmother::GrandMother; pub use m3u8::{M3u8, OfflineEntry}; pub use offlineparser::OfflineParser; diff --git a/src/getm3u8.rs b/src/parser.rs similarity index 100% rename from src/getm3u8.rs rename to src/parser.rs