Xevion
eaf046a78f
finish up correcting last typos left in project
2020-03-08 22:25:23 -05:00
Xevion
cfd56d9ebc
fix unreachable code in youtube/all service
2020-03-08 21:14:50 -05:00
Xevion
bc3cd82a95
PyCharm grand repo wide reformat with black formatter
2020-03-08 20:49:06 -05:00
Xevion
66c2ff228c
PyCharm grand repo wide reformat
2020-03-08 20:21:18 -05:00
Xevion
69c76599ad
finish up download error checking and returns, nearly finished with exception handling
...
nearly ready to deploy! at 4AM! end my life!
2020-01-05 04:42:30 -06:00
Xevion
f56ebd74d9
completed error checking dialogs for all routes using get_youtube method, split up subprocesses to log stderr and check for 0 returncode
2020-01-05 03:35:06 -06:00
Xevion
1ec65bc5f7
add list and all (status) routes
2019-12-25 17:30:06 -06:00
Xevion
7baf5164fd
change error message on global limiter
2019-12-25 02:59:19 -06:00
Xevion
98df7c7338
change stream key to static global
2019-12-25 02:48:26 -06:00
Xevion
b4d52fd7df
add key_func to disable warning, simplify custom download limiter
2019-12-25 02:42:41 -06:00
Xevion
248a2efb6c
changed responses into simple zero arg lambda, remove Response object from flask limiter error message, add else to getter/adder, ID validation to YouTube stream
...
I was noticing that a lot of the Responses I was creating were literal duplicates, so I decided to move them all into a function so I could change them all at will. This could support optional args later so I could generate better and more concise Responses.
2019-12-25 00:03:05 -06:00
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