Skip to content

Commit 30dab06

Browse files
authored
Merge pull request #18 from Lurking987/Lurking987-Stash_Group_ADVE_Upgrade
Stash_Group_ADVE_Movie_Plugin Upgrade
2 parents 7a12bab + 0a10d27 commit 30dab06

4 files changed

Lines changed: 265 additions & 246 deletions

File tree

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
name: "Stash Group ADVE Movie Checker"
2-
description: "Compares scenes in a Stash Group against AdultDVDEmpire. Requires an ADVE URL in the Group's URL list."
3-
version: "0.3.0"
4-
5-
ui:
6-
javascript:
7-
- panel.js
8-
assets:
9-
/results: results
10-
csp:
11-
connect-src:
12-
- https://adultdvdempire.com
13-
- https://www.adultdvdempire.com
14-
15-
tasks:
16-
- name: "Check Group Scenes"
17-
description: "Scrapes ADVE for a single Group (triggered by the UI panel)."
18-
defaultArgs:
19-
mode: check_group
20-
21-
- name: "Scrape ADVE Scenes for All Groups"
22-
description: "Scrapes ADVE scene data for every Group that has an ADVE URL."
23-
defaultArgs:
24-
mode: scrape_all
25-
26-
exec:
27-
- python3
28-
- "{pluginDir}/checker.py"
1+
name: "Stash Group ADVE Movie Checker"
2+
description: "Compares scenes in a Stash Group against AdultDVDEmpire. Requires an ADVE URL in the Group's URL list."
3+
version: "0.8.0"
4+
5+
ui:
6+
javascript:
7+
- panel.js
8+
assets:
9+
/results: results
10+
csp:
11+
connect-src:
12+
- https://adultdvdempire.com
13+
- https://www.adultdvdempire.com
14+
15+
tasks:
16+
- name: "Check Group Scenes"
17+
description: "Scrapes ADVE for a single Group (triggered by the UI panel)."
18+
defaultArgs:
19+
mode: check_group
20+
21+
- name: "Scrape ADVE Scenes for All Groups"
22+
description: "Scrapes ADVE scene data for every Group that has an ADVE URL."
23+
defaultArgs:
24+
mode: scrape_all
25+
26+
exec:
27+
- python3
28+
- "{pluginDir}/checker.py"

plugins/Stash_Group_ADVE_Movie_Plugin/checker.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,33 @@
3131
# ─────────────────────────────────────────────
3232

3333
class log:
34+
# Stash plugin log protocol (from stash/pkg/plugin/common/log):
35+
# Each line on stderr: SOH () + level letter + STX () + message
36+
# Level letters: t=trace, d=debug, i=info, w=warning, e=error, p=progress
37+
TRACE = "t"
38+
DEBUG = "d"
39+
INFO = "i"
40+
WARNING = "w"
41+
ERROR = "e"
42+
PROGRESS = "p"
43+
3444
@staticmethod
3545
def _emit(level: str, msg: str):
3646
print(f"{level}{msg}", file=sys.stderr, flush=True)
3747

3848
@staticmethod
39-
def trace(msg): log._emit("2TRACE:", msg)
49+
def trace(msg): log._emit(log.TRACE, msg)
4050
@staticmethod
41-
def debug(msg): log._emit("2DEBUG:", msg)
51+
def debug(msg): log._emit(log.DEBUG, msg)
4252
@staticmethod
43-
def info(msg): log._emit("2INFO:", msg)
53+
def info(msg): log._emit(log.INFO, msg)
4454
@staticmethod
45-
def warning(msg): log._emit("2WARNING:", msg)
55+
def warning(msg): log._emit(log.WARNING, msg)
4656
@staticmethod
47-
def error(msg): log._emit("2ERROR:", msg)
57+
def error(msg): log._emit(log.ERROR, msg)
4858
@staticmethod
4959
def progress(pct: float):
50-
# pct is 0.0 – 1.0; Stash renders this as the task progress bar
51-
log._emit("2PROGRESS:", f"{pct:.3f}")
60+
log._emit(log.PROGRESS, f"{pct:.3f}")
5261

5362

5463
# ─────────────────────────────────────────────
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
id: Stash_Group_ADVE_Movie_Plugin
2-
name: Stash Group ADVE Movie Plugin
3-
metadata:
4-
description: Compares scenes in a Stash Group against AdultDVDEmpire. Requires an ADVE URL in the Group's URL list.
5-
version: 0.3.0
6-
date: "2026-03-11 03:39:09"
7-
requires: []
8-
source_repository: https://lurking987.github.io/stash-plugins/main/index.yml
9-
files:
10-
- Stash_Group_ADVE_Movie_Plugin.yml
11-
- manifest
12-
- README.md
13-
- panel.js
14-
- checker.py
1+
id: Stash_Group_ADVE_Movie_Plugin
2+
name: Stash Group ADVE Movie Plugin
3+
metadata:
4+
description: Compares scenes in a Stash Group against AdultDVDEmpire. Requires an ADVE URL in the Group's URL list.
5+
version: 0.8.0
6+
date: "2026-03-22 00:42:09"
7+
requires: []
8+
source_repository: https://lurking987.github.io/stash-plugins/main/index.yml
9+
files:
10+
- Stash_Group_ADVE_Movie_Plugin.yml
11+
- manifest
12+
- README.md
13+
- panel.js
14+
- checker.py

0 commit comments

Comments
 (0)