-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
82 lines (67 loc) · 2.63 KB
/
config.yaml
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
# this is the configuration file for moviESC
# db params
redis_host: !!str "localhost"
redis_port: !!str "6379"
redis_db: !!str "0"
# key names / formats
key_opendirs: !!str 'opendirs' # the set containing all the opendirs that have been crawled
key_toIndex: !!str 'toIndex' # the set where the movies that still need to be indexed are stored
key_failed: !!str 'failed' # the set where the unreadable (no size/hash) movies are saved
key_noIMDB: !!str 'noIMDB' # the set containing the movies for which no IMDB was found
key_noMeta: !!str 'noMeta' # the set containing the movies for which no metadata was found
key_imdb: !!str 'imdb:#imdbid#' # the hash containing all the IMDB metadata we are interested in
key_uris: !!str 'uris:#imdbid#' # the hash containing all the URIs matching a gived IMDBid
key_hashIMDB: !!str 'h2i:#size#:#hash#' # cached mappings between bytesize/movhash and IMDB ids
key_genres: !!str 'genre:#genre#' # the set containing all the IMDBids of movies of a given genre
# main URLs for scraping
opensubtitles_URL: !!str 'http://www.opensubtitles.org/en/search/sublanguageid-all/moviebytesize-BYTESIZE/moviehash-HASH'
opensubtitles_IMDBid_regexp: !!str 'imdb.com/title/tt(\d+)/'
movieposterdb_URL: !!str 'http://www.movieposterdb.com/movie/'
movieposterdb_poster_regexp: !!str 'property="og:image" content="([^"]+)"'
# folders
path_posters: !!str './posters'
# interactive identification allows user to manually specify
# an IMDB id when a movie cannot be identified automatically
interactive_ident: !!bool 'False'
# logger
logging:
version: 1
disable_existing_loggers: True
root:
level: !!python/name:logging.NOTSET
handlers: [console]
loggers:
# Logging from my application
dev:
level: !!python/name:logging.INFO
handlers: [console]
qualname: dev
propagate: false
movies:
level: !!python/name:logging.INFO
handlers: [stderr]
qualname: movies
propagate: false
# Controlling logging of 3rd party libs
# ...
handlers:
# logfile:
# class: logging.FileHandler
# filename: moviESC.log
# formatter: simpleFormatter
# level: !!python/name:logging.NOTSET
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: simpleFormatter
level: !!python/name:logging.NOTSET
stderr:
class: logging.StreamHandler
stream: ext://sys.stderr
formatter: simpleFormatter
level: !!python/name:logging.NOTSET
formatters:
simpleFormatter:
#format: '%(name)s %(asctime)s %(levelname)s %(message)s'
format: '[%(levelname)s] %(message)s'
datefmt: '%Y%m%d%H%M%S'