stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.28k stars 791 forks source link

[Feature] Extend video-in-gallery support to archives #4070

Open ghost opened 1 year ago

ghost commented 1 year ago

Is your feature request related to a problem? Please describe. Currently if a gallery contains video clips, they will only be detected by Stash if the gallery is in a folder with loose files, and not an archive like a .zip file.

Describe the solution you'd like Allow videos in archive files to be added to stash like with loose files. When scanning old archives that have already been added into Stash, missing video files should be added retroactively.

yoshnopa commented 1 year ago

A valid request I think, just a word about the complexity of it: Right now, the zip galleries have been specifically implemented, as reading the data from there without unpacking it means some weird handling of file paths and data streams. ALL of this would have to be expanded to video files in general, the support file generation and metadata reading (and there are more of them naturally than with images), which would actually mean that this way scenes could be inside of archives as well. Not that this is a bad thing, but it can become relatively difficult and also complicated as (right now) scenes cannot be part of galleries. If the latter would be solved that would be a likely adjacent, easy to implement request, but its unlikely (and unpractical) that it would be handled the other way around.