Commit Graph

166 Commits

Author SHA1 Message Date
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
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
d788c3c915 fixed location of where tracks where saved (sys.path error), image should now be built upon correct, most recent data 2019-12-23 15:30:00 -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
Xevion
8cb5e077a4 added full requirements file 2019-12-21 02:39:47 -06:00
Xevion
acf6aa10a2 Merge branch 'master' of github.com:Xevion/xevion.dev 2019-12-21 02:34:24 -06:00
Xevion
c87b9bdd7d updated Spotify to have a CACHE TIME config constant var, moved tracks folder to export inside Spotify explicit folder
the tracks folder was relative of the main WSGI python file due to me using my sys.path[0] method of finding the current folder the file was in, unfortunately this ends up being unreliable when put into practice
2019-12-21 02:34:11 -06:00
Xevion
2e4594138a added full integration of spotify explicit to the website with proper fixes needed 2019-12-21 02:28:15 -06:00
Xevion
03b3220e3c moved panzer into separate file, added 404 error handler, removed profile html page 2019-12-21 02:27:25 -06:00
Xevion
90ebaee9e7 removed profile route 2019-12-21 00:35:31 -06:00
Xevion
5c4e5b9e46 added 404, removing profile, updated index with google analytics 2019-12-21 00:35:01 -06:00