Commit Graph

38 Commits

Author SHA1 Message Date
InfiniteTF 8d8a8530e8
Migrate generated files when a scene is rescanned (#1106) 2021-02-10 10:50:34 +11:00
InfiniteTF 4fd022a93b
Decouple galleries from scenes (#1057) 2021-02-02 07:56:54 +11:00
WithoutPants 1e04deb3d4
Data layer restructuring (#997)
* Move query builders to sqlite package
* Add transaction system
* Wrap model resolvers in transaction
* Add error return value for StringSliceToIntSlice
* Update/refactor mutation resolvers
* Convert query builders
* Remove unused join types
* Add stash id unit tests
* Use WAL journal mode
2021-01-18 12:23:20 +11:00
bnkai 1882b44951
Strip file extension from scene title when scanning (#1022) 2021-01-07 11:38:30 +11:00
InfiniteTF e84c92355e
Fix integer overflow for scene size on 32bit systems (#994)
* Fix integer overflow for scene size on 32bit systems
* Cast to double in sqlite to prevent potential overflow
* Add migration to reset scene sizes and scan logic to repopulate if empty
2020-12-22 10:29:53 +11:00
JoeSmithStarkers e3eb550a7d
Parallel scanning/generation, and combined scanning/preview/sprite (#820)
* Implement parallel scanning and generation, and combined scanning/preview/sprite generation.
* Added UI component for preview/sprite generation during scan, and configurable number of parallel tasks.
* Add v050 changelog entry
2020-11-25 12:45:10 +11:00
WithoutPants 5f482b7b8a
Handle zip file modification (#877)
* Rescan zip if updating mod time
* Use inequality for mod time comparison
* Add sort by file_mod_time (fixes #469)
2020-11-05 10:26:51 +11:00
JoeSmithStarkers 47468fe122
Cache generated regex for each path (#891) 2020-10-26 15:57:58 +11:00
WithoutPants 872bb70f6e
Fix scan issue when encountering invalid symlinks (#871)
* Implement fixed symwalk algorithm
* Remove dependency
2020-10-20 17:00:23 +11:00
InfiniteTF 482f8cbd92
Fix clean and scan bugs (#846) 2020-10-14 10:51:36 +11:00
WithoutPants aca2c7c5f4
Images section (#813)
* Add new configuration options
* Refactor scan/clean
* Schema changes
* Add details to galleries
* Remove redundant code
* Refine thumbnail generation
* Gallery overhaul
* Don't allow modifying zip gallery images
* Show gallery card overlays
* Hide zoom slider when not in grid mode
2020-10-13 10:12:46 +11:00
WithoutPants 98dda782aa
Prevent invalid date tag in video file from aborting scan (#836)
* Give more context when ffprobe fails
* Suppress JSONTime unmarshal error
* Tidy scan logging
2020-10-11 12:02:41 +11:00
JoeSmithStarkers 85aa1d8790
Replace os.Rename with util.SafeMove to allow cross device moving to not fail. (#745)
Fixed annoyingly noisy transcoding progress log messages.
Fixed minor minor issue with directories than are named "blah.mp4" being detected as files to be scanned.
2020-08-21 17:57:07 +10:00
WithoutPants 0874852fa8
Improve oshash collision detection and logging (#713)
* Log colliding file when setting hash
* Check for existing using both hashes
2020-08-08 11:22:25 +10:00
WithoutPants 5992ff8706
Add oshash support (#667) 2020-08-06 11:21:14 +10:00
WithoutPants d3ababf0a1
Gallery list improvement (#622)
* Add grid view to galleries
* Show scene in gallery card
* Add is missing scene gallery filter
* Don't store galleries with no images
2020-06-21 21:43:57 +10:00
bnkai bd45daacf3
Add a cache for gallery thumbnails (#496) 2020-05-11 17:20:08 +10:00
bnkai d5617307f1
Add detection of container/video_codec/audio_codec compatibility for live file streaming or transcoding (#384)
* add forceMKV, forceHEVC config options
* drop audio stream instead of trying to transcode for ffmpeg unsupported/unknown audio codecs
2020-04-10 08:38:34 +10:00
bnkai 9dacad70a1
Autoassociate galleries to scenes when scanning (#405) 2020-03-19 12:36:00 +11:00
WithoutPants 3de6955a9e
Generate cover image (#376)
* Make mutating metadata ops mutation
* Implement scene generate screenshot
* Remove fetch policy on metadata mutations
* Port UI changes to v2.5
* Set generated image in database
2020-03-12 08:34:04 +11:00
WithoutPants c05496a724 Make scene metadata from file metadata optional (#259) 2019-12-13 01:18:02 -05:00
bnkai 5c0ec39db1 Calculate and print job totals for scan and generate tasks (#188)
* Calculate and print job totals for scan and generate tasks

* Cosmetic print fixes
2019-11-15 12:23:58 -05:00
bill 2693a2b22f print message when recreating images for the scan process 2019-10-18 20:35:53 +03:00
bill 8d2df527b7 makeScreenshots cleanup 2019-10-18 02:17:51 +03:00
bill ab1690d5b1 makeScreenshots can be called for a new or already existing file 2019-10-17 16:50:30 +03:00
bill 02f485e40e refactoring 2019-10-16 18:27:38 +03:00
bill 40b270eb49 fix issue #144 2019-10-16 04:17:04 +03:00
Leopere 57e954d4e7
Merge pull request #137 from WithoutPants/nullable_scene_props
Allow unsetting of rating, studio, gallery
2019-10-15 10:09:26 -04:00
WithoutPants 0852199e27 Only update non-nil database fields 2019-10-15 08:57:53 +11:00
WithoutPants afcadd941b Make title from file metadata optional 2019-10-12 19:20:27 +11:00
StashAppDev 32a4f34c7c
Merge pull request #106 from bnkai/scan_ign_dupes
fix for my own added bug ....
2019-08-20 13:08:37 -07:00
bill aa6420e9e9 bug fix 2019-08-20 16:46:05 +03:00
StashAppDev 6e46b103d7
Merge pull request #103 from WithoutPants/metadata_from_file
Set title, details and date from scene file metadata
2019-08-19 16:29:25 -07:00
WithoutPants 79f2902e26 Parse title, details, date from file metadata 2019-08-16 08:47:35 +10:00
bill 1fdb00fa0e Don't add duplicate scenes,galleries to the DB 2019-08-13 16:41:56 +03:00
Stash Dev a67a45ce91 Scan task speed improvement
Only use FFProbe when we need to instead of for every file
2019-04-20 10:39:24 -07:00
Stash Dev dd22d88d07 Config Tweaks
Using viper for config management.  Added configuration endpoint.
2019-03-23 10:06:37 -07:00
Stash Dev b488c1ed7d Reorg 2019-02-14 15:42:52 -08:00