Skip to content

5/18 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9f5b1c3
Update StashDB details in README.md (#4676)
AdultSun Mar 12, 2024
3521dc1
play monitoring improvement (#4670)
cj12312021 Mar 12, 2024
d995ce7
Downgrade astisub due to asticode/go-astisub#99 (#4682)
WithoutPants Mar 12, 2024
95d0e5d
Update changelog
WithoutPants Mar 13, 2024
bf7cb78
Translations update from Hosted Weblate (#4671)
weblate Mar 13, 2024
7ac7963
Save task options (#4620)
WithoutPants Mar 13, 2024
ae6d1a8
Add galleries filter to scenes (#4632)
bob123491234 Mar 13, 2024
3d0a8f6
Added Sort Performers by Last O At / Last Played At / Play Count and …
randemgame Mar 13, 2024
49cd214
Make directors and photographers clickable in detail view (#4621)
bdbenim Mar 13, 2024
9ceea95
Replace javascript module otto with goja (#4631)
WithoutPants Mar 14, 2024
fa172c2
Minor mobile fixes (#4683)
WithoutPants Mar 14, 2024
e592938
Make migration an asynchronous task (#4666)
WithoutPants Mar 14, 2024
8c45458
Add support for favorite Studios (#4675)
WithoutPants Mar 14, 2024
3277020
Use new studio selector in movie scrape dialog (#4692)
dogwithakeyboard Mar 19, 2024
213c283
Fix unhandled error (#4700)
WithoutPants Mar 19, 2024
62b8ffb
Apply filter hook to results filter only (#4705)
WithoutPants Mar 21, 2024
a369613
bitrate filter (#4713)
NodudeWasTaken Mar 21, 2024
7086109
Change ffmpeg handling (#4688)
WithoutPants Mar 21, 2024
034fd44
Fix selected tagger search result being lost when creating objects (#…
WithoutPants Mar 26, 2024
c83635c
Add wrap on detail item values (#4730)
Larsluph Apr 2, 2024
ad60f0e
Fix link to scraping documentation in README.md
Strategy3637 Apr 7, 2024
f7b8737
Merge pull request #4749 from Strategy3637/chore/link-scraping-readme
DogmaDragon Apr 7, 2024
911da87
Update plugins script language (#4762)
DogmaDragon Apr 15, 2024
ec6acab
Details operation toolbar (#4714)
WithoutPants Apr 17, 2024
157b2e7
Allow movies scraped from the scene scraper dialog to include the dir…
Maista6969 Apr 17, 2024
4c0d9d0
chore: fix struct names (#4766)
hidewrong May 2, 2024
c43e7b4
Select first result when selectedResult is not defined (#4770)
Emilo2 May 2, 2024
560bdcd
Fix filterHook not applied to scene card queue (#4798)
WithoutPants May 3, 2024
141f60f
Fix interactive speed being lost when file is moved (#4799)
WithoutPants May 3, 2024
0bba888
Fix duplicate scene checker select logic (#4800)
WithoutPants May 3, 2024
22d14fd
Clean duplicate aliases when creating from performer tagger (#4801)
WithoutPants May 3, 2024
1b99a03
Bump golang.org/x/net from 0.17.0 to 0.23.0 (#4773)
dependabot[bot] May 8, 2024
c5abe28
Fix alias issue when tagging performer from stash-box (#4820)
WithoutPants May 8, 2024
9cc26f7
skip reencoding compatible video streams (#4783)
HookedBehemoth May 8, 2024
1cee1cc
Better support for Samsung SmartTV for built-in DLNA server (#4784)
sergelevin May 8, 2024
29859fa
Tag Favoriting (#4728)
Dankonite May 9, 2024
c5fef39
Full hardware transcoding (#4765)
NodudeWasTaken May 10, 2024
77ee620
Fix ffmpeg version detection
WithoutPants May 10, 2024
12af7d6
Fix black screen after migrating with release notes (#4825)
WithoutPants May 10, 2024
237a904
add stashapp-tools to default docker install (#4488)
feederbox826 May 11, 2024
408d6fc
Build UI artifacts (#4824)
WithoutPants May 14, 2024
1d565a7
Enable track activity by default (#4710)
cj12312021 May 14, 2024
c8aeb79
Add last_played_at filter (#4829)
NotForMyCV May 14, 2024
ca5febc
New scene select with additional fields (#4832)
dogwithakeyboard May 14, 2024
ad844a2
Return 401 code for ErrUnauthorized (#4842)
damontecres May 16, 2024
56acc01
Merge branch '2/10-merger' into 5/18
Dankonite May 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,16 @@ jobs:
docker exec -t build /bin/bash -c "make build-cc-linux-arm32v6"
docker exec -t build /bin/bash -c "make build-cc-freebsd"

- name: Zip UI
run: docker exec -t build /bin/bash -c "make zip-ui"

- name: Cleanup build container
run: docker rm -f -v build

- name: Generate checksums
run: |
git describe --tags --exclude latest_develop | tee CHECKSUMS_SHA1
sha1sum dist/Stash.app.zip dist/stash-* | sed 's/dist\///g' | tee -a CHECKSUMS_SHA1
sha1sum dist/Stash.app.zip dist/stash-* dist/stash-ui.zip | sed 's/dist\///g' | tee -a CHECKSUMS_SHA1
echo "STASH_VERSION=$(git describe --tags --exclude latest_develop)" >> $GITHUB_ENV
echo "RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_ENV

Expand Down Expand Up @@ -126,6 +129,14 @@ jobs:
name: stash-linux
path: dist/stash-linux

- name: Upload UI
# only upload for pull requests
if: ${{ github.event_name == 'pull_request' && github.base_ref != 'refs/heads/develop' && github.base_ref != 'refs/heads/master'}}
uses: actions/upload-artifact@v2
with:
name: stash-ui.zip
path: dist/stash-ui.zip

- name: Update latest_develop tag
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' }}
run : git tag -f latest_develop; git push -f --tags
Expand All @@ -147,6 +158,7 @@ jobs:
dist/stash-linux-arm32v7
dist/stash-linux-arm32v6
dist/stash-freebsd
dist/stash-ui.zip
CHECKSUMS_SHA1

- name: Master release
Expand All @@ -166,6 +178,7 @@ jobs:
dist/stash-linux-arm32v7
dist/stash-linux-arm32v6
dist/stash-freebsd
dist/stash-ui.zip
CHECKSUMS_SHA1
gzip: false

Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ endif
ui: ui-env
cd ui/v2.5 && yarn build

.PHONY: zip-ui
zip-ui:
rm -f dist/stash-ui.zip
cd ui/v2.5/build && zip -r ../../../dist/stash-ui.zip .

.PHONY: ui-start
ui-start: ui-env
cd ui/v2.5 && yarn start --host
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ Stash is a web-based application. Once the application is running, the interface

On first run, Stash will prompt you for some configuration options and media directories to index, called "Scanning" in Stash. After scanning, your media will be available for browsing, curating, editing, and tagging.

Stash can pull metadata (performers, tags, descriptions, studios, and more) directly from many sites through the use of [scrapers](https://github.com/stashapp/stash/tree/develop/ui/v2.5/src/docs/en/Scraping.md), which integrate directly into Stash.

Many community-maintained scrapers are available for download from [CommunityScrapers repository](https://github.com/stashapp/CommunityScrapers). The community also maintains StashDB, a crowd-sourced repository of scene, studio, and performer information, that can automatically identify much of a typical media collection. Inquire in the Discord for details. Identifying an entire collection will typically require a mix of multiple sources.
Stash can pull metadata (performers, tags, descriptions, studios, and more) directly from many sites through the use of [scrapers](https://github.com/stashapp/stash/blob/develop/ui/v2.5/src/docs/en/Manual/Scraping.md), which integrate directly into Stash. Identifying an entire collection will typically require a mix of multiple sources:
- The project maintains [StashDB](https://stashdb.org/), a crowd-sourced repository of scene, studio, and performer information. Connecting it to Stash will allow you to automatically identify much of a typical media collection. It runs on our stash-box software and is primarily focused on mainstream digital scenes and studios. Instructions, invite codes, and more can be found in this guide to [Accessing StashDB](https://guidelines.stashdb.org/docs/faq_getting-started/stashdb/accessing-stashdb/).
- Several community-managed stash-box databases can also be connected to Stash in a similar manner. Each one serves a slightly different niche and follows their own methodology. A rundown of each stash-box, their differences, and the information you need to sign up can be found in this guide to [Accessing Stash-Boxes](https://guidelines.stashdb.org/docs/faq_getting-started/stashdb/accessing-stash-boxes/).
- Many community-maintained scrapers can also be downloaded, installed, and updated from within Stash, allowing you to pull data from a wide range of other websites and databases. They can be found by navigating to Settings -> Metadata Providers -> Available Scrapers -> Community (stable). These can be trickier to use than a stash-box because every scraper works a little differently. For more information, please visit the [CommunityScrapers repository](https://github.com/stashapp/CommunityScrapers).
- All of the above methods of scraping data into Stash are also covered in more detail in our [Guide to Scraping](https://docs.stashapp.cc/beginner-guides/guide-to-scraping/).

<sub>[StashDB](http://stashdb.org) is the canonical instance of our open source metadata API, [stash-box](https://github.com/stashapp/stash-box).</sub>

Expand Down
10 changes: 9 additions & 1 deletion cmd/phasher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package main
import (
"fmt"
"os"
"os/exec"

flag "github.com/spf13/pflag"
"github.com/stashapp/stash/pkg/ffmpeg"
Expand Down Expand Up @@ -45,6 +46,13 @@ func printPhash(ff *ffmpeg.FFMpeg, ffp ffmpeg.FFProbe, inputfile string, quiet *
return nil
}

func getPaths() (string, string) {
ffmpegPath, _ := exec.LookPath("ffmpeg")
ffprobePath, _ := exec.LookPath("ffprobe")

return ffmpegPath, ffprobePath
}

func main() {
flag.Usage = customUsage
quiet := flag.BoolP("quiet", "q", false, "print only the phash")
Expand All @@ -69,7 +77,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Example: parallel %v ::: *.mp4\n", os.Args[0])
}

ffmpegPath, ffprobePath := ffmpeg.GetPaths(nil)
ffmpegPath, ffprobePath := getPaths()
encoder := ffmpeg.NewEncoder(ffmpegPath)
// don't need to InitHWSupport, phashing doesn't use hw acceleration
ffprobe := ffmpeg.FFProbe(ffprobePath)
Expand Down
2 changes: 1 addition & 1 deletion docker/ci/x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ COPY --from=binary /stash /usr/bin/
RUN apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev \
&& apk add --no-cache ca-certificates python3 py3-requests py3-requests-toolbelt py3-lxml py3-pip ffmpeg ruby tzdata \
&& apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.18/community vips=8.14.3-r0 vips-tools=8.14.3-r0 \
&& pip install --user --break-system-packages mechanicalsoup cloudscraper bencoder.pyx \
&& pip install --user --break-system-packages mechanicalsoup cloudscraper bencoder.pyx stashapp-tools \
&& gem install faraday \
&& apk del .build-deps
ENV STASH_CONFIG_FILE=/root/.stash/config.yml
Expand Down
16 changes: 9 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ require (
github.com/Yamashou/gqlgenc v0.0.6
github.com/anacrolix/dms v1.2.2
github.com/antchfx/htmlquery v1.3.0
github.com/asticode/go-astisub v0.26.0
github.com/asticode/go-astisub v0.25.1
github.com/chromedp/cdproto v0.0.0-20231007061347-18b01cd81617
github.com/chromedp/chromedp v0.9.2
github.com/corona10/goimagehash v1.1.0
github.com/disintegration/imaging v1.6.2
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d
github.com/doug-martin/goqu/v9 v9.18.0
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/cors v1.2.1
Expand All @@ -35,7 +36,6 @@ require (
github.com/natefinch/pie v0.0.0-20170715172608-9a0d72014007
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/remeh/sizedwaitgroup v1.0.0
github.com/robertkrimen/otto v0.0.0-20200922221731-ef014fd054ac
github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cast v1.5.1
Expand All @@ -49,11 +49,11 @@ require (
github.com/vektra/mockery/v2 v2.10.0
github.com/xWTF/chardet v0.0.0-20230208095535-c780f2ac244e
github.com/zencoder/go-dash/v3 v3.0.2
golang.org/x/crypto v0.17.0
golang.org/x/crypto v0.21.0
golang.org/x/image v0.12.0
golang.org/x/net v0.17.0
golang.org/x/sys v0.15.0
golang.org/x/term v0.15.0
golang.org/x/net v0.23.0
golang.org/x/sys v0.18.0
golang.org/x/term v0.18.0
golang.org/x/text v0.14.0
gopkg.in/guregu/null.v4 v4.0.0
gopkg.in/yaml.v2 v2.4.0
Expand All @@ -67,11 +67,14 @@ require (
github.com/chromedp/sysutil v1.0.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/gobwas/httphead v0.1.0 // indirect
github.com/gobwas/pool v0.2.1 // indirect
github.com/gobwas/ws v1.3.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
Expand Down Expand Up @@ -107,6 +110,5 @@ require (
golang.org/x/mod v0.12.0 // indirect
golang.org/x/tools v0.13.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/sourcemap.v1 v1.0.5 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading