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 an inline catalog item (bottom line)."""
    year: int
    year_final: int | EllipsisType | None
    'If the film is equal to None, if ongoing, equal ``...``'
    country: str
    genre: str

Info about an inline catalog item (bottom line).

Ancestors

  • builtins.tuple

Instance variables

var country : str
Expand source code
class InlineInfo(NamedTuple):
    """Info about an inline catalog item (bottom line)."""
    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 an inline catalog item (bottom line)."""
    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 an inline catalog item (bottom line)."""
    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 an inline catalog item (bottom line)."""
    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,
client: ForwardRef('HDRezkaClient'))
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Content inline item from a catalog or search page.

Ancestors

  • builtins.tuple

Instance variables

var client
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Session used to resolve player

var info
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Alias for field number 2

var name
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Alias for field number 1

prop player
Expand source code
@property
async def player(self):
    """Return a ``Player`` instance for this item."""
    return await self.client.player(self.url)

Return a Player instance for this item.

var poster
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Image URL

var url
Expand source code
class InlineItem(NamedTuple):
    """Content inline item from a catalog or search page."""
    url: str
    name: str
    info: InlineInfo
    poster: str
    'Image URL'
    client: 'HDRezkaClient'
    'Session used to resolve ``player``'

    @property
    async def player(self):
        """Return a ``Player`` instance for this item."""
        return await self.client.player(self.url)

Alias for field number 0