Commit graph

79 commits

Author SHA1 Message Date
Heinrich 'Henrik' Langos
e14f19abd3 Fix upload error for large files (#71)
This should avoid allocation of max_upload_size bytes of RAM.
Instead we only allocate 1MB of RAM for the upload form decoder.

- Closes #67

Reviewed-on: https://git.mills.io/prologic/tube/pulls/71
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-02-13 22:06:07 +00:00
Heinrich 'Henrik' Langos
38e9421017 fix: Add missing config defaut. (#62)
Without this value, and without a corresponding config.json
entry, the thumbnail will not be generated.

Closes prologic/tube#41

Reviewed-on: https://git.mills.io/prologic/tube/pulls/62
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-21 00:59:40 +00:00
Heinrich 'Henrik' Langos
eba9db5be5 fix: Fix initial rendering of import page (#63)
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-21 00:59:27 +00:00
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
acf8cbd82d Fix deps (#8)
Fixes #7

```#!sh
(⎈ |local:default)
prologic@Jamess-iMac
Sat Aug 28 01:35:47
~/Projects/tube
 (master) 0
$ make
Removing tube
Removing tube.db/
tube version v1.1.12@02e2aeb(⎈ |local:default)
```

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/8
Co-authored-by: James Mills <james@mills.io>
Co-committed-by: James Mills <james@mills.io>
2021-08-27 15:36:53 +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
Bilel Medimegh
d36fb862c8
Added opengraphs (https://ogp.me/) tags to support embedding, #24 (#25)
* Added opengraphs (https://ogp.me/) tags to support embedding, #24

* Edited AUTHORS
2020-10-16 08:21:49 +10:00
James Mills
a190bb9451
Update static assets 2020-07-08 16:55:29 +10:00
James Mills
6a2eaefcca
Fix the import path of this package 2020-07-08 16:50:53 +10:00
James Mills
a5d1ec2b1d
Add tube app to myselfhosted.app 2020-04-12 20:52:08 +10:00
X3STeNLiTE
20bf93c86d
fix hard-coded frontend max_upload_size validation (#20) 2020-04-09 01:53:54 +10:00
Adam Shannon
8b0bfd30a3
app: fix bitcask migration path (#17)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2020-04-06 09:18:44 +10:00
James Mills
4e203eb773
Improve video id handling in import to be more user friendly 2020-04-01 22:13:02 +10:00
James Mills
9bbfb420f9
Fixed UI/UX bug with pressing tab or enter on url input field 2020-03-31 21:26:56 +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
107110183a
Add support for unlimited timeouts for transcoding and thumbnail generation 2020-03-29 21:11:32 +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
b8aee1d2b5
Fixed a UI/UX bug with pressing enter on the importInput text input in the import screen 2020-03-29 16:31:36 +10:00
James Mills
9b159b32cb
More minor UI tweaks 2020-03-28 23:08:47 +10:00
James Mills
592d811d5d
Fix sort persistance 2020-03-28 22:29:13 +10:00
James Mills
6c50fb31e0
More minor UI tweaks 2020-03-28 20:49:09 +10:00
James Mills
668f6cba15
Refactored UI to be more mobile friendly with new quality navs 2020-03-28 18:40:43 +10:00
James Mills
5f209d4832
Refactored quality UI/UX navbar with responsive layout and burger menu 2020-03-28 18:13:49 +10:00
James Mills
331b267e7e
Make the import link more accessible 2020-03-28 17:19:22 +10:00
James Mills
58a6502c83
Add UI controls for selecting lower quality video resolutions 2020-03-28 17:18:01 +10:00
James Mills
ef8afabf3f
Add a .dockerignore fiel 2020-03-28 16:54:51 +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
ca5969379a
Set preload to metdata 2020-03-28 15:00:43 +10:00
James Mills
88b96784ab
Refactored video importers 2020-03-28 12:16:45 +10:00
James Mills
5100a10863
Improve import UI 2020-03-28 10:34:53 +10:00
James Mills
fd3f210a36
Refactor Sort UI 2020-03-27 21:50:19 +10:00
James Mills
f4afd2eb6b
Add some minor UI tweaks 2020-03-27 21:26:13 +10:00
James Mills
299df65290
Add optional title and description to video upload 2020-03-27 21:04:10 +10:00
James Mills
9af98b0382
Strip the video filename extension from the default title 2020-03-27 20:16:16 +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
e6d35fd8c6
Add a default thumbnailer timeout config 2020-03-26 15:41:20 +10:00