166 Commits

Author SHA1 Message Date
Xevion
eaf046a78f finish up correcting last typos left in project 2020-03-08 22:25:23 -05:00
Xevion
10d2be14da fix invalid HTML form ids, fix HTML syntax invalid tag closing 2020-03-08 22:15:15 -05:00
Xevion
3c8d99245b "-ness" typo, remove global func shadow of id and print (pprint replace) 2020-03-08 22:12:52 -05:00
Xevion
56a6b09cb9 fix typos/spelling mistakes in hidden help.md file
still need to generate new hidden_help.html
2020-03-08 22:12:05 -05:00
Xevion
f90a449865 remove css syntax highlighting in spotify_explicit README file 2020-03-08 22:11:09 -05:00
Xevion
1c08a95593 make string replacement one step in panzer.py 2020-03-08 21:45:19 -05:00
Xevion
9865052202 don't use two different fonts for Panzer image generator 2020-03-08 21:43:24 -05:00
Xevion
295d99d01c fix weird javascript var vs let ECMA warning 2020-03-08 21:42:38 -05:00
Xevion
4abe94ba2b fix type check incorrect code in add_roles 2020-03-08 21:17:39 -05:00
Xevion
cfd56d9ebc fix unreachable code in youtube/all service 2020-03-08 21:14:50 -05:00
Xevion
3fe7a9744d make static based methods static 2020-03-08 20:54:34 -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
8642242f2a added small prints, checked last final things, ready for production "testing"
i did more testing, but it can't really be shown because apparently I got it the first try 👍
2020-01-05 04:51:06 -06: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
5076b782ee changed has_roles to has_role for singular role check
technically actually less direct when you look at the code, but inefficiency? I care not
2020-01-05 04:41:40 -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
ba7164b4a6 Audio quality changes, remove embed thumbnails for speed (?), start adding status code exceptions and better production error returns 2020-01-05 02:51:26 -06:00
Xevion
807ce2106c disable strict slashes check 2020-01-03 04:07:46 -06:00
Xevion
fdb30613fa increase global default limiter
this was way too low as it applied to routes on the home page, which would max someone out who just clicked on the links available freely
2019-12-25 17:31:00 -06:00
Xevion
1ec65bc5f7 add list and all (status) routes 2019-12-25 17:30:06 -06:00
Xevion
1751ec338d hidden history prep for jquery moment.js date script
still not familiar with javascript and why my script isn't working, needs more testing in a codepen or replit
2019-12-25 17:29:35 -06:00
Xevion
cb5e7e08b1 add comments to sound models
long overdue, probably not really necessary, but it's my own personal requirement
2019-12-25 04:58:58 -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
518d433172 updated delete method to attempt removal and procede on failure
still need a method to delete random files that get scattered in an attempted "conversion" attempt (these were left around when ffmpeg failed).
also need further excepts based on FileNotExistsError, PermissionError etc.
2019-12-24 23:52:23 -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
e0bba950db remove ffmpeg specification
this may be causing an error!
2019-12-24 20:10:31 -06:00
Xevion
af02f90aa3 hard specify ffmpeg, embed thumbnail
thumbnail may create longer wait time for return, ffmpeg may be temporary until droplet is restarted
2019-12-24 19:53:29 -06:00
Xevion
5a5cd155ef simple comment change for YouTubeAudio.download() segment 2019-12-24 19:46:08 -06:00
Xevion
f9bf9ba4b8 add delete function, fix -4 ipv4 argument on second download subprocess opening 2019-12-24 19:43:23 -06:00
Xevion
92442de38d made changes to remove access of youtube API again, moved to output template system without os.rename
hopefully this can avoid the annoying 429 calls 👍
2019-12-24 19:37:34 -06:00
Xevion
fd4ac8896d ipv4 only fix for youtube 429 ratelimiting
probably not gonna work in the long run
2019-12-24 19:22:51 -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
551eec8580 remove dumb commented out WIP faker factory stuff
finally clearing out the trash huh
2019-12-24 00:57:27 -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
67593c8f9b moved models into separate sound_models, started creating basic metadata filler functions 2019-12-24 00:51:44 -06:00
Xevion
6b96f2c422 create new YouTube & Soundcloud models in database 2019-12-24 00:23:29 -06:00
Xevion
d37cf59284 change base64 encoding message to "proxying" for more implicit description 2019-12-23 21:50:04 -06:00
Xevion
c1aa3b2272 swath of changes to remove hidden "id" implementation in favor of hidden "role" RBAC implement 2019-12-23 21:48:11 -06:00