metacontainers.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:specto 作者: mrknow 项目源码 文件源码
def __init__(self):

        #Check if a path has been set in the addon settings
        settings_path = common.addon.get_setting('meta_folder_location')

        if settings_path:
            self.path = xbmc.translatePath(settings_path)
        else:
            self.path = xbmc.translatePath('special://profile/addon_data/script.module.metahandler')

        self.work_path = os.path.join(self.path, 'work', '')
        self.cache_path = os.path.join(self.path,  'meta_cache')
        self.videocache = os.path.join(self.cache_path, 'video_cache.db')
        self.work_videocache = os.path.join(self.work_path, 'video_cache.db')
        self.movie_images = os.path.join(self.cache_path, 'movie')
        self.tv_images = os.path.join(self.cache_path, 'tvshow')        

        self.table_list = ['movie_meta', 'tvshow_meta', 'season_meta', 'episode_meta']

        common.addon.log('---------------------------------------------------------------------------------------', 0)
        #delete and re-create work_path to ensure no previous files are left over
        self._del_path(self.work_path)

        #Re-Create work folder
        self.make_dir(self.work_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号