Skip to content

Commit 5541edf

Browse files
authored
Added PythonDepManager to avoid people not installing dep (#584)
1 parent 89afb19 commit 5541edf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

plugins/DateParser/date_parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import sys, json
2-
2+
from PythonDepManager import ensure_import
3+
ensure_import("dateparser>=1.2.1")
4+
ensure_import("stashapi:stashapp-tools>=0.2.58")
35
import stashapi.log as log
46
from stashapi.stashapp import StashInterface
57
import re

plugins/DateParser/date_parser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Gallery Date Parser
2+
# requires: PythonDepManager
23
description: Find date in path or filename and add it to the gallery
3-
version: 0.3.0
4+
version: 1.0.0
45
exec:
56
- python
67
- "{pluginDir}/date_parser.py"

0 commit comments

Comments
 (0)