Commit graph

170 commits

Author SHA1 Message Date
mykola2312
d8f18ce583 begin working on environment variables isolation 2024-04-01 06:41:06 +03:00
mykola2312
7fc55414ee cargo fmt 2024-03-31 19:41:11 +03:00
mykola2312
bcbdd4729b make download_format use spawn_pipe because of yt-dlp's undefined behavior related to file naming 2024-03-31 19:40:48 +03:00
mykola2312
d229e184dc finish making default downloader use spawn_pipe 2024-03-31 19:33:52 +03:00
mykola2312
48f8d93516 fix unit test for spawn_pipe 2024-03-31 19:29:31 +03:00
mykola2312
1b9770235d remove deprecated best_av_format since it useless for youtube now 2024-03-31 19:19:51 +03:00
mykola2312
39726c281f cargo fmt 2024-03-31 17:41:25 +03:00
mykola2312
a456da66a4 begin working on proper stdout / stderr piping because we need it for yt-dlp file output and proper stderr parsing on the fly (for progress bars in future) 2024-03-31 17:41:07 +03:00
mykola2312
6ac64055cc testing purposes 2024-03-31 16:37:57 +03:00
mykola2312
977f8839a5 add --no-exec option to harden security 2024-03-31 15:21:00 +03:00
mykola2312
b82b2ace4c just let yt-dlp choose default format, however we need to determine file extension or telegram may reject file 2024-03-31 14:55:14 +03:00
mykola2312
62bbaa5dab move sanitize to new security module that we're gonna extend for security hardening 2024-03-31 14:53:38 +03:00
mykola2312
b0afa21511 implement separate download logic for youtube and tiktok, allowing for better quality decisions. DI via enums 2024-03-30 09:03:03 +02:00
mykola2312
6599410768 we arent going to download from ftp lol 2024-03-30 06:50:27 +02:00
mykola2312
1fef3288ca bump version for next major release 2024-03-30 05:18:07 +02:00
mykola2312
a85e36f1f2 use tmp file struct instead of paths and manual file deletion 2024-03-30 05:11:46 +02:00
mykola2312
9cc888258f use telegram bot api only in production 2024-03-30 05:11:11 +02:00
mykola2312
82897a8e36 begin implementing tmp file struct for better file management 2024-03-30 04:39:56 +02:00
mykola2312
1c356eb899 fix jenkins pipeline bug so kubectl will restart deployment in mk-dl-bot namespace. I had to sage down to v0.1.1 for that fix 2024-03-29 14:08:28 +02:00
mykola2312
36f6d294fc increment version for next release 2024-03-16 13:36:38 +02:00
mykola2312
c3bea2890a fix tg config so it passes all required arguments 2024-03-16 12:03:11 +02:00
mykola2312
54e8158375 increment version to 0.1.1 for this rollout 2024-03-16 11:01:17 +02:00
mykola2312
ea193a8b0f implement telegram-bot-api StatefulSet and ClusterIP service 2024-03-16 10:48:56 +02:00
mykola2312
5bc4c47145 begin implementing k8s config for telegram-bot-api 2024-03-16 10:38:22 +02:00
mykola2312
1b46462051 make separate k8s namespace 2024-03-16 10:28:49 +02:00
mykola2312
d8e8b61020 rename 2024-03-16 05:53:08 +02:00
mykola2312
49fc4056ad always delete intermediate files 2024-03-16 05:52:39 +02:00
mykola2312
968eedc7ee implement audio and video stream downloading. doesnt work because of telegram api too large error 2024-03-16 05:48:40 +02:00
mykola2312
578d236c64 begin implementing 1080p downloading (requires both video and audio downloaded separately and joined) 2024-03-16 05:23:55 +02:00
mykola2312
240b05c03c cargo fmt 2024-03-16 03:03:45 +02:00
mykola2312
2910036a4c implement default format fallback 2024-03-16 03:03:33 +02:00
mykola2312
d3db232424 increment version 2024-03-15 22:03:20 +02:00
mykola2312
83bc58646a make jenkins apply new k8s configs 2024-03-15 21:26:13 +02:00
mykola2312
4aa86fd389 use version tags 2024-03-15 21:11:37 +02:00
mykola2312
960bd0eedf remove unnecessary command aliases 2024-03-15 20:18:42 +02:00
mykola2312
063af57cdb implement versioning 2024-03-15 20:18:00 +02:00
mykola2312
4ed75c0128 we will load env file only in debug builds 2024-03-14 19:05:46 +02:00
mykola2312
04f805b0d0 change tag 2024-03-14 02:47:36 +02:00
mykola2312
39c6ba4f69 fix tag 2024-03-14 02:41:38 +02:00
mykola2312
3587f91320 maybe withEnv would work 2024-03-14 02:31:27 +02:00
mykola2312
388495a340 add docker buildkit to jenkinsfile 2024-03-14 02:28:49 +02:00
mykola2312
a0d1828cf4 introduce jenkinsfile 2024-03-14 02:12:29 +02:00
mykola2312
2dcee126c7 implement k8s infrastructure 2024-03-09 17:33:14 +02:00
mykola2312
c75afc4163 rename folder 2024-03-09 15:53:27 +02:00
mykola2312
f93305ae6f update readme 2024-03-09 15:51:46 +02:00
mykola2312
2ad091e155 add locales to container and caching (tho it doesnt work) 2024-03-09 15:19:50 +02:00
mykola2312
56e56ef558 fix dockerfile 2024-03-09 07:25:09 +02:00
mykola2312
faec112523 implement proper docker compose with database 2024-03-09 07:23:26 +02:00
mykola2312
54d2f3081d load dotenv only in debug builds 2024-03-09 06:38:12 +02:00
mykola2312
98305e7dee fix bug related to chat permission requests when approve/decline commands may targeted wrong chats because of wrong sql query 2024-03-08 08:42:12 +02:00