From c26eb396957ec09be592ce4ea86d9cd5f4ef0fda Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 10 Oct 2014 15:39:13 +0800 Subject: [PATCH] Fix for custom newznab providers with leading integer in name --- sickbeard/tvcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 0d790d4f..0eb638fd 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -51,7 +51,7 @@ class CacheDBConnection(db.DBConnection): self.action("DELETE FROM [" + providerName + "] WHERE url = ?", [cur_dupe["url"]]) # add unique index to prevent further dupes from happening if one does not exist - self.action("CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON " + providerName + " (url)") + self.action("CREATE UNIQUE INDEX IF NOT EXISTS idx_url ON [" + providerName + "] (url)") # add release_group column to table if missing if not self.hasColumn(providerName, 'release_group'):