def get_video_database_path(): database_path = control.absPath( control.joinPath( control.dataPath, '..', '..', 'Database', )) kodi_version = control.getKodiVersion() if kodi_version == 17: database_path = control.joinPath(database_path, 'MyVideos107.db') elif kodi_version == 18: database_path = control.joinPath(database_path, 'MyVideos116.db') elif kodi_version == 19: database_path = control.joinPath(database_path, 'MyVideos119.db') return database_path
def get_video_database_path(): database_path = control.absPath( control.joinPath( control.dataPath, '..', '..', 'Database', )) # doesn't work with mysql # path_db = 'special://profile/Database/%s' % db_name kodi_version = control.getKodiVersion() if kodi_version == 17: database_path = control.joinPath(database_path, 'MyVideos107.db') elif kodi_version == 18: database_path = control.joinPath(database_path, 'MyVideos116.db') elif kodi_version == 19: database_path = control.joinPath(database_path, 'MyVideos119.db') return database_path