Commit Graph

153 Commits (master)

Author SHA1 Message Date
Tomáš Mládek ef25273b20 upgrade python-telegram-bot
also fix minor type errors
2021-09-14 17:05:27 +02:00
Tomáš Mládek 9869f5abbf newest youtube-dl always 2021-09-14 16:54:22 +02:00
Tomáš Mládek 0d6914d14d basic splitting 2021-09-14 16:06:10 +02:00
Tomáš Mládek 6b7949e1a1 add basic typing 2021-09-14 16:03:55 +02:00
Tomáš Mládek 604a1378b7 reformat w/ black 2021-09-14 14:08:57 +02:00
Tomáš Mládek 0394c10616 migrate to poetry 2021-09-13 11:13:56 +02:00
Tomáš Mládek 39cbfb851a handle no redirects in config 2019-11-07 16:29:29 +01:00
Tomáš Mládek 409ffc4b7e redirection of specific tags into other folders 2019-11-07 16:24:30 +01:00
Tomáš Mládek c7297f4d27 fix no-arg /retag 2019-11-07 16:01:27 +01:00
Tomáš Mládek ef454338ae add /queue command 2019-10-24 14:11:33 +02:00
Tomáš Mládek e51f42a32e reverse tags by default if no other /retag argument given 2019-10-22 15:41:08 +02:00
Tomáš Mládek 099e3322b1 reroute hashtag to its _ prefixed version if it exists 2019-10-03 13:10:24 +02:00
Tomáš Mládek 2e416d3412 improved logging 2019-08-29 10:08:21 +02:00
Tomáš Mládek d19512e3eb debug logger for all received tg messages 2019-08-28 11:41:51 +02:00
Tomáš Mládek 49cdb48bba limit /orphan and /stats cmds to protected chats to curb trolling 2019-08-28 11:31:52 +02:00
Tomáš Mládek a5c1b724ab add drive space check 2019-07-25 11:25:35 +02:00
Tomáš Mládek 9fe9c81586 prevent unnecessary "file too big" errors (?) 2019-07-25 11:05:52 +02:00
Tomáš Mládek 0369b98ff2 replace acoustid's ";" artist separator with "&" 2019-07-16 12:03:46 +02:00
Tomáš Mládek 66b12c2caf check before trying to add to markov 2019-07-03 16:26:05 +02:00
Tomáš Mládek 645570adc6 update gitignore 2019-06-25 17:08:17 +02:00
Tomáš Mládek 7b6e15cae6 add db, set protected chats/tags dynamically 2019-06-25 15:49:25 +02:00
Tomáš Mládek bfcecc7cf1 Merge remote-tracking branch 'origin/master' 2019-06-12 16:23:53 +02:00
Tomáš Mládek 0c45a0a5da add retval to handle() fn, stop processing message on first success 2019-06-12 16:23:36 +02:00
Tomáš Mládek a33e341794 upload mp4s to tumblr as gifs (fixes #7) 2019-05-31 19:43:22 +02:00
Tomáš Mládek 45a7594ef3 fix crash on no Tumblr 2019-05-31 19:39:43 +02:00
Tomáš Mládek ff5526eeed wrangle all audio files to 44.1k for proper crossfading 2019-05-31 17:57:31 +02:00
Tomáš Mládek 29dcef7e29 `pip-compile --upgrade` 2019-05-31 17:55:04 +02:00
Tomáš Mládek 60601ea061 avoid infinite loops in case of 403 errors 2019-05-31 17:53:40 +02:00
Tomáš Mládek ae09a1d981 slight change in /retag (" - " instead of "-" is the artist/title split) 2019-05-29 15:58:16 +02:00
Tomáš Mládek 558e723948 attempt to handle 403 errors 2019-05-29 13:50:44 +02:00
Tomáš Mládek 12f625a432 ydl -> ytdl (cosmetics; ocd) 2019-05-29 13:45:56 +02:00
Tomáš Mládek 4c585496a9 remember tags and last downloaded per each chat 2019-05-29 13:43:08 +02:00
Tomáš Mládek 194b59f89c add out to .gitignore 2019-05-29 10:32:44 +02:00
Tomáš Mládek 83bf7ea080 rudimentary README 2019-05-29 10:32:23 +02:00
Tomáš Mládek e291a41ea9 add /retag command 2019-05-29 10:25:34 +02:00
Tomáš Mládek d6372671be warning about missing markov; returns '???' when generation failed 2019-05-29 10:25:15 +02:00
Tomáš Mládek 00397b2dac fix #text reply message, for good 2019-05-28 17:53:35 +02:00
Tomáš Mládek 2a54a8a308 Merge branch 'feature-unify_handlers' 2019-05-28 17:44:38 +02:00
Tomáš Mládek fdfda353fc move commandhandlers further up 2019-05-28 17:39:39 +02:00
Tomáš Mládek 64d0080885 fix incorrect reply_message when handling text 2019-05-28 16:48:02 +02:00
Tomáš Mládek 903ad07e3c unify all handlers into one for clarity and proper text message handling
(first try)
2019-05-28 15:43:45 +02:00
Tomáš Mládek ed81096071 fallback on all non-critical config options 2019-05-28 12:29:27 +02:00
Tomáš Mládek 56bfaa7bc5 add a handling function for #text samples (has issues)
specifically, any message with links gets still handled by tg_handle_url
instead.
2019-05-28 12:29:27 +02:00
Tomáš Mládek d782ce8c48 change tagging logic (>.8 acoustid trumps all; >.4 acoustid fallback) 2019-05-24 00:05:17 +02:00
Tomáš Mládek 2027b80fb6 do NOT sanitize ytdl filename; this breaks tagging and moving 2019-05-23 23:37:08 +02:00
Tomáš Mládek 71a5fd3522 unicode normalize in sanitize function 2019-05-23 14:36:12 +02:00
Tomáš Mládek 89db7e885a broaden sanitization slightly 2019-05-22 15:24:16 +02:00
Tomáš Mládek bfbc225d0e sanitize filenames 2019-05-22 15:21:25 +02:00
Tomáš Mládek 4059ce6366 don't ignore protected tags completely, download to PUBLIC/ instead 2019-05-22 12:12:16 +02:00
Tomáš Mládek 4d74e08b00 cosmetics; make clear that the first hashtag is a special one 2019-05-22 12:11:52 +02:00