thetvdb.py 文件源码

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

项目:script.module.thetvdb 作者: marcelveldt 项目源码 文件源码
def get_kodishows_airingtoday(self):
        '''
            returns full info for each tvshow in the kodi library that airs today
        '''
        result = []
        monitor = xbmc.Monitor()
        for series_info in self.get_kodishows(continuing_only=True):
            if monitor.abortRequested() or self._close_called:
                break
            details = self.get_kodishow_details(series_info["title"], serie_details=series_info)
            if details and details.get("next_episode"):
                airdate = arrow.get(details["next_episode"]["firstaired"]).date()
                if airdate == date.today():
                    result.append(series_info)
        del monitor
        return sorted(result, key=lambda k: k.get('airtime', ""))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号