mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-06 18:23:15 +00:00
Fixed the db update queue overwrite issue.
This commit is contained in:
@@ -153,7 +153,7 @@ class PseudoChannelDatabase():
|
||||
def add_shows_to_db(self, mediaID, title, duration, lastEpisodeTitle, fullImageURL, plexMediaID):
|
||||
unix = int(time.time())
|
||||
try:
|
||||
self.cursor.execute("REPLACE INTO shows "
|
||||
self.cursor.execute("INSERT OR IGNORE INTO shows "
|
||||
"(unix, mediaID, title, duration, lastEpisodeTitle, fullImageURL, plexMediaID) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||
(unix, mediaID, title, duration, lastEpisodeTitle, fullImageURL, plexMediaID))
|
||||
self.conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user