-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFileRenamerConfig.py
84 lines (82 loc) · 3.04 KB
/
FileRenamerConfig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
use_https = False # Set to False for HTTP
server_ip = "192.168.1.71" #Don't include the '<' or '>'
server_port = "9999" #Don't include the '<' or '>'
username = "<USERNAME>" #Don't include the '<' or '>'
password = "<PASSWORD>" #Don't include the '<' or '>'
ignore_ssl_warnings = True # Set to True if your Stash uses SSL w/ a self-signed cert
ignore_tags = ['1','2','3318','6279'] # The ID numbers of tags to not write to NFO
# name_format is the resulting formatting of the filename for rename
# available options are:
# <STUDIO> = The name of the scene 'Studio'
# <PARENT> = The name of the 'Parent' studio. If there is no parent,
# it will be replaced by scene studio
# <TITLE> = Title of the scene, as stored in Stash
# <DATE> = Date of the scene, as stoed in Stash (will be YYY-MM-DD format)
# <ID> = Internal Stash ID of scene
# <TAGS> = The associated tag names, will be separated by ", "
# <PERFORMERS> = Names of associated performers, separated by ", " and surrounded by (). Ie. (Mia Malkova, Keisha Grey)
# <DIMENSION> = Dimensions of the video in '[WIDTHxHEIGHT]' format. Ie. [1920x1080]
# ~ name_format = "<STUDIO> - <DATE> - <TITLE> (<PERFORMERS>)"
name_format = "<STUDIO> <DATE> <TITLE> <PERFORMERS> <DIMENSIONS>"
create_parental_path = True # If true, a directory structure will be created that includes
# subdirectories for all parental studios. File will be
# moved to lowest level.
# If False, the file will not be moved from current directory
create_collection_tags = True # this one is strange, admittedly. Stash 'Tags' are stored in the
# NFO 'Genres' instead. However Plex allows you to use smart
# collections based on tags, so by default this will create tags
# based on the site and parent studio, such as "Site: SiteName"
# and "Studio: StudioName". Set this to False to disable creation
# of these tags.
headers = ""
api_key = ""
file_query = """
query {
findScenes(
scene_filter: { path: { value:
"\\"<FILENAME>\\"",
modifier: INCLUDES } }
) {
scenes {
path
id
title
details
url
date
rating
paths{
screenshot
stream
}
studio{
id
name
image_path
parent_studio{
id
name
details
}
}
tags{
id
name
}
performers{
name
image_path
}
movies{
movie{
name
}
}
file{
width
height
}
}
}
}
"""