Skip to content

Commit fff960b

Browse files
authored
Merge branch 'main' into Addtional-Files-Deleter
2 parents f6523bc + c414e47 commit fff960b

File tree

270 files changed

+59337
-29786
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+59337
-29786
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
trim_trailing_whitespace = false
12+
trim_trailing_whitespace = false

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- run: |
3737
cd dev
3838
../main/build_site.sh ../_site/develop
39-
- uses: actions/upload-pages-artifact@v2
39+
- uses: actions/upload-pages-artifact@v3
4040

4141
deploy:
4242
environment:
@@ -47,4 +47,4 @@ jobs:
4747
steps:
4848
- name: Deploy to GitHub Pages
4949
id: deployment
50-
uses: actions/deploy-pages@v2
50+
uses: actions/deploy-pages@v4

.github/workflows/on_pr_check_code_format.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/on_push_check_code_format.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/validate.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Validate Plugins
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'plugins/**'
8+
- 'themes/**'
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- 'plugins/**'
13+
- 'themes/**'
14+
15+
jobs:
16+
validate:
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: '20.x'
23+
- run: cd ./validator && yarn install --frozen-lockfile
24+
- run: node ./validate.js --ci

.prettierignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["redhat.vscode-yaml", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"yaml.validate": true,
3+
"yaml.disableAdditionalProperties": true,
4+
"yaml.completion": true,
5+
"yaml.extension.recommendations": true,
6+
"yaml.hover": true,
7+
"yaml.format.singleQuote": false,
8+
"yaml.format.printWidth": 120,
9+
"yaml.format.proseWrap": "always",
10+
"yaml.schemas": {
11+
"schema/plugin.schema.json": ["/plugins/**", "/themes/**"]
12+
},
13+
"[json]": {
14+
"editor.defaultFormatter": "esbenp.prettier-vscode"
15+
},
16+
"[jsonc]": {
17+
"editor.defaultFormatter": "esbenp.prettier-vscode"
18+
},
19+
"[yaml]": {
20+
"editor.defaultFormatter": "esbenp.prettier-vscode"
21+
}
22+
}

README.md

Lines changed: 63 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,89 @@
1-
# CommunityScripts Repository
1+
# CommunityScripts repository
22

3-
This repository contains plugin and utility scripts created by the Stash community and hosted on the official GitHub repo.
3+
This repository contains plugins, themes, userscripts and other utility scripts created by the Stash community.
44

