├── .dockerignore ├── .gitignore ├── .idea ├── .gitignore ├── downly.iml ├── modules.xml └── vcs.xml ├── .python-version ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── compose.development.yaml ├── compose.yaml ├── downly ├── __init__.py ├── __main__.py ├── clients │ ├── rabbitmq.py │ └── telegram.py ├── config │ └── __init__.py ├── database │ ├── __init__.py │ ├── downloads_sql.py │ ├── migrations │ │ ├── V1__create_user_tables.sql │ │ ├── V2__create_chats_table.sql │ │ ├── V3__create_downloads_table.sql │ │ ├── V4__add_timestamps_users.sql │ │ ├── V5__add_timestamps_chats.sql │ │ └── V6__add_timestamps_downloads.sql │ └── users_sql.py ├── downly.py ├── engine │ └── cobalt.py ├── handlers │ ├── __init__.py │ ├── stream_downloader.py │ └── youtube_downloader.py ├── models │ └── config.py ├── monitor │ └── __init__.py ├── plugins │ ├── download.py │ ├── logger.py │ ├── start.py │ ├── stats.py │ └── welcome.py ├── rabbitmq │ ├── __init__.py │ ├── callbacks │ │ ├── chat_state_updater.py │ │ ├── user_state_updater.py │ │ └── worker_success_event.py │ ├── consumer.py │ ├── publisher.py │ ├── registry.py │ └── types.py └── utils │ ├── b_logger.py │ ├── bot_info.py │ ├── fire_and_forget.py │ ├── fs_utils.py │ ├── loader.py │ ├── message.py │ ├── progress.py │ ├── send_video.py │ ├── validator.py │ └── yaml_utils.py ├── pyproject.toml ├── requirements.txt ├── ruff.toml ├── sample-config.yaml ├── uv.lock └── worker ├── .gitignore ├── Dockerfile ├── config └── config.go ├── go.mod ├── go.sum ├── main.go ├── rabbitmq ├── client.go ├── consumer.go └── publisher.go └── services ├── cobalt.go ├── downloader.go └── ytdl.go /.dockerignore: -------------------------------------------------------------------------------- 1 | downloads 2 | *.session 3 | postgres-data -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/.idea/.gitignore -------------------------------------------------------------------------------- /.idea/downly.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/.idea/downly.iml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.11 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/README.md -------------------------------------------------------------------------------- /compose.development.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/compose.development.yaml -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/compose.yaml -------------------------------------------------------------------------------- /downly/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/__init__.py -------------------------------------------------------------------------------- /downly/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/__main__.py -------------------------------------------------------------------------------- /downly/clients/rabbitmq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/clients/rabbitmq.py -------------------------------------------------------------------------------- /downly/clients/telegram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/clients/telegram.py -------------------------------------------------------------------------------- /downly/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/config/__init__.py -------------------------------------------------------------------------------- /downly/database/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/__init__.py -------------------------------------------------------------------------------- /downly/database/downloads_sql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/downloads_sql.py -------------------------------------------------------------------------------- /downly/database/migrations/V1__create_user_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V1__create_user_tables.sql -------------------------------------------------------------------------------- /downly/database/migrations/V2__create_chats_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V2__create_chats_table.sql -------------------------------------------------------------------------------- /downly/database/migrations/V3__create_downloads_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V3__create_downloads_table.sql -------------------------------------------------------------------------------- /downly/database/migrations/V4__add_timestamps_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V4__add_timestamps_users.sql -------------------------------------------------------------------------------- /downly/database/migrations/V5__add_timestamps_chats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V5__add_timestamps_chats.sql -------------------------------------------------------------------------------- /downly/database/migrations/V6__add_timestamps_downloads.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/migrations/V6__add_timestamps_downloads.sql -------------------------------------------------------------------------------- /downly/database/users_sql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/database/users_sql.py -------------------------------------------------------------------------------- /downly/downly.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/downly.py -------------------------------------------------------------------------------- /downly/engine/cobalt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/engine/cobalt.py -------------------------------------------------------------------------------- /downly/handlers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downly/handlers/stream_downloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/handlers/stream_downloader.py -------------------------------------------------------------------------------- /downly/handlers/youtube_downloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/handlers/youtube_downloader.py -------------------------------------------------------------------------------- /downly/models/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/models/config.py -------------------------------------------------------------------------------- /downly/monitor/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/monitor/__init__.py -------------------------------------------------------------------------------- /downly/plugins/download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/plugins/download.py -------------------------------------------------------------------------------- /downly/plugins/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/plugins/logger.py -------------------------------------------------------------------------------- /downly/plugins/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/plugins/start.py -------------------------------------------------------------------------------- /downly/plugins/stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/plugins/stats.py -------------------------------------------------------------------------------- /downly/plugins/welcome.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/plugins/welcome.py -------------------------------------------------------------------------------- /downly/rabbitmq/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downly/rabbitmq/callbacks/chat_state_updater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/callbacks/chat_state_updater.py -------------------------------------------------------------------------------- /downly/rabbitmq/callbacks/user_state_updater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/callbacks/user_state_updater.py -------------------------------------------------------------------------------- /downly/rabbitmq/callbacks/worker_success_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/callbacks/worker_success_event.py -------------------------------------------------------------------------------- /downly/rabbitmq/consumer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/consumer.py -------------------------------------------------------------------------------- /downly/rabbitmq/publisher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/publisher.py -------------------------------------------------------------------------------- /downly/rabbitmq/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/registry.py -------------------------------------------------------------------------------- /downly/rabbitmq/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/rabbitmq/types.py -------------------------------------------------------------------------------- /downly/utils/b_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/b_logger.py -------------------------------------------------------------------------------- /downly/utils/bot_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/bot_info.py -------------------------------------------------------------------------------- /downly/utils/fire_and_forget.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/fire_and_forget.py -------------------------------------------------------------------------------- /downly/utils/fs_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/fs_utils.py -------------------------------------------------------------------------------- /downly/utils/loader.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /downly/utils/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/message.py -------------------------------------------------------------------------------- /downly/utils/progress.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/progress.py -------------------------------------------------------------------------------- /downly/utils/send_video.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/send_video.py -------------------------------------------------------------------------------- /downly/utils/validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/validator.py -------------------------------------------------------------------------------- /downly/utils/yaml_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/downly/utils/yaml_utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/requirements.txt -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/ruff.toml -------------------------------------------------------------------------------- /sample-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/sample-config.yaml -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/uv.lock -------------------------------------------------------------------------------- /worker/.gitignore: -------------------------------------------------------------------------------- 1 | downly 2 | -------------------------------------------------------------------------------- /worker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/Dockerfile -------------------------------------------------------------------------------- /worker/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/config/config.go -------------------------------------------------------------------------------- /worker/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/go.mod -------------------------------------------------------------------------------- /worker/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/go.sum -------------------------------------------------------------------------------- /worker/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/main.go -------------------------------------------------------------------------------- /worker/rabbitmq/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/rabbitmq/client.go -------------------------------------------------------------------------------- /worker/rabbitmq/consumer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/rabbitmq/consumer.go -------------------------------------------------------------------------------- /worker/rabbitmq/publisher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/rabbitmq/publisher.go -------------------------------------------------------------------------------- /worker/services/cobalt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/services/cobalt.go -------------------------------------------------------------------------------- /worker/services/downloader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/services/downloader.go -------------------------------------------------------------------------------- /worker/services/ytdl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meanii/downly/HEAD/worker/services/ytdl.go --------------------------------------------------------------------------------