Skip to content

Commit 5f1dc4f

Browse files
committed
fix: use xbmcvfs instead of shutil
1 parent ef735fd commit 5f1dc4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

resources/lib/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import xbmc,xbmcgui,xbmcaddon,xbmcvfs,json,os,shutil
1+
import xbmc,xbmcgui,xbmcaddon,xbmcvfs,json,os
22
from pathlib import Path
33
from urllib.parse import urlencode
44
from datetime import datetime as dt
@@ -410,7 +410,7 @@ def _move_or_copy_zipped_db(self):
410410
self.config.files.get('addon_data_db_zipped').rename(self.config.files.get('db_zipped_backup'))
411411
except Exception:
412412
try:
413-
shutil.copy(self.config.files.get('addon_data_db_zipped'),self.config.files.get('db_zipped_backup'))
413+
xbmcvfs.copy(str(self.config.files.get('addon_data_db_zipped')), str(self.config.files.get('db_zipped_backup')))
414414
except Exception as e:
415415
xbmc.log(msg='IAGL: Error creating a backup of the db: {}'.format(e),level=xbmc.LOGERROR)
416416

0 commit comments

Comments
 (0)