5-
There is also [a list of third-party plugins in our documentation](https://docs.stashapp.cc/add-ons/third-party-integrations).
5+
More extensive list of plugins and other projects for Stash is available [on our documentation site](https://docs.stashapp.cc/plugins).
66

7-
## Please note: V24 now uses an installer
8-
# We recommend you use that to install (and update) plugins.
9-
Manual installs are not recommended, and you shouldn't do so unless you otherwise know what you are doing.
7+
## Plugins
108

11-
## How To Install
12-
To download a plugin in Stash v24, the CommunityScripts repo source is automatically installed by default.
9+
> [!NOTE]
10+
> More plugins are available at [https://docs.stashapp.cc/plugins](https://docs.stashapp.cc/plugins).
1311
14-
This default source is located at https://stashapp.github.io/CommunityScripts/stable/index.yml
12+
### Installing via manager
1513

16-
# Plugin, Themes, and Scripts Directory
17-
We used to list all community supported plugins, themes, and scripts in this repository...
18-
but with the changes in v24, ANY items installable by the plugin installer will no longer listed here.
19-
Use the Plugin Installer built into Stash.
14+
Plugins can be installed and managed from the **Settings** > **Plugins** page.
2015

21-
We will continue to list the items NOT otherwise installable in this way below.
16+
Plugins are installed using the **Available Plugins** section. The **Community (stable)** source is configured by default.
17+
Source is located at `https://stashapp.github.io/CommunityScripts/stable/index.yml`.
2218

23-
## NOTE: BREAKING CHANGES
24-
The recent v24 release (and future development branches) had major breaking changes to old schema and plugin changes.
25-
We're beginning to review plugins and the rest and patch them to work, but it's an ongoing process...
19+
Installed plugins can be updated or uninstalled from the **Installed Plugins** section.
2620

27-
We'll update the table below as we do this...
28-
We will also be rearranging things a bit, and updating documentation (including this page)
21+
### Installing manually
2922

30-
## Plugins will no longer be listed individually here...
23+
By default, Stash looks for plugin configurations in the plugins sub-directory of the directory where the stash config.yml is read. This will either be the `%USERPROFILE%\.stash\plugins` on Windows or `/root/.stash/plugins` on Unix systems (Mac, Linux, etc.) or the current working directory.
3124

32-
Category|Triggers|Plugin Name|Description|Minimum Stash version|Updated for v24|
33-
--------|-----------|-----------|-----------|---------------------|-----
34-
Maintenance|Task<br />Scene.Update|[renamerOnUpdate](plugins/renamerOnUpdate)|Rename/Move your file based on Stash metadata.|v2.4|:white_check_mark: STOPGAP
35-
Maintenance|Set Scene Cover|[setSceneCoverFromFile](plugins/setSceneCoverFromFile)|Searchs Stash for Scenes with a cover image in the same folder and sets the cover image in stash to that image|v0.7|:x:
36-
Scenes|SceneMarker.Create<br />SceneMarker.Update|[markerTagToScene](plugins/markerTagToScene)|Adds primary tag of Scene Marker to the Scene on marker create/update.|v0.8 ([46bbede](https://github.com/stashapp/stash/commit/46bbede9a07144797d6f26cf414205b390ca88f9))|:x:
37-
Scanning|Scene.Create<br />Gallery.Create<br />Image.Create|[defaultDataForPath](plugins/defaultDataForPath)|Adds configured Tags, Performers and/or Studio to all newly scanned Scenes, Images and Galleries..|v0.8|:x:
38-
Scanning|Scene.Create<br />Gallery.Create|[filenameParser](plugins/filenameParser)|Tries to parse filenames, primarily in {studio}.{year}.{month}.{day}.{performer1firstname}.{performer1lastname}.{performer2}.{title} format, into the respective fields|v0.10|:x:
39-
Scanning|Scene.Create|[pathParser](plugins/pathParser)|Updates scene info based on the file path.|v0.17|:x:
40-
Scanning|Scene.Create|[titleFromFilename](plugins/titleFromFilename)|Sets the scene title to its filename|v0.17|:x:
41-
Reporting||[TagGraph](plugins/tagGraph)|Creates a visual of the Tag relations.|v0.7|:x:
25+
Plugins are added by adding configuration yaml files (format: `pluginName.yml`) to the plugins directory.
26+
27+
Loaded plugins can be viewed in the **Settings** > **Plugins** page. After plugins are added, removed or edited while Stash is running, they can be reloaded by clicking **Reload plugins** button.
4228

4329
## Themes
4430

45-
# A Variety of Themes are now available to be one click installed via the Plugin Setting page in your Stash
46-
We welcome new themes, as well as patches to existing themes.
31+
> [!NOTE]
32+
> More themes are available at [https://docs.stashapp.cc/themes](https://docs.stashapp.cc/themes).
4733
48-
## Utility Scripts
34+
### Installing via manager
4935

50-
|Category|Name|Description|Updated for v24|
51-
---------|---------------|-----------|----
52-
StashDB |[StashDB Submission Helper](/userscripts/StashDB_Submission_Helper)|Adds handy functions for StashDB submissions like buttons to add aliases in bulk to a performer|:x:
53-
Kodi|[Kodi Helper](scripts/kodi-helper)|Generates `nfo` and `strm` for use with Kodi.|v0.7|:x:
36+
Plugins can be installed and managed from the **Settings** > **Plugins** page.
5437

55-
## Contributing
38+
Plugins are installed using the **Available Plugins** section. The **Community (stable)** source is configured by default.
39+
Source is located at `https://stashapp.github.io/CommunityScripts/stable/index.yml`.
40+
41+
Installed plugins can be updated or uninstalled from the **Installed Plugins** section.
42+
43+
### Installing via Custom CSS
44+
45+
1. Find a theme from the list and copy the content of .css file.
46+
1. In Stash, go to **Settings** > **Interface** and scroll down to **Custom CSS** heading.
47+
1. Make sure **Custom CSS enabled** is checked.
48+
1. Click on **Edit** under **Custom CSS** and then paste the CSS code into the text box.
49+
1. You will need to force-reload **Shift+F5** in order to see the theme.
50+
51+
## Userscripts
5652

57-
### Formatting
53+
> [!NOTE]
54+
> More userscripts are available at [https://docs.stashapp.cc/userscripts](https://docs.stashapp.cc/userscripts).
5855
59-
Formatting is enforced on all files. Follow this setup guide:
56+
### Browser extension
6057

61-
1. **[Yarn](https://yarnpkg.com/en/docs/install)** and **its dependencies** must be installed to run the formatting tools.
62-
```sh
63-
yarn install --frozen-lockfile
64-
```
58+
To install the userscript you will need a browser extension such as:
59+
60+
- [Violentmonkey](https://violentmonkey.github.io)
61+
- [Tampermonkey](https://www.tampermonkey.net)
62+
- [Greasemonkey](https://www.greasespot.net)
6563

66-
2. **Python dependencies** must also be installed to format `py` files.
67-
```sh
68-
pip install -r requirements.txt
69-
```
64+
### Installing
65+
66+
1. Go to [userscripts directory](https://github.com/stashapp/CommunityScripts/tree/main/userscripts).
67+
2. Find the usersccript you want to install.
68+
3. Select the `.user.js` file.
69+
4. Click `Raw` button. It should either autoamtically prompt your browser extension or you will need to manually copy all the content and create new userscript in the extension yourself.
70+
![image](https://github.com/user-attachments/assets/62dd4258-a4fc-4610-8103-9a3fc7e396a9)
71+
72+
## Scripts
73+
74+
> [!NOTE]
75+
> More scripts are available at [https://docs.stashapp.cc/scripts](https://docs.stashapp.cc/scripts).
76+
77+
To install/run a script follow the install instructions listed in individual README files.
78+
79+
## Contributing
7080

71-
#### Formatting non-`py` files
81+
Submit a PR to add your plugin, theme, userscript and other utility script to the repository.
7282

73-
```sh
74-
yarn run format
75-
```
83+
## Deprecation
7684

77-
#### Formatting `py` files
85+
14-day notice and associated issue with the appropriate label will be created once plugins, themes, userscripts and other utility scripts are marked for deprecation to allow time for someone to take over the development.
7886

79-
`py` files are formatted using [`black`](https://pypi.org/project/black/).
87+
After the 14 days, if nobody takes up the development they will be moved to the [archive](./archive) directory. This will automatically remove plugins from the CommunityScripts source index.
8088

81-
```sh
82-
yarn run format-py
83-
```
89+
Maintainers are expected to show commitment and demonstrate meaningful effort to maintain the code.

0 commit comments

Comments
 (0)