summaryrefslogtreecommitdiff
path: root/app/app.go
AgeCommit message (Collapse)Author
2023-02-12refactor: Prepare to isolate handling of upload form from further processingHeinrich 'Henrik' Langos
This will allow to extract the handling of uploaded files. Once that is done, we can prepare to handle uploaded, and imported files more similar.
2023-02-12refactor: More comments, minor path handling helpers, extract upload target ↵Heinrich 'Henrik' Langos
selection
2023-02-12refactor: sort uploadhandler tasks and add commentsHeinrich 'Henrik' Langos
This is an in-between step. By commenting I explain to myself what the code does and should help with the refactoring.
2023-02-12refactor: Extract simple case that renders the upload form pageHeinrich 'Henrik' Langos
2023-02-12refactor: Change names of various file names and handles in upload handlerHeinrich 'Henrik' Langos
2023-02-12refactor: Change names of variables derived from the upload formHeinrich 'Henrik' Langos
For now, I want to make clearer to myself where the data comes from.
2023-02-12refactor(upload): Expand argument namesHeinrich 'Henrik' Langos
One-letter names are ok, in a pinch, for a three line loop. Using them in a 200 line function however is not recommended.
2023-01-21fix: Fix initial rendering of import page (#63)Heinrich 'Henrik' Langos
Without this, the GET request on the `import` function will fail. Reviewed-on: https://git.mills.io/prologic/tube/pulls/63 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-16preserve-video-filename (#49)Heinrich 'Henrik' Langos
This should fix issue #40 I have not made the `allowed_characters` configurable yet nor the `replacement_character`. Mostly because I couldn't decide if I should define those "globally" on a server basis, or on the library nodes. Feel free to modify, extend, rip apart. 😁 Reviewed-on: https://git.mills.io/prologic/tube/pulls/49 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-16improve logging at startup (#51)Heinrich 'Henrik' Langos
This bit me hard in the begining. While I was trying to figure out why tube I didn't show any files, it was silently creating directories all over the place. 😆 Reviewed-on: https://git.mills.io/prologic/tube/pulls/51 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-25feat: Make upload path selectable (#39)Heinrich 'Henrik' Langos
This works for me, but for a more public site, I think I'll also add a boolean attribute named "upload_allowed" and "writable" to Config.Library.. Something to allow you to configure which directories can receive new uploads, and which directories we consider writable for other purposes (like editing meta data in yml, creating new thumbnails, ...) Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io> Reviewed-on: https://git.mills.io/prologic/tube/pulls/39 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-25Normalize library path before adding and improve error logging (#38)Heinrich 'Henrik' Langos
I hope this PR closes #9 Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io> Reviewed-on: https://git.mills.io/prologic/tube/pulls/38 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-08Seriously wtfJames Mills
2022-09-24Add Sandstorm packaging files (#26)Jacob Weisz
I am not quite done here, I need to finish some of the packaging metadata, and I am going to maybe take a pass at permissions prior to release. Opening the pull request so you can easily track the progress. Note that Sandstorm app metadata is supposed to be less than 1 MB total, so I optimized your screenshots. I dare you to tell the difference with the naked eye. Co-authored-by: Jacob Weisz <inbox@jacobweisz.com> Reviewed-on: https://git.mills.io/prologic/tube/pulls/26 Co-authored-by: Jacob Weisz <ocdtrekkie@noreply@mills.io> Co-committed-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
2022-08-30Replace rice box with go embed (#25)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/25 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-25Optionally require auth for the /upload endpoint (#23)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/23 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-25Supply the seconds position where a thumbnail is generated (#22)gabek
Reviewed-on: https://git.mills.io/prologic/tube/pulls/22 Co-authored-by: gabek <gabek@noreply@mills.io> Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-01Add support for multi-arch binary and docker image releases (#20)James Mills
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
2021-07-13Fix import pathsJames Mills
2021-06-08Remove proprietary notices about video (#40)Srxr
* Make content proprietary configurable * Update README * Fixed a few template context bugs Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2021-06-08Update shortuuid depJames Mills
2020-07-08Fix the import path of this packageJames Mills
2020-04-09fix hard-coded frontend max_upload_size validation (#20)X3STeNLiTE
2020-03-31Allow transcoding to smaller sizes a configurable and optional featureJames Mills
2020-03-29Fix default server config and ensure upload and video paths existJames Mills
2020-03-29Add maximum upload size saftey and guardsJames Mills
2020-03-28Add UI controls for selecting lower quality video resolutionsJames Mills
2020-03-28Add backend support for serving lower quality videos (if available)James Mills
2020-03-28Refactored video importersJames Mills
2020-03-27Refactor Sort UIJames Mills
2020-03-27Add optional title and description to video uploadJames Mills
2020-03-27Display video sizeJames Mills
2020-03-27Add backend support for importing youtube videosv1.1.3James Mills
2020-03-27Added UI/UX for Importing artbitrary videos from a URLJames Mills
2020-03-26Alias null sort criteria to timestampJames Mills
2020-03-26Refactored thumbnail generation with configurable timeout and in-sycn with ↵James Mills
video transcoding
2020-03-26Add a footerJames Mills
2020-03-25Refactor UX of Trending vs. Recent video sortingJames Mills
2020-03-25Add trending and ability to sort playlist by viewsJames Mills
2020-03-25Refactored the way views are stored with a mgiration off the old data (to be ↵James Mills
removed)
2020-03-25Add support for keeping trakc of and viewing no. of views per videoJames Mills
2020-03-25Updated CORS config (again)James Mills
2020-03-25Add OPTIONS to / and /upload endpointsJames Mills
2020-03-25Add custom CORS configJames Mills
2020-03-25Add CORSJames Mills
2020-03-22Refactored upload handlerJames Mills
2020-03-22Re-add direct library addJames Mills
2020-03-22Remove use of temporary fileJames Mills
2020-03-22Add more error handlingJames Mills
2020-03-22Remove direct library add after upload as Rename(s) are not atomic on some ↵James Mills
file systems