mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-30 19:02:34 +00:00
WIP
This commit is contained in:
parent
8a1135565c
commit
dce67fa874
2 changed files with 2 additions and 4 deletions
|
@ -42,8 +42,7 @@ def create_app():
|
|||
return redirect(url_for('series'), code=302)
|
||||
return render_template('404.html'), 404
|
||||
|
||||
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*', async_mode='threading',
|
||||
manage_session=False)
|
||||
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*', async_mode='threading')
|
||||
return app
|
||||
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@ def sync_episodes():
|
|||
# Get sonarrId for each series from database
|
||||
seriesIdList = database.execute("SELECT sonarrSeriesId, title FROM table_shows")
|
||||
|
||||
seriesIdListLength = len(seriesIdList)
|
||||
for i, seriesId in enumerate(seriesIdList, 1):
|
||||
for i, seriesId in enumerate(seriesIdList):
|
||||
# Get episodes data for a series from Sonarr
|
||||
url_sonarr_api_episode = url_sonarr() + "/api/episode?seriesId=" + str(seriesId['sonarrSeriesId']) + "&apikey=" + apikey_sonarr
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue