Skip to content

TV Episode Groups

Bases: TMDB

TV Episode Groups functionality.

See: https://developers.themoviedb.org/3/tv-episode-groups

Source code in src/tmdb_client_py/tv.py
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
class TV_Episode_Groups(TMDB):
    """
    TV Episode Groups functionality.

    See: https://developers.themoviedb.org/3/tv-episode-groups
    """

    BASE_PATH = "tv/episode_group"
    URLS = {
        "info": "/{id}",
    }

    def __init__(self, id):
        super().__init__()
        self.id = id

    def info(self, **kwargs):
        """
        Get the details of a TV episode group. Groups support 7 different types
        which are enumerated as the following:
            1. Original air date
            2. Absolute
            3. DVD
            4. Digital
            5. Story arc
            6. Production
            7. TV

        Args:
            language: (optional) ISO 639 code.

        Returns:
            A dict representation of the JSON returned from the API.
        """
        path = self._get_id_path("info")

        response = self._GET(path, kwargs)
        self._set_attrs_to_values(response)
        return response

info(**kwargs)

Get the details of a TV episode group. Groups support 7 different types which are enumerated as the following: 1. Original air date 2. Absolute 3. DVD 4. Digital 5. Story arc 6. Production 7. TV

Parameters:

Name Type Description Default
language

(optional) ISO 639 code.

required

Returns:

Type Description

A dict representation of the JSON returned from the API.

Source code in src/tmdb_client_py/tv.py
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
def info(self, **kwargs):
    """
    Get the details of a TV episode group. Groups support 7 different types
    which are enumerated as the following:
        1. Original air date
        2. Absolute
        3. DVD
        4. Digital
        5. Story arc
        6. Production
        7. TV

    Args:
        language: (optional) ISO 639 code.

    Returns:
        A dict representation of the JSON returned from the API.
    """
    path = self._get_id_path("info")

    response = self._GET(path, kwargs)
    self._set_attrs_to_values(response)
    return response