-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathSAMPLE_configuration.py
52 lines (47 loc) · 4.09 KB
/
SAMPLE_configuration.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
#Server configuration
use_https = True # Set to False for HTTP
server_ip= "<IP_ADDRESS>" #Don't include the '<' or '>'
server_port = "<PORT>" #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
# Configuration options
scrape_tag= "Scraped From ThePornDB" #Tag to be added to scraped scenes. Set to None (without quotes) to disable
unmatched_tag = "Missing From ThePornDB" #Tag to be added to scenes that aren't matched at TPDB. Set to None (without quotes) to disable.
disambiguate_only = False # Set to True to run script only on scenes tagged due to ambiguous scraping. Useful for doing manual disambgiuation. Must set ambiguous_tag for this to work
verify_aliases_only = False # Set to True to scrape only scenes that were skipped due to unconfirmed aliases - set confirm_questionable_aliases to True before using
rescrape_scenes= False # If False, script will not rescrape scenes previously scraped successfully. Must set scrape_tag for this to work
retry_unmatched = False # If False, script will not rescrape scenes previously unmatched. Must set unmatched_tag for this to work
debug_mode = False
#Set what fields we scrape
set_details = True
set_date = True
set_cover_image = True
set_performers = True
set_studio = True
set_tags = True
set_title = True
set_url = True
#Set what content we add to Stash, if found in ThePornDB but not in Stash
add_studio = True
add_tags = False # Script will still add scrape_tag and ambiguous_tag, if set. Will also tag ambiguous performers if set to True.
add_performers = True
#Disambiguation options
#The script tries to disambiguate using title, studio, and date (or just filename if parse_with_filename is True). If this combo still returns more than one result, these options are used. Set both to False to skip scenes with ambiguous results
auto_disambiguate = False #Set to True to try to pick the top result from ThePornDB automatically. Will not set ambiguous_tag
manual_disambiguate = False #Set to True to prompt for a selection. (Overwritten by auto_disambiguate)
ambiguous_tag = "ThePornDB Ambiguous" #Tag to be added to scenes we skip due to ambiguous scraping. Set to None (without quotes) to disable
#Disambiguation options for when a specific performer can't be verified
tag_ambiguous_performers = True # If True, will tag ambiguous performers (performers listed on ThePornDB only for a single site, not across sites)
confirm_questionable_aliases = True #If True, when TPBD lists an alias that we can't verify, manually prompt for config. Otherwise they are tagged for later reprocessing
trust_tpbd_aliases = True #If True, when TPBD lists an alias that we can't verify, just trust TBPD to be correct. May lead to incorrect tagging
#Other config options
parse_with_filename = True # If True, will query ThePornDB based on file name, rather than title, studio, and date
dirs_in_query = 0 # The number of directories up the path to be included in the query for a filename parse query. For example, if the file is at \performer\mysite\video.mp4 and dirs_in_query is 1, query would be "mysite video." If set to two, query would be "performer mysite video", etc.
only_add_female_performers = True #If True, only female performers are added (note, exception is made if performer name is already in title and name is found on ThePornDB)
scrape_performers_freeones = True #If True, will try to scrape newly added performers with the freeones scraper
get_images_babepedia = True #If True, will try to grab an image from babepedia before the one from ThePornDB
include_performers_in_title = True #If True, performers will be added at the beggining of the title
clean_filename = True #If True, will try to clean up filenames before attempting scrape. Often unnecessary, as ThePornDB already does this
compact_studio_names = True # If True, this will remove spaces from studio names added from ThePornDB
proxies={} # Leave empty or specify proxy like this: {'http':'http://user:[email protected]:8000','https':'https://user:[email protected]:8000'}