Skip to content

Commit 7a698b6

Browse files
[bulkImageScrape] update to use PythonDepManager Plugin (#564)
1 parent c37b15b commit 7a698b6

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

plugins/PythonDepManager/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ Handle multiple different requirements for imports:
9797
```python
9898
from PythonDepManager import ensure_import
9999
ensure_import(
100-
"requests"
101-
"bs4:beautifulsoup4==4.9.3"
102-
"stashapi:stashapp-tools==0.2.58"
103-
"someothermodule>=0.1"
100+
"requests",
101+
"bs4:beautifulsoup4==4.9.3",
102+
"stashapi:stashapp-tools==0.2.58",
103+
"someothermodule>=0.1",
104104
)
105105
```
106106

plugins/bulkImageScrape/BulkImageScrape.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Bulk Image Scrape
2+
# requires: PythonDepManager
23
description: Apply an image scraper to all images
3-
version: 0.3.1
4+
version: 0.3.2
45
url: https://github.com/stashapp/CommunityScripts/
56
exec:
67
- python

plugins/bulkImageScrape/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Apply any image scraper to all of your images
66

77
## Install
88

9-
After you installed the plugin, make sure you have the latest version of stashapi installed by running `pip install -r <path to your stash>/plugins/community/BulkImageScrape/requirements.txt`.
9+
The Plugin uses [PythonDepManager](https://github.com/stashapp/CommunityScripts/tree/main/plugins/PythonDepManager) to install requirements on it's own. `git` and `pip` must be installed for everything to work properly
1010

1111
## Config
1212

plugins/bulkImageScrape/bulkImageScrape.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import json
44
import math
55
import time
6+
7+
from PythonDepManager import ensure_import
8+
ensure_import("stashapi@git+https://github.com/stg-annon/stashapi@f2de6fa")
9+
610
import stashapi.log as log
711
from stashapi.stash_types import StashItem
812
from stashapi.stashapp import StashInterface

0 commit comments

Comments
 (0)