Skip to content

Commit a6fcb21

Browse files
committed
Fix arguments
1 parent 58fabe9 commit a6fcb21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/plex-bootstraptest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ def get_tvshow_path(name, season, episode):
7272
return os.path.join(tvshows_path, name, 'S%02dE%02d.mp4' % (season, episode))
7373

7474

75-
def add_library_section(server, section, opts):
75+
def add_library_section(server, section):
7676
""" Add the specified section to our Plex instance. This tends to be a bit
7777
flaky, so we retry a few times here.
7878
"""
7979
start = time.time()
8080
runtime = 0
81-
while runtime < opts.bootstrap_timeout:
81+
while runtime < 60:
8282
try:
8383
server.library.add(**section)
8484
return True
@@ -127,7 +127,7 @@ def alert_callback(data):
127127
start = time.time()
128128
bar = tqdm(desc='Scanning section ' + section['name'], total=expected_media_count)
129129
notifier = server.startAlertListener(alert_callback)
130-
add_library_section(server, section, opts)
130+
add_library_section(server, section)
131131
while bar.n < bar.total:
132132
if runtime >= opts.bootstrap_timeout:
133133
print('Metadata scan taking too long, probably something went really wrong')
@@ -325,7 +325,7 @@ def alert_callback(data):
325325
if sections:
326326
print('Creating the Plex libraries in our instance')
327327
for section in sections:
328-
create_section(server, section)
328+
create_section(server, section, opts)
329329

330330
# Share this instance with the specified username
331331
if account:

0 commit comments

Comments
 (0)