forked from wmcbrine/pytivo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyTivo.conf.dist
172 lines (143 loc) · 6.15 KB
/
pyTivo.conf.dist
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# This is an example config file, showing all the options. You probably
# won't need most of them. Your working config file will be named
# "pyTivo.conf". '#' starts a comment. It is recommended that
# that you use the Web Administration tool to modify pyTivo.conf after
# you get pyTivo up and running. You can access the tool by pointing your
# browser to http://localhost:9032/
# Read the pyTivo support wiki for additional help at
# http://pytivo.sourceforge.net
[Server]
# This is the port that pyTivo's http server uses for its webinterface
# it defaults to 9032 if not specified here.
port = 9032
# Your Media Access Key is needed for all togo functionality and also
# to decode .tivo files to be uploaded to the TiVo. A value must be
# specified here to enable togo functionality (along with a path in the
# togo section).
#tivo_mak = <Your Media Access Key>
# FFmpeg is a required tool but downloaded separately. See pyTivo wiki
# for help.
# Full path to ffmpeg including filename
# For windows: ffmpeg=C:\pyTivo\bin\ffmpeg.exe
# For linux: ffmpeg=/usr/bin/ffmpeg
#ffmpeg=C:\pyTivo\bin\ffmpeg.exe
ffmpeg=/usr/bin/ffmpeg
# If either tivolibre or tivodecode are available you can specify where
# they are located, if they aren't found in your path. tivolibre is more
# capable than tivodecode as it can also handle TS downloaded files
# and will be used if both are found.
#tivolibre = /home/armooo/bin/tivolibre.sh
#tivodecode = /usr/bin/tivodecode
# Beacon broadcast address(es)
# The default is 255.255.255.255, but on some multihomed machines you
# may need to specify the subnet broadcast address(es) of your Tivo
# boxes. You can also specify "listen" to listen for direct connection
# attempts on port 2190, for use with the "Manually add a server..."
# function. (And if you set beacon to listen _only_, it turns off
# broadcasts.)
#beacon=192.168.1.255 listen
# The ts setting says to tell the TiVo it should request a transport stream
# download (upload from pyTivo) of a video. Use auto to let pyTivo
# determine what to tell the TiVo based on the file's extension, or
# True/False (also On/Off) to force what is sent to the TiVo.
# auto is the default if not specified
#ts = auto
# Setting this to True will log more ouput for debugging purposes.
#debug=False
# Max video bitrate, default 30000k
# sets ffmpeg -maxrate setting to minimize bitrate peak playback issues.
# mpegs with video bitrate above this setting will also be transcoded.
#MAX_VIDEO_BR=17408k
# Audio bit-rate, defaults to 192K for S2, 384K for S3/HD
#audio_br=320K
# Video bit-rate, defaults to 4096K for S2, 8192K for S3/HD
#video_br=12Mi
# Togo settings:
# Set this up if you wish to have TiVo ToGo support. This allows you to
# copy videos from your TiVo via a web page.
[togo]
#path=<path where movies will go or a section name>
# Naming of the saved togo downloaded files. The field names are defined ?where? -mjl 6/17/2017
# These formats work well for Plex (although NOTE: season and episode are NOT correctly
# populated because the metadata isn't available from the TiVo, and will always be 0)
episode_fn = {title} - s{season:d}e{episode:02d} - {episode_title} ({date_recorded:%b_%d_%Y}, {callsign})
movie_fn = {title} ({movie_year}) ({date_recorded:%b_%d_%Y}, {callsign})
# These formats are close to the naming used for Tivo Desktop
# (you can also leave episode_fn and movie_fn undefined to use the original naming)
#episode_fn = {title} - ''{episode_title}'' (Recorded {date_recorded:%b %d, %Y}, {callsign}) ({tivo_stream_type})
#movie_fn = {title} (Recorded {date_recorded:%b %d, %Y}, {callsign}) ({tivo_stream_type})
# This is similar to the Tivo Desktop sortable naming
#episode_fn = {title} - {date_recorded:%Y-%m-%d} - ''{episode_title}'' {callsign} ({tivo_stream_type})
#movie_fn = {title} - {date_recorded:%Y-%m-%d} {callsign} ({tivo_stream_type})
# Current TiVos (as of June 2017 at least) have a bug where the Transport stream (TS)
# data being sent is corrupted (losing sync), pytivo can attempt to recognize the
# corruption and try again.
# The togo_ts_error_mode may be set one of the following:
# ignore : Ignore any errors encountered and just save what is sent
# reject : abort the download as soon as an error is detected
# best : keep the file with the least number of errors detected
# all : keep all attempts w/ attempt #, error packets encoded in the name
#ts_error_mode = [ignore | best | reject | all]
ts_error_mode = ignore
# ts_max_retries only applies when ts_error_mode is best, reject or all
ts_max_retries = 3
# Per tivo options
# section named _tivo_TSN with the tsn in all caps
#[_tivo_00000DEADBEEF]
# You can override the MAK specified in the Server section for
# this particular TiVo
#tivo_mak = <Your Media Access Key>
# If you want to use 16:9 or 4:3 on this tivo
#aspect169=true
#audio_br=320K
#video_br=12Mi
#[_tivo_4K]
# section for default video options applicable to all 4K capable TiVos
# see pyTivo Settings for all available settings
#[_tivo_HD]
# section for default video options applicable to all HD TiVos
# see pyTivo Settings for all available settings
#[_tivo_SD]
# section for default video options applicable to all SD TiVos
# see pyTivo Settings for all available settings
[MyMovies]
# Type can be 'video', 'music', or 'photo'
type=video
# Path is the full path to your files (No trailing slash needed)
# For windows: path=c:\videos
# For linux: path=/media
path=/home/armooo/Videos
# You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television
# For more extensive logging control you can use the following sections.
# The options specified are only an example.
# See https://docs.python.org/3/library/logging.config.html#configuration-file-format
#[loggers]
#keys = root
#
#[handlers]
#keys = console,rotfile
#
#[formatters]
#keys = basicform
#
#[logger_root]
#level = DEBUG
#handlers = console,rotfile
##handlers = console
#
#[handler_console]
#level = INFO
#class = StreamHandler
#formatter = basicform
#args = (sys.stdout,)
#
#[handler_rotfile]
#class = handlers.RotatingFileHandler
#formatter = basicform
#args = ('/home/armooo/tmp/pytivo_debug.log', 'a', 256000, 4)
#
#[formatter_basicform]
#format = %(asctime)s %(levelname)-5s %(name)s: %(message)s