Commit Graph

20 Commits

Author SHA1 Message Date
Xevion
2a7f13c1ff fixed ratelimiting to proper "view" args of the request context, changed format to be more respectable, less hideous error message
kinda wanted to create a dynamically changing error message to properly convey which rate limit was hit, but that would mean 2 database accesses per error at worst (minimum)
2019-12-24 23:33:01 -06:00
Xevion
9961bf14f6 add initial flask rate limiting 2019-12-24 23:18:09 -06:00
Xevion
b3cf684272 fix access times not being updated, update comments with spelling/dupe mistake 2019-12-24 23:06:32 -06:00
Xevion
a86e0a7185 remove decode, proper return application/json mimetype, fix url being null
should have put in the url filling a long time ago, I just didn't wanna open up the massive JSON response and locate the key required. also, with this I'll have to clear the databases with new URLs (or maybe I should refresh all metadata?)
2019-12-24 22:49:00 -06:00
Xevion
88b7884e55 status modifications with new validation and JSONifiation methods 2019-12-24 22:10:57 -06:00
Xevion
3a2b3681ca change to text/plain, add initial status response 2019-12-24 20:52:55 -06:00
Xevion
d6124698af default 0 access count, added mini logging prints, fixed minor fails and mostly ready to implement proxies 2019-12-24 17:01:09 -06:00
Xevion
250b39b462 add access timestamp and count updates with session commits
not sure how well I'm doing the session commits, I need help lol
2019-12-24 03:17:11 -06:00
Xevion
5136af6e65 first portion of update towards using database based queries for duration and file streaming paths
so close
2019-12-24 01:39:08 -06:00
Xevion
cc87bf1834 db upgrade & update commit moment, remove last content remains 2019-12-24 00:59:43 -06:00
Xevion
5992b328e4 begin clearing out old sound functions, add downloader function
most of these are untested and definitely very buggy, just moving stuff around for now
2019-12-24 00:55:32 -06:00
Xevion
6b96f2c422 create new YouTube & Soundcloud models in database 2019-12-24 00:23:29 -06:00
Xevion
55bc0c95af overhauled checking of JSON database/folders with myriad of existence/error checking/data clearing measures. Pre-overhaul to SQLAlchemy based database system. 2019-12-23 18:43:54 -06:00
Xevion
e8d889456a update subprocess to Popen with subprocess.PIPE for Python 3.6 stdout piping support (no capture output kwarg) 2019-12-23 16:22:03 -06:00
Xevion
e792b11c1c still learning python - specify fp for json dump call 2019-12-23 15:47:57 -06:00
Xevion
5b1bbb828b creation new sounds directory check 2019-12-23 15:46:53 -06:00
Xevion
7c384f597b one day I'll learn - w+ with + for new file creationn 2019-12-23 15:45:06 -06:00
Xevion
871a109fa8 change file read to write minor error 2019-12-23 15:43:25 -06:00
Xevion
19169c4925 quick fix for a lack of filenames.json for new production server 2019-12-23 15:41:10 -06:00
Xevion
7f1a6a6e25 changed error page, MASSIVE new sound extension added with working YouTube duration, preparation and streaming API steps, wsgi random comment removal 2019-12-21 14:12:17 -06:00