fix paths
This commit is contained in:
parent
d3ebf18cd7
commit
1dc9d9b9b4
@ -1,3 +1,3 @@
|
||||
from module.filter import Filter
|
||||
from src.parsers.Telegram.telegram_media_downloader.module.filter import Filter
|
||||
|
||||
Filter()
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user