Commit Graph

263 Commits (199a6c794f4726c0e8238d64b34802b195f34d20)

Author SHA1 Message Date
Aevann 1ed722c3b2 check file size via javascript to prevent unneedful upload of files that would get rejected by server for being too large 2023-08-12 21:28:21 +03:00
Aevann f0ac2fba2f chat error fix 2023-08-10 16:12:43 +03:00
Aevann 6d808bd006 deal with 500 error 2023-08-06 05:13:57 +03:00
Aevann e6e03bcde0 dont trust file extensions 2023-08-04 19:44:37 +03:00
Aevann b8dd67088b dont print shit i dont care about 2023-08-04 17:07:51 +03:00
Aevann 95d82073f3 fix some banners or sidebars not being uploaded when 1 of them is a repeat 2023-08-04 16:19:00 +03:00
Aevann ed7289ef71 fix visual bug 2023-08-04 16:03:46 +03:00
Aevann a0d40c94b5 make a piece of code a little prettier 2023-08-04 01:22:37 +03:00
Aevann 8caa93f9cd use {patron} 2023-08-02 00:56:17 +03:00
Aevann 467135421a Revert "enforce consistency for ffmpeg params"
This reverts commit 19b30e726b.
2023-07-31 03:25:47 +03:00
Aevann bd3a672c2d make thumbnail_thread not fail bc of idle_in_transaction_session_timeout 2023-07-30 04:35:12 +03:00
Aevann 8beb2d7e8e remove typing (useless code bloat) 2023-07-30 03:42:06 +03:00
Aevann b5c1bd2ca9 remove print statement giving info i dont care about 2023-07-30 03:01:02 +03:00
Aevann 19b30e726b enforce consistency for ffmpeg params 2023-07-29 21:50:09 +03:00
Aevann 5d8794ef5f get rid of ffmpeg console spam 2023-07-28 21:26:55 +03:00
Aevann 6f16ba3be0 enforce subprocess consistency 2023-07-28 20:01:56 +03:00
Aevann ab62bc501e dont change extension since we copy the encoding 2023-07-28 19:44:09 +03:00
Aevann f16d107ba5 mp4 supremacy 2023-07-28 19:40:44 +03:00
Aevann 088dd3b726 wipe the cache the correct video url in wpd 2023-07-28 02:04:58 +03:00
Aevann 77e16c017f remove unnecessary argument 2023-07-26 15:27:27 +03:00
Aevann a2eeefc058 dont put abort inside a gevent func 2023-07-23 18:16:00 +03:00
Aevann 74e9f21261 much more intuitive upload flow 2023-07-22 19:29:19 +03:00
float-trip a4d19ec391 Add Marseygen exception. (#171)
I'll submit a rollback tomorrow for this.

Co-authored-by: float-trip <float-trip@fsdfsd.net>
Reviewed-on: #171
Co-authored-by: float-trip <float-trip@noreply.fsdfsd.net>
Co-committed-by: float-trip <float-trip@noreply.fsdfsd.net>
2023-07-20 21:26:59 +00:00
Aevann 59dde6cfbc stop worker timeouts 2023-07-11 05:24:17 +03:00
Aevann 3964a27281 fix worker timeouts 2023-07-08 17:03:58 +03:00
Aevann 4d1b00d780 fix ./magick: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.10: cannot open shared object file: No such file or directory 2023-07-07 02:30:46 +03:00
Aevann bac356db1d make sure all usages of subprocess have timeout duration 2023-06-29 22:38:55 +03:00
Aevann daeaff2f02 support .m4a audio 2023-06-24 11:25:28 +03:00
Aevann 73e93e69fb Revert "increase max video size to 100MB"
This reverts commit 9cee89afc5.
2023-06-07 06:09:41 +03:00
Aevann 9cee89afc5 increase max video size to 100MB 2023-06-07 05:56:42 +03:00
Aevann 2067638d4c Revert "migrate images again"
This reverts commit 240bd7354c.
2023-05-17 09:12:17 +03:00
Aevann 240bd7354c migrate images again 2023-05-16 11:47:16 +03:00
Aevann 1880048bf1 get rid of imei.sh and put the binary in the repo 2023-05-15 02:46:21 +03:00
Aevann 519fbef9a7 rename dm_images to dm_media 2023-05-12 18:27:46 +03:00
Aevann b4ef8c53de fix error message 2023-05-11 16:57:53 +03:00
Aevann 002fabaf0e test webhook 2023-05-09 23:12:34 +03:00
Aevann b851f35372 increase daily file limit from 75 to 100 2023-05-09 22:46:30 +03:00
Aevann f3a0080698 remove useless tabs 2023-05-06 00:47:07 +03:00
Aevann 26dae77c86 easier panel 2023-05-05 04:32:57 +03:00
Aevann 0dc8b5ccb1 don't use pomf for DM images anymore and allow for video and audio in DMs 2023-05-05 00:52:37 +03:00
Aevann f834514e1a fix deleting media 2023-03-25 17:07:12 +02:00
Aevann 54cd63093f increase daily file limit to 75 2023-03-22 09:47:22 +02:00
Aevann 0a12e0c069 fix minor annoyance when uploading files 2023-03-21 20:35:31 +02:00
Aevann a88fb10455 restore autoflush 2023-03-18 15:11:30 +02:00
Aevann 2c95c75940 stop asset submissions from erroring 2023-03-18 07:42:34 +02:00
Aevann 335c572aaf fix undefined variable 2023-03-18 07:41:22 +02:00
Aevann 8d096e1123 put a space before file link too 2023-03-17 19:40:55 +02:00
Aevann 0b0ad438a8 add SITE_FULL_IMAGES const 2023-03-17 17:57:31 +02:00
Aevann 127eae8379 fix image upload in localhost 2023-03-17 15:04:58 +02:00
Aevann bdeb32b3cf in process_dm_images, check if it is actually an image (using pillow) 2023-03-17 13:00:54 +02:00
Aevann 9e30061d6d remove conditions from "except" to make sure the file removal always happens 2023-03-17 13:00:10 +02:00
Aevann 023b398759 remove Media query i dont remember the purpose of 2023-03-17 12:50:49 +02:00
Aevann 32910c5cf5 remove new files if they exist too 2023-03-17 12:50:19 +02:00
Aevann 0dc9e1e35a wipe metadata from audio files - also serving as anti-malware 2023-03-17 12:50:13 +02:00
Aevann 3eabcdb950 dont use remove_media in media.py 2023-03-17 12:25:31 +02:00
Aevann 1190c9d063 wrap all subprocess commands we use in media.py in try except to delete old files 2023-03-17 12:23:06 +02:00
Aevann 3365e933df only use audio/video extensions that CF caches by default 2023-03-17 11:39:01 +02:00
Aevann 57765f0776 revert sqlalchemy changes 2023-03-16 08:27:58 +02:00
Aevann 3de34c9a65 Merge branch 'keep-session-open' of https://fsdfsd.net/rDrama/rDrama 2023-03-15 08:02:47 +02:00
Aevann f5682dd483 fix video and audio links 2023-03-15 08:00:02 +02:00
Aevann f768d81103 keep db sessions open 2023-03-15 05:58:00 +02:00
Aevann 903fb21961 fix images again 2023-03-15 05:07:43 +02:00
Aevann bc9eeba998 same as last commit 2023-03-15 04:53:37 +02:00
Aevann 77d8dd8737 print debugging 2023-03-15 04:53:15 +02:00
Aevann 59159ee79b fix last commit 2023-03-15 04:49:26 +02:00
Aevann da19ef96d1 fix images again 2023-03-15 04:46:54 +02:00
Aevann b48a7dd129 fix images 2023-03-14 15:35:31 +02:00
Aevann 60c2f7e628 same as last commit 2023-03-14 10:19:02 +02:00
Aevann 4644e62c99 fix last commit 2023-03-14 10:11:45 +02:00
Aevann 5ce067ed70 remove file size alerts 2023-03-14 08:19:01 +02:00
Aevann 97608ea0a9 test getting rid of ![]( on devrama 2023-03-12 15:02:31 +02:00
Aevann 349d1975d7 fucking 2023-03-07 22:38:22 +02:00
Aevann 3afecb326b fix videos and image on WPD 2023-03-07 22:33:12 +02:00
Aevann 042e779ca3 increase threshold for size printing 2023-03-07 12:20:42 +02:00
Aevann 92ac8d1dcc convert KB values to int 2023-03-07 07:19:47 +02:00
Aevann 4909db3e1e print sizes in KB 2023-03-07 03:53:05 +02:00
Aevann 57908aabf2 exclude jannoids with USE_ADMIGGER_THREADS perm from 50 files ratelimit 2023-03-07 02:46:51 +02:00
Aevann 1738f11f9c put the abort after the printing in media_ratelimit 2023-03-07 02:46:09 +02:00
Aevann e3fbc1a965 restrict printing to only large size difference 2023-03-07 02:21:12 +02:00
Aevann d3b14c3f30 use the i subdomain in rdrama only 2023-03-06 23:48:31 +02:00
Aevann 5d266835d0 print to console when size after conversion is higher than size before 2023-03-06 22:49:34 +02:00
Aevann 2ac830467b use STARS const 2023-03-06 22:49:01 +02:00
Aevann 873292d60d make remove_media() to fix 500 error 2023-03-06 21:32:08 +02:00
Aevann 4b6384d71d stop auto-apppending ![](, pointless now 2023-03-06 20:48:31 +02:00
Aevann 9117fd21cc fix all videos on wpd 2023-03-06 19:24:49 +02:00
Aevann a6121849d4 make image on localhost work 2023-03-06 19:20:06 +02:00
Aevann da806fbf4d fix cutoff 2023-03-06 18:58:27 +02:00
Aevann 5d9f9ef414 give the url of the existing image in the error 2023-03-06 18:37:43 +02:00
Aevann 9939614711 use i. subdomain for images 2023-03-05 21:33:18 +02:00
Aevann 0084de4273 add print statement to duplicate detection 2023-03-05 12:11:50 +02:00
Aevann 2d9580c30c print to console when 50 limit is hit 2023-02-27 18:25:58 +02:00
Aevann 8342e8b7c3 increase the limit from 8 files to 20 files 2023-02-27 18:05:28 +02:00
Aevann 5b71b0a81a refactor file upload 2023-02-27 17:02:35 +02:00
Aevann 6e200d332e use [file] instead of <file> 2023-02-27 07:24:26 +02:00
Aevann 1125d4e0e3 fix text-only messages not working 2023-02-26 14:54:36 +02:00
Aevann aec0bbc7bd dont give error when body is missing <file> 2023-02-26 14:46:38 +02:00
Aevann 663cdde1f4 increase the limit for concurrent file uploads from 4 to 8 2023-02-26 14:19:30 +02:00
Aevann 6ac9b32834 allow positioning of files 2023-02-26 14:08:37 +02:00
Aevann a395c18955 remove unnecessary tabs 2023-02-22 19:27:33 +02:00
Aevann b0fdd78d8b log timestamp in dm_images 2023-02-22 19:21:16 +02:00