Commit graph

95 commits

Author SHA1 Message Date
Tomáš Mládek
66b12c2caf check before trying to add to markov 2019-07-03 16:26:05 +02:00
7b6e15cae6 add db, set protected chats/tags dynamically 2019-06-25 15:49:25 +02:00
bfcecc7cf1 Merge remote-tracking branch 'origin/master' 2019-06-12 16:23:53 +02:00
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
60601ea061 avoid infinite loops in case of 403 errors 2019-05-31 17:53:40 +02:00
ae09a1d981 slight change in /retag (" - " instead of "-" is the artist/title split) 2019-05-29 15:58:16 +02:00
558e723948 attempt to handle 403 errors 2019-05-29 13:50:44 +02:00
12f625a432 ydl -> ytdl (cosmetics; ocd) 2019-05-29 13:45:56 +02:00
4c585496a9 remember tags and last downloaded per each chat 2019-05-29 13:43:08 +02:00
e291a41ea9 add /retag command 2019-05-29 10:25:34 +02:00
d6372671be warning about missing markov; returns '???' when generation failed 2019-05-29 10:25:15 +02:00
00397b2dac fix #text reply message, for good 2019-05-28 17:53:35 +02:00
2a54a8a308 Merge branch 'feature-unify_handlers' 2019-05-28 17:44:38 +02:00
fdfda353fc move commandhandlers further up 2019-05-28 17:39:39 +02:00
64d0080885 fix incorrect reply_message when handling text 2019-05-28 16:48:02 +02:00
903ad07e3c unify all handlers into one for clarity and proper text message handling
(first try)
2019-05-28 15:43:45 +02:00
ed81096071 fallback on all non-critical config options 2019-05-28 12:29:27 +02:00
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
2027b80fb6 do NOT sanitize ytdl filename; this breaks tagging and moving 2019-05-23 23:37:08 +02:00
71a5fd3522 unicode normalize in sanitize function 2019-05-23 14:36:12 +02:00
89db7e885a broaden sanitization slightly 2019-05-22 15:24:16 +02:00
bfbc225d0e sanitize filenames 2019-05-22 15:21:25 +02:00
4059ce6366 don't ignore protected tags completely, download to PUBLIC/ instead 2019-05-22 12:12:16 +02:00
4d74e08b00 cosmetics; make clear that the first hashtag is a special one 2019-05-22 12:11:52 +02:00
4f0f6cfc59 handle 'id' possibly missing in tumblr response, refactor tumblr upload 2019-05-20 11:55:08 +02:00
Tomáš Mládek
48bb352d11 fix last hashtag detection 2019-05-19 11:11:27 +02:00
Tomáš Mládek
186450d1c7 liven up the rejection replies 2019-05-18 14:33:06 +02:00
Tomáš Mládek
6d10fae743 protected chats & tags 2019-05-18 14:28:23 +02:00
a9d5967996 respect chat for last_hashtag and /delete command 2019-05-16 15:33:38 +02:00
fbb78e4316 add 1hr timeout to hashtags; forget last_hashtag in handle() 2019-05-16 15:19:20 +02:00
f86c5cbc4d don't override artist in tags unless necessary 2019-05-15 11:50:48 +02:00
ddd1ee3616 return empty array instead of None when no hashtags found 2019-05-15 11:43:05 +02:00
6a660206c8 also mention type on exception catch 2019-05-15 11:28:36 +02:00
6300ed6438 fix 'dir' variable names shadowing dir(); add noinspection comments
(shut pycharm's mouth)
2019-05-15 11:21:35 +02:00
949008cb05 tumblr updates (see details); fixed initial "/" in /delete
- /delete also cancels queued or deletes published tumblr posts
- tumblr blog name in config
2019-05-15 11:18:11 +02:00
6ad4eadd79 Merge remote-tracking branch 'origin/master' 2019-05-14 23:40:49 +02:00
723008e451 download into subdirectories when multiple hashtags present (fix #2) 2019-05-14 23:36:42 +02:00
Tomáš Mládek
d308f48a1e less strict filter for raw url downloads 2019-05-04 23:27:28 +02:00
Tomáš Mládek
9471aad4ba don't try to tag unnecessarily 2019-05-03 11:45:46 +02:00
Tomáš Mládek
56635b60f1 remove hardcoded /var/tmp 2019-05-03 11:41:54 +02:00
Tomáš Mládek
4ac19409b5 whoops; title is not 'title' (fix files not getting tagged) 2019-05-03 11:38:53 +02:00
3368f27588 fix tag function logging; don't try to tag with None 2019-05-02 19:29:58 +02:00
e5c66265f3 fix tagging directly sent files 2019-05-02 19:26:39 +02:00
c4352df8fc initial.txt fallback (no markov) 2019-05-02 19:26:25 +02:00
617f6cc6f3 add acoustid (?) 2019-05-02 19:18:35 +02:00
265447ed76 add a /delete command 2019-05-02 15:53:49 +02:00