Commit Graph

180 Commits

Author SHA1 Message Date
Xevion
66c2ff228c PyCharm grand repo wide reformat 2020-03-08 20:21:18 -05:00
Xevion
6aeb41249c update readme to remove full link, show shorthand 2020-01-05 04:52:10 -06: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
68708fde93 fix README for HOSTING.md file 2020-01-05 02:50:30 -06:00
Xevion
d5aaf63811 fix gitignore for IDEA folders 2020-01-05 02:50:15 -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
b9a76d87f4 update pipreqs to current
flask-limiter brought in new requirements
2019-12-25 12:30:09 -06:00
Xevion
c2fadbfb08 remove features tab, add hosting about and start modularization of documentation 2019-12-25 12:28:37 -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
5a42049ab0 update pip freeze requirements.txt into a pipreqs txt 2019-12-25 03:00:14 -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
Xevion
99c702c306 mention spotify explicit integration (we don't amend here, brother) 2019-12-23 19:07:37 -06:00
Xevion
cd203f6d9d remove random API file (why was this here?) 2019-12-23 18:57:57 -06:00
Xevion
9e603d9238 update README with latest project ideas/aspirations/direction of my website 2019-12-23 18:56:01 -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
393af89750 updated requirements with latest (yt-dl, mistune etc.) 2019-12-23 18:25:44 -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