Commit graph

177 commits

Author SHA1 Message Date
James Mills
07d888c2c6
Fix build and versioning (borrowed from yarn) 2023-01-21 11:25:30 +10:00
James Mills
c727404d91
Update deps 2023-01-21 11:10:20 +10: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
6a4ea23794 fix: upload form shows prefix instead of path now (#64)
This is just a cosmetic change as the values still use
the Library.Paths[]

Closes prologic/tube#56

Reviewed-on: https://git.mills.io/prologic/tube/pulls/64
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:14 +00:00
Heinrich 'Henrik' Langos
da0dc4aa23 document yml metadata and thumbnail file reading. clarify h.265 (#59)
Adds some documentation for meta data from yml files and thumbnails.
Adds some clarification regarding video codecs.

* Resolves prologic/tube#54
* Resolves prologic/tube#53

Reviewed-on: https://git.mills.io/prologic/tube/pulls/59
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-18 22:04:44 +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
dc5cceec37 fix: Select first upload library path by default. (#48)
This is just a minor fix. Probably it shouldn't make a big difference, but I think it is good style to make sure that the there is a pre-selected default for the upload library.

Reviewed-on: https://git.mills.io/prologic/tube/pulls/48
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-05 22:02:12 +00:00
Heinrich 'Henrik' Langos
f6dedea101 fix(config): Always show config file name and abort if read fails (#46)
With this change you should always know what config tube is using.
If an explicitly requested file can not be read, then tube
will complain and exit.

This should fix issue #45

Reviewed-on: https://git.mills.io/prologic/tube/pulls/46
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-05 12:27:42 +00:00
Heinrich 'Henrik' Langos
d0727c2187 build: Add go 1.19 to allowed versions (#43)
This should close issue #42

Reviewed-on: https://git.mills.io/prologic/tube/pulls/43
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-04 11:34:52 +00:00
Heinrich 'Henrik' Langos
c0138ec10e feat: Prefer external thumbnail over embedded ones (#44)
This changes the handling of external thumbnails as mentioned in issue #41
If there is an external thumbnail file, it is going to be used, even if there is an embedded thumbnail in the mp4 file.

Reviewed-on: https://git.mills.io/prologic/tube/pulls/44
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2023-01-04 11:34:40 +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
7a4ef5b6df feat: Add YAML support for added / modified metadata (#37)
This change introduces the ability to read additional
or modified metadata like title or description from a
YAML file.
Just like thumbnails are read from "filename.jpg", we now
look for "filename.yml" and override the meta data that
is embedded in the video file.

This is my very first look at golang, so please tell me if, or rather "where" I went wrong. ;-)

Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/37
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
2022-11-25 01:29:44 +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
James Mills
a0b38fb01e
Fix Drone build-and-push-image step 2022-11-08 09:38:40 +10:00
James Mills
b367429ca2
Fix Docker image build 2022-11-08 09:16:05 +10:00
James Mills
6eef473551
Fix CI 2022-11-08 08:20:23 +10:00
James Mills
0d32d37356
Add Drone CI 2022-11-08 08:06:55 +10:00
Jacob Weisz
d4223a9ef7 Remove external FontAwesome dependency (#30)
This fixes #28.

Since we only use a single FontAwesome, I decided to just use the SVG (which FontAwesome considers the code comment within appropriate attribution). I further decided "screw it, let's inline it", because it avoids unnecessary complexity, and we can always punt it out to another file later if we need to.

Co-authored-by: Jacob Weisz <inbox@jacobweisz.com>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/30
Co-authored-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
Co-committed-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
2022-10-01 05:21:40 +00: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
199aaa171f Readme update to show /upload authentication (#24)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/24
Co-authored-by: gabek <gabek@noreply@mills.io>
Co-committed-by: gabek <gabek@noreply@mills.io>
2022-08-25 23:32: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
31040303f7
Remove deprecated netgo build tag (Fixes #4) 2022-08-01 14:28:03 +10:00
James Mills
c011bbae0c
Fix image target to build multi-arch images to the Docker Hub 2022-08-01 14:03:00 +10:00
James Mills
cc036e0af1
Update CHANGELOG for v1.1.13 2022-08-01 13:25:18 +10:00
James Mills
371715ebb8
Add empty CHANGELOG.md to support new release process 2022-08-01 13:24:30 +10: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
3b7c29eb8a
Update deps 2022-07-23 11:35:09 +10:00
gerard webb
012ae52fc7 docker small adjustments (#17)
just some basic docker make file stuff to make it easier for local dev.

Co-authored-by: gedw99 <gedw99@gmail.com>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/17
Co-authored-by: gerard webb <gedw99@noreply@mills.io>
Co-committed-by: gerard webb <gedw99@noreply@mills.io>
2022-04-29 21:54:16 +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
taigrr
88bb10f804 Fix broken README markdown links (#1)
Gitea doesn't play nicely with absolute links in markdown, and requires relative links for things to resolve. Otherwise you get a 404.

Co-authored-by: Tai Groot <tai@taigrr.com>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/1
Co-authored-by: taigrr <taigrr@noreply.git.mills.io>
Co-committed-by: taigrr <taigrr@noreply.git.mills.io>
2021-07-12 23:50:21 +00:00
James Mills
02e2aebc49
Remove Github workflows 2021-07-13 08:34:56 +10: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
7e3d72c24f
Update Go versions to build/test against in CI to 1.14, 1.15 and 1.16 2021-06-08 22:55:06 +10:00
James Mills
89442bb269
Update shortuuid dep 2021-06-08 22:49:56 +10:00
James Mills
97c79e1e61
Update deps 2021-06-08 22:43:53 +10:00
James Mills
43e093e38e
Update deps 2021-03-25 21:36:39 +10:00
f varas
3ab82de433
fixes issue 30 (#32) 2021-02-10 07:12:48 +10:00
James Mills
a920d7b0a8
Remove label workflow 2021-01-04 13:46:22 +10:00
Guilherme Lima
26d97b96eb
fix: Fix typo (#29) 2021-01-04 13:45:22 +10:00
Rick
5adab6d32d
fix version doesn't work (#28) 2020-12-26 08:26:09 +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
9502e15a1c
Remove autoassign and greetings workflows. Fixes #26 2020-10-16 08:19:36 +10:00
James Mills
a190bb9451
Update static assets 2020-07-08 16:55:29 +10:00
James Mills
efdcccc1a8
Update deps 2020-07-08 16:54:04 +10:00