mykola2312
|
524b7970e0
|
make SqlitePool a dptree dependency, so handlers would have access to database
|
2024-02-26 00:42:28 +02:00 |
|
mykola2312
|
f87834a4f4
|
begin embedding sqlx into teloxide handlers
|
2024-02-25 23:44:05 +02:00 |
|
mykola2312
|
1129baa702
|
add sqlx crate
|
2024-02-25 22:43:29 +02:00 |
|
mykola2312
|
64d1f67e16
|
move generic bot download function to its own function to avoid code duplication
|
2024-02-24 15:23:57 +02:00 |
|
mykola2312
|
83136d7158
|
write function to parse url via url crate
|
2024-02-24 15:20:38 +02:00 |
|
mykola2312
|
a1515522a4
|
add warning to spawn function
|
2024-02-24 14:55:37 +02:00 |
|
mykola2312
|
2dba73a464
|
add testing for url extraction
|
2024-02-24 14:47:57 +02:00 |
|
mykola2312
|
95a341f77c
|
write function to find all urls in text
|
2024-02-24 14:32:08 +02:00 |
|
mykola2312
|
0aa70432d5
|
add new dependencies to dockerfile, fix broken copy layers
|
2024-02-21 22:39:24 +02:00 |
|
mykola2312
|
910245061e
|
there is vulnerability related to argument injection
|
2024-02-21 22:38:24 +02:00 |
|
mykola2312
|
8b9a7a0bcc
|
remove message log spam
|
2024-02-21 21:39:41 +02:00 |
|
mykola2312
|
ed236c0d53
|
clean main
|
2024-02-21 21:04:43 +02:00 |
|
mykola2312
|
1fd2c2be30
|
implement bot command to download video
|
2024-02-21 21:04:21 +02:00 |
|
mykola2312
|
475f2a92db
|
delete tmp file if error happens
|
2024-02-21 20:28:31 +02:00 |
|
mykola2312
|
c337c6ea98
|
finish implementing download function
|
2024-02-21 19:27:01 +02:00 |
|
mykola2312
|
6300a0cbfc
|
use result for better error handling dx
|
2024-02-21 19:25:15 +02:00 |
|
mykola2312
|
2aa3974896
|
implementing some downloady stuff
|
2024-02-21 19:19:54 +02:00 |
|
mykola2312
|
c2027ba0f8
|
implement yt-dlp download
|
2024-02-21 19:06:23 +02:00 |
|
mykola2312
|
a3217274e3
|
begin implementing generic download function
|
2024-02-21 18:48:03 +02:00 |
|
mykola2312
|
d8ea0e7490
|
do renaming for command handlers so it wouldn't conflict with other functions
|
2024-02-21 18:42:09 +02:00 |
|
mykola2312
|
f9682f28d2
|
add -y option to ffmpeg so it wont stuck prompting for confirmation
|
2024-02-21 17:21:27 +02:00 |
|
mykola2312
|
1e747bd0bc
|
add tests to check best format finding functions
|
2024-02-21 15:05:18 +02:00 |
|
mykola2312
|
0bee30ea0a
|
move everything related to telegram bot to appropriate module
|
2024-02-21 14:52:54 +02:00 |
|
mykola2312
|
cdcd9f7fe6
|
mp3 converting with ffmpeg works
|
2024-02-21 14:35:07 +02:00 |
|
mykola2312
|
3816d2c229
|
introduce unit testing
|
2024-02-21 14:17:21 +02:00 |
|
mykola2312
|
e3a4e5b976
|
implement mp3 bitrate rounding up
|
2024-02-20 23:04:41 +02:00 |
|
mykola2312
|
343a86657e
|
make yt-dlp error message its own enum type
|
2024-02-20 21:06:47 +02:00 |
|
mykola2312
|
71ab0e76bd
|
make separate process spawn function with error types to avoid code duplication
|
2024-02-20 21:01:41 +02:00 |
|
mykola2312
|
64e08e29f8
|
begin implementing ffmpeg interface
|
2024-02-20 20:26:45 +02:00 |
|
mykola2312
|
e35f84cdc3
|
implement function to find best audio format
|
2024-02-20 16:39:15 +02:00 |
|
mykola2312
|
b6f5dc234d
|
rename to av because its video with audio
|
2024-02-20 16:09:11 +02:00 |
|
mykola2312
|
9048693a15
|
instead of sorting just find max width height format
|
2024-02-20 16:06:58 +02:00 |
|
mykola2312
|
1cef56d964
|
implement function to find best quality video format
|
2024-02-20 14:24:19 +02:00 |
|
mykola2312
|
33c49cc56f
|
check exit status instead of stdout empty & stderr non-empty. also begin working on algorithm to determine best format
|
2024-02-19 20:24:20 +02:00 |
|
mykola2312
|
28771f3e28
|
implement pretty output for YtDlpFormat
|
2024-02-19 14:50:44 +02:00 |
|
mykola2312
|
4c6804a76f
|
fix yt-dlp's "none" string value to real None variant
|
2024-02-19 14:37:19 +02:00 |
|
mykola2312
|
852f27ca73
|
impl From traits for error type for easy usage
|
2024-02-19 14:20:04 +02:00 |
|
mykola2312
|
e958d4ef0e
|
implement YtDlpError
|
2024-02-19 13:46:27 +02:00 |
|
mykola2312
|
2e57b92e32
|
use tokio process instead of sync one
|
2024-02-19 13:12:52 +02:00 |
|
mykola2312
|
5f3f2096e8
|
cargo fmt
|
2024-02-19 12:48:40 +02:00 |
|
mykola2312
|
87d25880f6
|
implement async process spawning
|
2024-02-19 12:48:10 +02:00 |
|
mykola2312
|
1b0b3972cd
|
add yt-dlp json struct deserializers
|
2024-02-19 11:44:55 +02:00 |
|
mykola2312
|
4c10d81839
|
add serde
|
2024-02-19 11:41:27 +02:00 |
|
mykola2312
|
2619da8e05
|
begin working on yt-dlp wrapper
|
2024-02-19 11:33:39 +02:00 |
|
mykola2312
|
22987242f7
|
move to bot_main so I can test program without running huge teloxide
|
2024-02-19 11:33:20 +02:00 |
|
mykola2312
|
1970eeb1ec
|
adjust dockerfile so only required files are copied instead of everything
|
2024-02-19 09:44:35 +02:00 |
|
mykola2312
|
f8622d062e
|
remove pyo3
|
2024-02-19 09:29:43 +02:00 |
|
mykola2312
|
ddd737a447
|
Merge branch 'develop'
|
2024-02-18 21:05:18 +02:00 |
|
mykola2312
|
29c3c7a0e5
|
add dockerignore
|
2024-02-18 21:04:48 +02:00 |
|
mykola2312
|
20f9aec334
|
add todo reminder to ditch pyo3 ffi because of lack subinterpreter support
|
2024-02-18 20:02:32 +02:00 |
|