Skip to content

Commit b166d47

Browse files
authored
clean up unused dependencies requirements (#399)
Co-authored-by: feederbox826 <[email protected]>
1 parent dc0b6c6 commit b166d47

File tree

9 files changed

+10
-29
lines changed

9 files changed

+10
-29
lines changed

plugins/DateParser/date_parser.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import sys, json
2-
from pathlib import Path
32

43
import stashapi.log as log
54
from stashapi.stashapp import StashInterface
65
import re
76
from dateparser import parse
8-
from datetime import datetime
97

108

119
def main():
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
certifi>=2022.9.24
2-
charset-normalizer>=2.1.1
31
dateparser>=1.1.3
4-
idna>=3.4
5-
python-dateutil>=2.8.2
6-
pytz>=2022.6
7-
pytz-deprecation-shim>=0.1.0.post0
8-
regex>=2022.3.2
9-
requests>=2.28.1
10-
six>=1.16.0
11-
stashapp-tools>=0.2.17
12-
tzdata>=2022.6
13-
tzlocal>=4.2
14-
urllib3>=1.26.12
2+
stashapp-tools>=0.2.17
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
stashapp-tools >= 0.2.49
22
pyYAML
3-
watchdog
3+
watchdog
4+
schedule
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
stashapp-tools >= 0.2.49
2-
pyYAML
32
requests

plugins/TPDBMarkers/tpdbMarkers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
per_page = 100
1111
request_s = requests.Session()
1212

13+
TPDB_ENDPOINT = "https://theporndb.net/graphql"
1314

1415
def processScene(scene):
1516
for sid in scene["stash_ids"]:
16-
if sid["endpoint"] == "https://theporndb.net/graphql":
17+
if sid["endpoint"] == TPDB_ENDPOINT:
1718
log.debug("Scene has a TPDB stash id, looking up %s " % (sid["stash_id"],))
1819
res = request_s.get(
1920
"https://api.theporndb.net/scenes/%s" % (sid["stash_id"],)
@@ -58,7 +59,7 @@ def processAll():
5859
count = stash.find_scenes(
5960
f={
6061
"stash_id_endpoint": {
61-
"endpoint": "https://theporndb.net/graphql",
62+
"endpoint": TPDB_ENDPOINT,
6263
"modifier": "NOT_NULL",
6364
"stash_id": "",
6465
},
@@ -87,7 +88,7 @@ def processAll():
8788
scenes = stash.find_scenes(
8889
f={
8990
"stash_id_endpoint": {
90-
"endpoint": "https://theporndb.net/graphql",
91+
"endpoint": TPDB_ENDPOINT,
9192
"modifier": "NOT_NULL",
9293
"stash_id": "",
9394
},
@@ -160,11 +161,11 @@ def processMovie(m):
160161
log.debug("settings: %s " % (settings,))
161162

162163
# Set up the auth token for tpdb
163-
if "https://theporndb.net/graphql" in [
164+
if TPDB_ENDPOINT in [
164165
x["endpoint"] for x in stash.get_configuration()["general"]["stashBoxes"]
165166
]:
166167
for x in stash.get_configuration()["general"]["stashBoxes"]:
167-
if x["endpoint"] == "https://theporndb.net/graphql":
168+
if x["endpoint"] == TPDB_ENDPOINT:
168169
request_s.headers["Authorization"] = "Bearer %s" % (x["api_key"],)
169170

170171
if "mode" in json_input["args"]:

plugins/setSceneCoverFromFile/set_cover.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import re
33
import sys
44
import json
5-
import base64
65

76
try:
87
import stashapi.log as log

plugins/stashdb-performer-gallery/stashdb-performer-gallery.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import stashapi.log as log
2-
from stashapi.stashapp import StashInterface, StashItem
2+
from stashapi.stashapp import StashInterface
33
from stashapi.stashbox import StashBoxInterface
44
import os
55
import sys
66
import requests
77
import json
8-
import time
9-
import math
108
import requests
119
from pathlib import Path
1210
import base64

plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import stashapi.log as log
21
from stashapi.stashapp import StashInterface
32
import sys
43
import json
54

6-
75
def processAll():
86
query = {
97
"tags": {

plugins/timestampTrade/timestampTrade.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import stashapi.log as log
22
from stashapi.stashapp import StashInterface
33
import stashapi.marker_parse as mp
4-
import os
54
import sys
65
import requests
76
import json

0 commit comments

Comments
 (0)