Commit graph

86 commits

Author SHA1 Message Date
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
mykola2312
161138544e implement yt-dlp FFI and working bot command to download 2024-02-18 19:29:36 +02:00
mykola2312
14393d35be remove dead code 2024-02-18 19:12:21 +02:00
mykola2312
9929dc6606 set teloxide to upstream git instead of crates one to fix issues 2024-02-18 18:56:14 +02:00
mykola2312
8c8a4ad3ab begin implementing downloader functionality 2024-02-18 18:27:51 +02:00
mykola2312
eb6411dff1 add pyo3 crate 2024-02-18 18:27:19 +02:00
mykola2312
4810406453 add comments to dockerfile 2024-02-18 18:16:50 +02:00
mykola2312
33d7a988c6 use compose so env secrets could be passed to container 2024-02-18 12:47:45 +02:00
mykola2312
5d3fe21bb0 begin working on docker containerization 2024-02-18 12:11:31 +02:00
mykola2312
0fee28eb60 fix warnings 2024-02-18 10:57:03 +02:00
mykola2312
b2f2c33d9a add readme 2024-02-18 08:55:32 +02:00
mykola2312
dc4fd79ea6 add GPLv3 license 2024-02-18 08:40:37 +02:00
mykola2312
74bf64930a initial commit 2023-10-05 02:08:01 +03:00