Commit graph

48 commits

Author SHA1 Message Date
Heinrich 'Henrik' Langos
19a1141af3 preserve-video-filename (#49)
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-16 11:33:12 +00:00
Heinrich 'Henrik' Langos
9952cc533a improve logging at startup (#51)
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>
2023-01-16 11:29:55 +00:00
Heinrich 'Henrik' Langos
0a793f7d3f feat: Make upload path selectable (#39)
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-25 02:48:06 +00:00
Heinrich 'Henrik' Langos
a2cc622bc9 Normalize library path before adding and improve error logging (#38)
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-25 01:21:03 +00:00
James Mills
efa00d1534
Seriously wtf 2022-11-08 09:56:12 +10:00
Jacob Weisz
70fbc8c7b0 Add Sandstorm packaging files (#26)
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-09-24 05:29:27 +00:00
gabek
29f2784591 Replace rice box with go embed (#25)
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-30 01:17:08 +00:00
gabek
1791533e0e Optionally require auth for the /upload endpoint (#23)
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-25 23:17:24 +00:00
gabek
ed8964ee7a Supply the seconds position where a thumbnail is generated (#22)
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-25 23:15:27 +00:00
James Mills
35217febfc Add support for multi-arch binary and docker image releases (#20)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
2022-08-01 03:22:17 +00:00
James Mills
5c2b402a8a
Fix import paths 2021-07-13 08:34:56 +10:00
Srxr
e743a9a425
Remove proprietary notices about video (#40)
* Make content proprietary configurable

* Update README

* Fixed a few template context bugs

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2021-06-08 23:22:14 +10:00
James Mills
89442bb269
Update shortuuid dep 2021-06-08 22:49:56 +10:00
James Mills
6a2eaefcca
Fix the import path of this package 2020-07-08 16:50:53 +10:00
X3STeNLiTE
20bf93c86d
fix hard-coded frontend max_upload_size validation (#20) 2020-04-09 01:53:54 +10:00
James Mills
cd574192bf
Allow transcoding to smaller sizes a configurable and optional feature 2020-03-31 19:19:58 +10:00
James Mills
980a3edf63
Fix default server config and ensure upload and video paths exist 2020-03-29 19:02:52 +10:00
James Mills
a22a2ae031
Add maximum upload size saftey and guards 2020-03-29 17:41:10 +10:00
James Mills
58a6502c83
Add UI controls for selecting lower quality video resolutions 2020-03-28 17:18:01 +10:00
James Mills
d21c06c465
Add backend support for serving lower quality videos (if available) 2020-03-28 15:59:16 +10:00
James Mills
88b96784ab
Refactored video importers 2020-03-28 12:16:45 +10:00
James Mills
fd3f210a36
Refactor Sort UI 2020-03-27 21:50:19 +10:00
James Mills
299df65290
Add optional title and description to video upload 2020-03-27 21:04:10 +10:00
James Mills
89d7d71cc5
Display video size 2020-03-27 18:16:23 +10:00
James Mills
10a5f82498
Add backend support for importing youtube videos 2020-03-27 14:54:48 +10:00
James Mills
00ecbee8b9
Added UI/UX for Importing artbitrary videos from a URL 2020-03-27 14:24:44 +10:00
James Mills
99c4ee9e19
Alias null sort criteria to timestamp 2020-03-26 15:06:29 +10:00
James Mills
8727285bc5
Refactored thumbnail generation with configurable timeout and in-sycn with video transcoding 2020-03-26 14:50:49 +10:00
James Mills
7fa7a38167
Add a footer 2020-03-26 01:01:35 +10:00
James Mills
bcd79ba2c5
Refactor UX of Trending vs. Recent video sorting 2020-03-25 23:02:14 +10:00
James Mills
9fa3427308
Add trending and ability to sort playlist by views 2020-03-25 16:22:41 +10:00
James Mills
2c8af03164
Refactored the way views are stored with a mgiration off the old data (to be removed) 2020-03-25 16:01:29 +10:00
James Mills
7113a7bd05
Add support for keeping trakc of and viewing no. of views per video 2020-03-25 12:40:00 +10:00
James Mills
5803bcb6fc
Updated CORS config (again) 2020-03-25 07:49:41 +10:00
James Mills
3d0b3044ec
Add OPTIONS to / and /upload endpoints 2020-03-25 07:36:23 +10:00
James Mills
b6f36d2738
Add custom CORS config 2020-03-25 07:23:28 +10:00
James Mills
db6322d987
Add CORS 2020-03-25 07:12:31 +10:00
James Mills
9827c70714
Refactored upload handler 2020-03-22 21:41:26 +10:00
James Mills
4511029dde
Re-add direct library add 2020-03-22 19:09:14 +10:00
James Mills
2dced8e3ce
Remove use of temporary file 2020-03-22 18:58:37 +10:00
James Mills
06b7ddf175
Add more error handling 2020-03-22 18:46:44 +10:00
James Mills
a7e88fbcac
Remove direct library add after upload as Rename(s) are not atomic on some file systems 2020-03-22 18:31:24 +10:00
James Mills
dd710e69b6
Fixed nil refernece bug 2020-03-22 18:18:59 +10:00
James Mills
a907390891
Add support for transcoding 2020-03-22 18:01:27 +10:00
James Mills
ce3008222e
Refactor video uploading in preparation for async transcoding 2020-03-21 22:58:14 +10:00
James Mills
cf096b9a16
Add server logging 2020-03-21 21:11:42 +10:00
James Mills
976a6b4a8c
Added basic upload support 2020-03-21 20:34:37 +10:00
James Mills
4dae45a68f
Restructured source code layout, Added rice support for templates and static assets 2020-03-21 09:55:06 +10:00
Renamed from pkg/app/app.go (Browse further)