当前位置: 首页>>代码示例>>Python>>正文


Python summary.SummaryMapper类代码示例

本文整理汇总了Python中trakt.mapper.summary.SummaryMapper的典型用法代码示例。如果您正苦于以下问题:Python SummaryMapper类的具体用法?Python SummaryMapper怎么用?Python SummaryMapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SummaryMapper类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get

    def get(self, id):
        response = self.http.get(
            str(id)
        )

        return SummaryMapper.show(
            self.get_data(response)
        )
开发者ID:HaKDMoDz,项目名称:Plex-Trakt-Scrobbler,代码行数:8,代码来源:__init__.py

示例2: season

    def season(self, id, season):
        response = self.http.get(str(id), [
            'seasons', str(season)
        ])

        return SummaryMapper.episodes(
            self.get_data(response)
        )
开发者ID:HaKDMoDz,项目名称:Plex-Trakt-Scrobbler,代码行数:8,代码来源:__init__.py

示例3: seasons

    def seasons(self, id):
        response = self.http.get(str(id), [
            'seasons'
        ])

        return SummaryMapper.seasons(
            self.get_data(response)
        )
开发者ID:HaKDMoDz,项目名称:Plex-Trakt-Scrobbler,代码行数:8,代码来源:__init__.py

示例4: trending

    def trending(self, **kwargs):
        response = self.http.get('trending', query=dict(**popitems(kwargs, ['extended', 'limit'])))

        items = self.get_data(response, **kwargs)

        if isinstance(items, requests.Response):
            return items

        return SummaryMapper.shows(self.client, items)
开发者ID:SiCKRAGETV,项目名称:SiCKRAGE,代码行数:9,代码来源:__init__.py

示例5: get

    def get(self, id, **kwargs):
        response = self.http.get(str(id), query=dict(**popitems(kwargs, ['extended', 'limit'])))

        item = self.get_data(response, **kwargs)

        if isinstance(item, requests.Response):
            return item

        return SummaryMapper.show(self.client, item)
开发者ID:SiCKRAGETV,项目名称:SiCKRAGE,代码行数:9,代码来源:__init__.py

示例6: trending

    def trending(self):
        response = self.http.get(
            'trending'
        )

        return SummaryMapper.movies(
            self.client,
            self.get_data(response)
        )
开发者ID:beljim,项目名称:tknorris-beta-repo,代码行数:9,代码来源:__init__.py

示例7: season

    def season(self, id, season, **kwargs):
        response = self.http.get(str(id), [
            'seasons', str(season)
        ])

        return SummaryMapper.episodes(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:engeld,项目名称:traktforalfred,代码行数:9,代码来源:__init__.py

示例8: get

    def get(self, id, **kwargs):
        response = self.http.get(
            str(id)
        )

        return SummaryMapper.show(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:engeld,项目名称:traktforalfred,代码行数:9,代码来源:__init__.py

示例9: trending

    def trending(self, **kwargs):
        response = self.http.get(
            'trending'
        )

        return SummaryMapper.shows(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:engeld,项目名称:traktforalfred,代码行数:9,代码来源:__init__.py

示例10: seasons

    def seasons(self, id, **kwargs):
        response = self.http.get(str(id), [
            'seasons'
        ])

        return SummaryMapper.seasons(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:engeld,项目名称:traktforalfred,代码行数:9,代码来源:__init__.py

示例11: episode

    def episode(self, id, season, episode):
        response = self.http.get(str(id), [
            'seasons', str(season),
            'episodes', str(episode)
        ])

        return SummaryMapper.episode(
            self.get_data(response)
        )
开发者ID:HaKDMoDz,项目名称:Plex-Trakt-Scrobbler,代码行数:9,代码来源:__init__.py

示例12: get

    def get(self, id, **kwargs):
        response = self.http.get(
            str(id)
        )

        # Parse response
        return SummaryMapper.movie(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:AMOboxTV,项目名称:AMOBox.LegoBuild,代码行数:10,代码来源:__init__.py

示例13: seasons

    def seasons(self, id, extended=None, **kwargs):
        response = self.http.get(str(id), [
            'seasons'
        ], query={
            'extended': extended
        })

        return SummaryMapper.seasons(
            self.client,
            self.get_data(response, **kwargs)
        )
开发者ID:MCs88,项目名称:Plex-Trakt-Scrobbler,代码行数:11,代码来源:__init__.py

示例14: trending

    def trending(self, extended=None, **kwargs):
        response = self.http.get('trending', query={
            'extended': extended
        })

        items = self.get_data(response, **kwargs)

        if isinstance(items, requests.Response):
            return items

        return SummaryMapper.shows(self.client, items)
开发者ID:fuzeman,项目名称:Plex-Trakt-Scrobbler,代码行数:11,代码来源:__init__.py

示例15: get

    def get(self, id, extended=None, **kwargs):
        response = self.http.get(str(id), query={
            'extended': extended
        })

        item = self.get_data(response, **kwargs)

        if isinstance(item, requests.Response):
            return item

        return SummaryMapper.show(self.client, item)
开发者ID:fuzeman,项目名称:Plex-Trakt-Scrobbler,代码行数:11,代码来源:__init__.py


注:本文中的trakt.mapper.summary.SummaryMapper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。