soppressi errori nel porting del vecchio db
This commit is contained in:
@@ -454,6 +454,7 @@ if __name__ == "__main__":
|
||||
# port old db to new
|
||||
old_db_name = filetools.join(config.get_data_path(), "kod_db.sqlite")
|
||||
if filetools.isfile(old_db_name):
|
||||
try:
|
||||
import sqlite3
|
||||
from core import db
|
||||
|
||||
@@ -468,6 +469,7 @@ if __name__ == "__main__":
|
||||
db['viewed'][ris[0]] = show
|
||||
else: # film
|
||||
db['viewed'][ris[0]] = ris[3]
|
||||
finally:
|
||||
filetools.remove(old_db_name)
|
||||
monitor = AddonMonitor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user