stash/pkg/models
MinasukiHikimuna 0d40056f8c
Markers can have end time (#5311)
* Markers can have end time

Other metadata sources such as ThePornDB and timestamp.trade support end times for markers but Stash did not yet support saving those. This is a first step which only allows end time to be set either via API or via UI. Other aspects of Stash such as video player timeline are not yet updated to take end time into account.

- User can set end time when creating or editing markers in the UI or in the API.
- End time cannot be before start time. This is validated in the backend and for better UX also in the frontend.
- End time is shown in scene details view or markers wall view if present.
- GraphQL API does not require end_seconds.
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2024-11-02 11:55:48 +11:00
..
json Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
jsonschema Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
mocks Fix handling of files to delete during delete Gallery operation (#5213) 2024-09-05 11:27:31 +10:00
paths Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
date.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
doc.go Add package docs and project vision/goals (#5169) 2024-08-28 09:01:39 +10:00
errors.go SQLite model refactoring, part 2 (#3839) 2023-07-13 12:15:02 +10:00
file.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
filename_parser.go Minor refactor (#3924) 2023-07-26 09:15:55 +10:00
filter.go Add related object filter criteria to various filter types in graphql schema (#4861) 2024-06-11 11:34:38 +10:00
find_filter.go Handle large and all entity queries (#3544) 2023-03-16 09:08:21 +11:00
fingerprint.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
fingerprint_test.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
fs.go Handle symlink zip files (#5249) 2024-09-11 13:58:02 +10:00
gallery.go Add related object filter criteria to various filter types in graphql schema (#4861) 2024-06-11 11:34:38 +10:00
generate.go Add option to generate image thumbnails during generate (#4602) 2024-02-22 11:19:23 +11:00
group.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
image.go Add related object filter criteria to various filter types in graphql schema (#4861) 2024-06-11 11:34:38 +10:00
import.go Separate graphql API from rest of the system (#2503) 2022-09-06 07:03:40 +00:00
model_file.go Handle symlink zip files (#5249) 2024-09-11 13:58:02 +10:00
model_folder.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
model_gallery.go Add Studio Code and Photographer to Galleries. (#4195) 2023-11-28 15:05:33 +11:00
model_gallery_chapter.go Model refactor, part 2 (#4092) 2023-09-11 12:24:15 +10:00
model_group.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
model_image.go Add Details, Studio Code, and Photographer to Images (#4217) 2023-11-28 15:45:07 +11:00
model_joins.go fix: fix slice init length (#5327) 2024-10-02 16:23:10 +10:00
model_performer.go Performer urls (#4958) 2024-06-18 13:41:05 +10:00
model_saved_filter.go Add group graphql interfaces (#5017) 2024-07-03 13:59:40 +10:00
model_scene.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
model_scene_marker.go Markers can have end time (#5311) 2024-11-02 11:55:48 +11:00
model_scene_test.go Remove deprecated graphql fields (#4064) 2023-10-17 11:59:35 +11:00
model_scraped_item.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
model_scraped_item_test.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
model_studio.go Add tags to studios (#4858) 2024-06-18 15:55:20 +10:00
model_tag.go Bulk edit tags (#4925) 2024-06-11 13:41:20 +10:00
orientation.go added support for image orientation filter (#4404) 2024-01-16 13:50:17 +11:00
package.go Scraper and plugin manager (#4242) 2023-11-22 10:01:11 +11:00
performer.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
query.go Show duration and filesize in results (#1776) 2021-10-25 11:40:13 +11:00
rating.go Stash rating system (#2830) 2022-11-16 09:31:44 +11:00
rating_test.go Stash rating system (#2830) 2022-11-16 09:31:44 +11:00
relationships.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
repository.go Movie group renames (#5039) 2024-07-04 09:10:26 +10:00
repository_blob.go chore: fix struct names (#4766) 2024-05-02 12:04:54 +10:00
repository_file.go Support setting file fingerprints (#4376) 2023-12-22 14:07:10 +11:00
repository_folder.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_gallery.go Support for assigning any image from a gallery as the cover (#5053) 2024-08-29 11:24:52 +10:00
repository_gallery_chapter.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_group.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
repository_image.go Fix handling of files to delete during delete Gallery operation (#5213) 2024-09-05 11:27:31 +10:00
repository_performer.go Performer urls (#4958) 2024-06-18 13:41:05 +10:00
repository_scene.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
repository_scene_marker.go Model refactor (#3915) 2023-09-01 10:39:29 +10:00
repository_studio.go Add tags to studios (#4858) 2024-06-18 15:55:20 +10:00
repository_tag.go Movie group renames (#5039) 2024-07-04 09:10:26 +10:00
resolution.go Make displayed resolution information coherent for 2:1/VR files (#3798) 2023-06-16 10:19:46 +10:00
saved_filter.go Default view filters (#4962) 2024-06-18 10:51:52 +10:00
scene.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
scene_marker.go Markers scene filter (#5097) 2024-08-27 17:23:34 +10:00
search.go Add search string parsing (#1982) 2021-11-22 14:59:22 +11:00
search_test.go Add search string parsing (#1982) 2021-11-22 14:59:22 +11:00
stash_box.go Separate graphql API from rest of the system (#2503) 2022-09-06 07:03:40 +00:00
stash_ids.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
studio.go Add updated_at field to stash_id's (#5259) 2024-10-31 15:56:16 +11:00
tag.go Add group graphql interfaces (#5017) 2024-07-03 13:59:40 +10:00
update.go Containing Group/Sub-Group relationships (#5105) 2024-08-30 11:43:44 +10:00
update_test.go Fix performer validation (#4248) 2023-11-02 16:23:54 +11:00
value.go chore: fix struct names (#4766) 2024-05-02 12:04:54 +10:00