Module hdrezka.post.inline

Inline item datatypes

Classes

class InlineInfo (year: int, year_final: int | ellipsis | None, country: str, genre: str)
Expand source code
class InlineInfo(NamedTuple):
    """Info about inline item (bottom)"""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal `...`'
    country: str
    genre: str

Info about inline item (bottom)

Ancestors

  • builtins.tuple

Instance variables

var country : str
Expand source code
class InlineInfo(NamedTuple):
    """Info about inline item (bottom)"""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal `...`'
    country: str
    genre: str

Alias for field number 2

var genre : str
Expand source code
class InlineInfo(NamedTuple):
    """Info about inline item (bottom)"""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal `...`'
    country: str
    genre: str

Alias for field number 3

var year : int
Expand source code
class InlineInfo(NamedTuple):
    """Info about inline item (bottom)"""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal `...`'
    country: str
    genre: str

Alias for field number 0

var year_final : int | ellipsis | None
Expand source code
class InlineInfo(NamedTuple):
    """Info about inline item (bottom)"""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal `...`'
    country: str
    genre: str

If the film is equal to None, if ongoing, equal

class InlineItem (url: str,
name: str,
info: InlineInfo,
poster: str)
Expand source code
class InlineItem(NamedTuple):
    """Content Inline Item view"""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image url'

    @property
    async def player(self):
        """Return a Player Instance"""
        from .. import Player
        return await Player(self.url)

Content Inline Item view

Ancestors

  • builtins.tuple

Instance variables

var infoInlineInfo
Expand source code
class InlineItem(NamedTuple):
    """Content Inline Item view"""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image url'

    @property
    async def player(self):
        """Return a Player Instance"""
        from .. import Player
        return await Player(self.url)

Alias for field number 2

var name : str
Expand source code
class InlineItem(NamedTuple):
    """Content Inline Item view"""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image url'

    @property
    async def player(self):
        """Return a Player Instance"""
        from .. import Player
        return await Player(self.url)

Alias for field number 1

prop player
Expand source code
@property
async def player(self):
    """Return a Player Instance"""
    from .. import Player
    return await Player(self.url)

Return a Player Instance

var poster : str
Expand source code
class InlineItem(NamedTuple):
    """Content Inline Item view"""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image url'

    @property
    async def player(self):
        """Return a Player Instance"""
        from .. import Player
        return await Player(self.url)

Image url

var url : str
Expand source code
class InlineItem(NamedTuple):
    """Content Inline Item view"""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image url'

    @property
    async def player(self):
        """Return a Player Instance"""
        from .. import Player
        return await Player(self.url)

Alias for field number 0