Commit Graph

41 Commits

Author SHA1 Message Date
viktorstrate
929da08ea2 Add UI for album downloads 2021-09-26 13:10:37 +02:00
viktorstrate
56dfedd522 WIP: Work on new timeline 2021-09-18 20:17:24 +02:00
viktorstrate
adfcf33e79 Write tests for searching 2021-09-02 18:09:37 +02:00
viktorstrate
1029b61a4c Fix faces not getting scanned
- This fixes #344
- Add integration tests for face recognition
- Properly check that the user own the queried album
2021-04-26 12:21:15 +02:00
viktorstrate
f6f7377096 Fix bug causing mediatype to always be Photo 2021-04-17 17:51:13 +02:00
viktorstrate
f8cd804c3d Improve database compatibility
- Make MediaType case insensitive when saved to database
- Null check exif migrations, this might solve #300
2021-04-13 21:39:07 +02:00
viktorstrate
8ec2a7789b Fix sidecar hash bug
This closes #276
2021-04-03 22:52:53 +02:00
viktorstrate
2c98827db5 Make photoview work without providing the PHOTOVIEW_PUBLIC_ENDPOINT environment variable 2021-03-01 22:03:57 +01:00
viktorstrate
de46f89f5d Show face circles in sidebar 2021-02-16 17:13:08 +01:00
viktorstrate
abb80ae425 Start on face detection 2021-02-15 17:35:28 +01:00
viktorstrate
926aa3de3d Cleanup graphql schema, and general refactoring
- Separate graphql `filter` into `paginate` and `order`
- Remove GalleryGroups, replaced by TimelineGallery
- Fix Apollo cache such that sorting works again
2021-02-13 15:08:05 +01:00
viktorstrate
214c4e8be4 Fix panic when scanning 2021-02-04 22:06:49 +01:00
viktorstrate
fbebb13d28 Don't transcode web compatible video formats.
This relates to the following issues #131 #169 #173
2021-01-27 18:00:37 +01:00
viktorstrate
2c230d917a Further gorm attributes cleanup 2021-01-19 18:35:19 +01:00
viktorstrate
fc515aa375 Cleanup gorm model attributes + add indexes 2021-01-19 17:31:37 +01:00
viktorstrate
fcdb5b4e7b Work on sqlite support 2021-01-17 12:45:23 +01:00
viktorstrate
a1a14286d6 Properly clean up when a user <-> album relation is deleted 2021-01-06 17:28:06 +01:00
viktorstrate
732ccd05ab restructure user <-> albums relations in database 2020-12-20 17:10:00 +01:00
viktorstrate
907894dda3 Merge branch 'master' into v2.0.0 2020-12-17 23:18:00 +01:00
viktorstrate
4cd822f068 Update gomod to reflect repo transfer 2020-12-17 22:51:43 +01:00
viktorstrate
4f370deab9 Merge remote-tracking branch 'origin/master' into v2.0.0 2020-12-10 12:30:10 +01:00
Vladimir Ivanov
6adc79001c Photo duplication detection (#148)
* Fixes viktorstrate/photoview#8
- Added new property CounterpartPath to Media struct to hold the path to the counterpart JPEG file (if any)
- Added new MediaType method isBasicSupportedisBasicTypeSupported()
- Added new function isFileExists() to minimize the code duplication

* Fixes viktorstrate/photoview#8
- Chaned CounterpartPath definition from string to *string
- Added new helper method FileExtensions()
- Simplified the logic inside scanForRawCounterpartFile() and scanForCompressedCounterpartFile() functions, reducing the code duplication

* Fixes viktorstrate/photoview#8
- Added debug to fileExists() function

* Cleanup fileExists logging

Co-authored-by: viktorstrate <viktorstrate@gmail.com>
2020-12-09 11:40:37 +01:00
viktorstrate
98f13d76e6 Replace database, work on scanning 2020-11-30 21:29:49 +01:00
viktorstrate
31da5e1c07 Replace database, initial setup now works 2020-11-28 21:49:33 +01:00
viktorstrate
e42ac2436b Replace database, resolve all build-time errors 2020-11-28 21:29:31 +01:00
viktorstrate
d3ebecc3b5 Replace database, mostly user related 2020-11-28 17:31:19 +01:00
viktorstrate
2b966aa672 Replace database, mostly media and video 2020-11-26 20:48:04 +01:00
viktorstrate
177ae91500 Replace database, mostly video 2020-11-25 23:06:47 +01:00
viktorstrate
cc5d323b2a Replace database, mostly process photo 2020-11-24 11:46:49 +01:00
viktorstrate
2e9aa29258 Replace database, mostly media related 2020-11-23 20:43:00 +01:00
sean borg
11d67c9ae9 Add sidecar path & hash to DB 2020-11-21 11:54:01 +00:00
viktorstrate
74581ee090 Cleanup media routes and media_name generation 2020-10-30 17:14:09 +01:00
viktorstrate
e59ff9cbde Fix NewMediaFromRows 2020-08-15 11:59:44 +02:00
viktorstrate
78b415871d Add date information to media
This closes #61
2020-08-12 13:04:41 +02:00
viktorstrate
849f2f25bf Add fileSize to media_url database entries 2020-08-11 22:18:15 +02:00
viktorstrate
0e9d37ca77 Add video metadata 2020-07-12 14:17:49 +02:00
viktorstrate
f537b1d608 Add video route (still unprotected) 2020-07-11 15:57:58 +02:00
viktorstrate
990a592fcc Expose media_type to graphql
- Make video thumbnail accessible from graphql
2020-07-11 14:21:10 +02:00
viktorstrate
9e5480188b add media_type column to media table in database 2020-07-11 14:05:06 +02:00
viktorstrate
0eb0319fa8 Generate video thumbnails 2020-07-11 13:39:11 +02:00
viktorstrate
df80802cab Huge refactor: rename photo to media
To prepare for video support

Migrate database rename tables and columns:
- photo to media
- photo_url to media_url
- photo_exif to media_exif

- Update api accordingly
2020-07-10 14:26:19 +02:00