mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-12 17:57:43 +08:00
Replace tabs by spaces
This commit is contained in:
parent
669b1a8b92
commit
8db5f33873
1 changed files with 2 additions and 2 deletions
|
@ -42,10 +42,10 @@ def update_all_episodes():
|
|||
|
||||
try:
|
||||
c.execute('''INSERT INTO table_episodes(sonarrSeriesId, sonarrEpisodeId, title, path, season, episode) VALUES (?, ?, ?, ?, ?, ?)''', (episode['seriesId'], episode['id'], episode['title'], episode['episodeFile']['path'], episode['seasonNumber'], episode['episodeNumber']))
|
||||
db.commit()
|
||||
db.commit()
|
||||
except sqlite3.Error:
|
||||
c.execute('''UPDATE table_episodes SET sonarrSeriesId = ?, sonarrEpisodeId = ?, title = ?, path = ?, season = ?, episode = ? WHERE sonarrEpisodeId = ?''', (episode['seriesId'], episode['id'], episode['title'], episode['episodeFile']['path'], episode['seasonNumber'], episode['episodeNumber'], episode['id']))
|
||||
db.commit()
|
||||
db.commit()
|
||||
else:
|
||||
continue
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue