diff --git a/src/parsers/Telegram/telegram_media_downloader/gen_filter_cache.py b/src/parsers/Telegram/telegram_media_downloader/gen_filter_cache.py index 903c084..dc6b662 100644 --- a/src/parsers/Telegram/telegram_media_downloader/gen_filter_cache.py +++ b/src/parsers/Telegram/telegram_media_downloader/gen_filter_cache.py @@ -1,3 +1,3 @@ -from module.filter import Filter +from src.parsers.Telegram.telegram_media_downloader.module.filter import Filter Filter() diff --git a/src/parsers/Telegram/telegram_media_downloader/media_downloader.py b/src/parsers/Telegram/telegram_media_downloader/media_downloader.py index 2ea2d4c..7104ddd 100644 --- a/src/parsers/Telegram/telegram_media_downloader/media_downloader.py +++ b/src/parsers/Telegram/telegram_media_downloader/media_downloader.py @@ -11,12 +11,12 @@ from loguru import logger from pyrogram.types import Audio, Document, Photo, Video, VideoNote, Voice from rich.logging import RichHandler -from module.app import Application, ChatDownloadConfig, DownloadStatus, TaskNode -from module.bot import start_download_bot, stop_download_bot -from module.download_stat import update_download_status -from module.get_chat_history_v2 import get_chat_history_v2 -from module.language import _t -from module.pyrogram_extension import ( +from src.parsers.Telegram.telegram_media_downloader.module.app import Application, ChatDownloadConfig, DownloadStatus, TaskNode +from src.parsers.Telegram.telegram_media_downloader.module.bot import start_download_bot, stop_download_bot +from src.parsers.Telegram.telegram_media_downloader.module.download_stat import update_download_status +from src.parsers.Telegram.telegram_media_downloader.module.get_chat_history_v2 import get_chat_history_v2 +from src.parsers.Telegram.telegram_media_downloader.module.language import _t +from src.parsers.Telegram.telegram_media_downloader.module.pyrogram_extension import ( fetch_message, get_extension, record_download_status, @@ -25,12 +25,12 @@ from module.pyrogram_extension import ( set_meta_data, upload_telegram_chat, ) -from module.web import init_web -from utils.format import truncate_filename, validate_title -from utils.log import LogFilter -from utils.meta import print_meta -from utils.meta_data import MetaData -from utils.updates import check_for_updates +from src.parsers.Telegram.telegram_media_downloader.module.web import init_web +from src.parsers.Telegram.telegram_media_downloader.utils.format import truncate_filename, validate_title +from src.parsers.Telegram.telegram_media_downloader.utils.log import LogFilter +from src.parsers.Telegram.telegram_media_downloader.utils.meta import print_meta +from src.parsers.Telegram.telegram_media_downloader.utils.meta_data import MetaData +from src.parsers.Telegram.telegram_media_downloader.utils.updates import check_for_updates logging.basicConfig( level=logging.INFO, diff --git a/src/parsers/Telegram/telegram_media_downloader/module/app.py b/src/parsers/Telegram/telegram_media_downloader/module/app.py index 7b1f858..a796698 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/app.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/app.py @@ -10,11 +10,11 @@ from typing import List, Optional, Union import loguru from ruamel import yaml -from module.cloud_drive import CloudDrive, CloudDriveConfig -from module.filter import Filter -from module.language import Language, set_language -from utils.format import replace_date_time, validate_title -from utils.meta_data import MetaData +from src.parsers.Telegram.telegram_media_downloader.module.cloud_drive import CloudDrive, CloudDriveConfig +from src.parsers.Telegram.telegram_media_downloader.module.filter import Filter +from src.parsers.Telegram.telegram_media_downloader.module.language import Language, set_language +from src.parsers.Telegram.telegram_media_downloader.utils.format import replace_date_time, validate_title +from src.parsers.Telegram.telegram_media_downloader.utils.meta_data import MetaData _yaml = yaml.YAML() # pylint: disable = R0902 diff --git a/src/parsers/Telegram/telegram_media_downloader/module/bot.py b/src/parsers/Telegram/telegram_media_downloader/module/bot.py index da68be7..99f021e 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/bot.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/bot.py @@ -12,24 +12,24 @@ from pyrogram.handlers import MessageHandler from ruamel import yaml import utils -from module.app import ( +from src.parsers.Telegram.telegram_media_downloader.module.app import ( Application, ChatDownloadConfig, ForwardStatus, TaskNode, TaskType, ) -from module.filter import Filter -from module.language import Language, _t -from module.pyrogram_extension import ( +from src.parsers.Telegram.telegram_media_downloader.module.filter import Filter +from src.parsers.Telegram.telegram_media_downloader.module.language import Language, _t +from src.parsers.Telegram.telegram_media_downloader.module.pyrogram_extension import ( check_user_permission, get_message_with_retry, report_bot_forward_status, report_bot_status, set_meta_data, ) -from utils.format import extract_info_from_link, replace_date_time, validate_title -from utils.meta_data import MetaData +from src.parsers.Telegram.telegram_media_downloader.utils.format import extract_info_from_link, replace_date_time, validate_title +from src.parsers.Telegram.telegram_media_downloader.utils.meta_data import MetaData # from pyrogram.types import (ReplyKeyboardMarkup, InlineKeyboardMarkup, # InlineKeyboardButton) diff --git a/src/parsers/Telegram/telegram_media_downloader/module/cloud_drive.py b/src/parsers/Telegram/telegram_media_downloader/module/cloud_drive.py index c91926f..ae51e38 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/cloud_drive.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/cloud_drive.py @@ -8,7 +8,7 @@ from zipfile import ZipFile from loguru import logger -from utils import platform +from src.parsers.Telegram.telegram_media_downloader.utils import platform # pylint: disable = R0902 diff --git a/src/parsers/Telegram/telegram_media_downloader/module/filter.py b/src/parsers/Telegram/telegram_media_downloader/module/filter.py index 08e30e6..a06dc77 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/filter.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/filter.py @@ -6,8 +6,8 @@ from typing import Any, Optional, Tuple from ply import lex, yacc -from utils.format import get_byte_from_str -from utils.meta_data import MetaData, NoneObj, ReString +from src.parsers.Telegram.telegram_media_downloader.utils.format import get_byte_from_str +from src.parsers.Telegram.telegram_media_downloader.utils.meta_data import MetaData, NoneObj, ReString # pylint: disable = R0904 diff --git a/src/parsers/Telegram/telegram_media_downloader/module/pyrogram_extension.py b/src/parsers/Telegram/telegram_media_downloader/module/pyrogram_extension.py index 9bc0765..73536aa 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/pyrogram_extension.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/pyrogram_extension.py @@ -23,11 +23,11 @@ from pyrogram.file_id import ( ) from pyrogram.mime_types import mime_types -from module.app import Application, DownloadStatus, ForwardStatus, TaskNode -from module.download_stat import get_download_result -from module.language import Language, _t -from utils.format import create_progress_bar, format_byte, truncate_filename -from utils.meta_data import MetaData +from src.parsers.Telegram.telegram_media_downloader.module.app import Application, DownloadStatus, ForwardStatus, TaskNode +from src.parsers.Telegram.telegram_media_downloader.module.download_stat import get_download_result +from src.parsers.Telegram.telegram_media_downloader.module.language import Language, _t +from src.parsers.Telegram.telegram_media_downloader.utils.format import create_progress_bar, format_byte, truncate_filename +from src.parsers.Telegram.telegram_media_downloader.utils.meta_data import MetaData _mimetypes = MimeTypes() _mimetypes.readfp(StringIO(mime_types)) diff --git a/src/parsers/Telegram/telegram_media_downloader/module/web.py b/src/parsers/Telegram/telegram_media_downloader/module/web.py index 4f00e1d..fd3c910 100644 --- a/src/parsers/Telegram/telegram_media_downloader/module/web.py +++ b/src/parsers/Telegram/telegram_media_downloader/module/web.py @@ -8,16 +8,16 @@ from flask import Flask, jsonify, render_template, request import utils from flask_login import LoginManager, UserMixin, login_required, login_user -from module.app import Application -from module.download_stat import ( +from src.parsers.Telegram.telegram_media_downloader.module.app import Application +from src.parsers.Telegram.telegram_media_downloader.module.download_stat import ( DownloadState, get_download_result, get_download_state, get_total_download_speed, set_download_state, ) -from utils.crypto import AesBase64 -from utils.format import format_byte +from src.parsers.Telegram.telegram_media_downloader.utils.crypto import AesBase64 +from src.parsers.Telegram.telegram_media_downloader.utils.format import format_byte log = logging.getLogger("werkzeug") log.setLevel(logging.ERROR)