Skip to content

Releases

v5.2.0

Choose a tag to compare

@ndenissov ndenissov released this 25 Jul 18:41

5.2.0

Added

  • Browser TLS/HTTP2 impersonation via curl_cffi / httpx-curl-cffi
    (HDRezkaClient(impersonate=...), on by default).
  • Chrome-like default request headers when impersonation is disabled.
  • README disclaimer about service terms, mirrors, and Cloudflare reality.

Changed

  • Default host is https://rezka.ag/ (see service rules for free viewing).
  • mirrors.txt categories updated for registration / Cloudflare mirrors.

Full Changelog: v5.1.0...v5.2.0

v5.1.0

Choose a tag to compare

@ndenissov ndenissov released this 25 Jul 14:12

5.1.0

Added

  • get_page — support optional page parameter in pagination
  • parse_schedule / Post.schedule — episode release schedule tables on title pages.

Full Changelog: v5.0.0...v5.1.0

v5.0.0

Choose a tag to compare

@ndenissov ndenissov released this 25 Jul 08:02

5.0.0

Breaking: process-global session state is removed. Use one HDRezkaClient per user
(or per API request scope).

Added

  • HDRezkaClient — isolated async session (HTTP client, host, cookies, player cache).
  • Client factories: search, page, player, post, favorites; bound ajax.
  • Context manager support: async with HDRezkaClient() as client.
  • RequestKwargs remains in hdrezka.api.http as a typing helper.
  • DEFAULT_HOST / DEFAULT_REDIRECT_URL in hdrezka.url.
  • Site chrome parsers (hdrezka.post.site):
    • parse_navbar / await client.navbar() — top navigation map (genres, collections, find-best).
    • parse_page_filters / Page.get_filters — catalog filter= / genre= controls with active state.
    • parse_series_updates / await client.series_updates() — sidebar episode updates by date.
    • Page.get_page(..., filter=, genre=, **query) and get_page_content — query params + combined payload.
  • Favorites / collections (requires login):
    • AJAX / client helpers: add_favorites_cat, rename_favorites_cat, add_favorites_post,
      remove_favorites_cat (POST /ajax/favorites/).
    • Favorites page (client.favorites(cat_id)) for /favorites/[id] via the usual Page API.
    • FavoritesCat / parse_favorites_cats / get_cats — collection list (name, count, url, id).

Changed

  • Search, Page, Post, Player* require client=.
  • AJAX is instance-bound (client.ajax), no longer classmethods.
  • InlineItem includes a client field for await item.player.
  • Stream redirect resolve (await VideoURL) uses the same client session.
  • Person / FranchiseInfo fetch details through the client when awaited.
  • Player cache is per-client (CacheStorage), not a module singleton.
  • Request is a defaults namespace only (not shared mutable session host).

Removed

  • login_global
  • Module-level DEFAULT_CLIENT and DEFAULT_REQUEST_KWARGS
  • Module-level CACHE / get_response globals

Migration

# 4.x
await login_global(email, password)
player = await Player(url)

# 5.x
async with HDRezkaClient() as client:
    await client.login(email, password)
    player = await client.player(url)

Full Changelog: v4.0.4...v5.0.0

v4.0.4

Choose a tag to compare

@ndenissov ndenissov released this 24 Jul 03:37

Full Changelog: v4.0.3...v4.0.4

v4.0.3

Choose a tag to compare

@ndenissov ndenissov released this 28 Jul 16:51

4.0.3

  • pyproject.toml has been updated and modified, dependencies are updated.

  • The optional dependence of pip install hdrezka[socks] for socks-proxy has been added.

    Previously, for this, it was necessary to pip install httpx[socks] directly.

  • Minor corrections of documentation.


Full Changelog: v4.0.2...v4.0.3

v4.0.2

Choose a tag to compare

@ndenissov ndenissov released this 14 May 09:54

4.0.2

Warning: If your code accesses post.Post.info.director, it will break after this update.
Please update your code to use post.Post.directors and adjust any logic accordingly.

  • Bug fixed: director: str replaced with directors: tuple[Person, ...] in post.Post.info.
    Previously, this field contained a comma-separated string, but it actually represents multiple directors with
    additional metadata available.
    Now it's parsed into a tuple of Person instances, consistent with similar usage in persons.
    It is recommended to use post.Post.directors instead.

  • __await__

    • Now the __await__ method in post.post.Post, post.info.(franchises.FranchiseInfo, person.Person) and
      stream.player.Player returns self.
  • Minor optimizations


Full Changelog: v4.0.1...v4.0.2

v4.0.1

Choose a tag to compare

@ndenissov ndenissov released this 05 Apr 13:22

4.0.1

Warning: If your code accesses post.Post.info.translator, it will break after this update.
Please update your code to use post.Post.info.translators and adjust any logic accordingly.

  • Bug fixed: translator: str replaced with translators: tuple[str, ...] in post.Post.info.
    This field was previously interpreted as a single translator name, but it actually represents multiple translators in
    a comma-separated string.
    Now it's correctly parsed into a tuple of strings.
    It is recommended to use post.Post.translators (Translators type) instead.

4.0.0

Warning: This release contains backward incompatible changes. Please carefully review the list of changes before
updating.

  • Global Changes

    • The internal logic for parsing content information has been reorganized to improve stability and support future
      changes.
    • Added a new type post.info.fields.Hyperlink (NamedTuple with fields name: str, url: str), which is now
      used in many PostInfo fields instead of simple strings or tuples of strings, providing both a name and a link.
  • New Features

    • Franchises:
      • Added functionality to retrieve information about franchises (related content parts);
        The field post.Post.oter_parts_urls used for these purposes earlier is removed.
      • Added the franchises field (type FranchiseInfo) to the Post class, providing access to franchise data (
        previous, next parts, list of all parts, franchise poster).
      • Added related types FranchiseInfo and FranchiseEntry in post.info.franchises.
    • post.info.Person:
      • New Person type, reflecting information about an actor (name, photo, career, date and place of birth,
        height).
    • Trailers:
      • Added method
        PlayerBase.get_trailer_iframe(self) -> str
        and api.AJAX.get_trailer_video(cls, id: SupportsInt | str)
    • PostInfo:
      • Added duration field (type int) – total duration in seconds, obtained from page metadata.
      • The persons field is now a tuple of Person objects.
  • Backward Incompatible Changes

    • api.http:
      • The login_global function now accepts email instead of name as the first argument for login.
    • post.info.fields:
      • Removed the Duration type. Use PostInfo.duration (seconds) or PostInfo.duration_m (minutes).
      • Removed the Place type. Use the new Rank type.
      • Added the Rank type (NamedTuple with fields name: Hyperlink, rank: int), replacing Place for
        representing positions in lists/rankings.
      • Rating type:
        • The service field is now of type Hyperlink (contains the name and URL of the rating service) instead
          of str.
        • The url field has been removed (the information is now contained in service.url).
    • post.info.PostInfo:
      • The rating field has been renamed to ratings. The value type dict[str, Rating] remains the same, but the
        internal structure of Rating has changed (see above).
      • The places field has been renamed to rankings and now returns a tuple of Rank objects (
        tuple[Rank]).
      • The duration field (previously of type Duration) has been renamed to duration_m and now returns an
        int (duration in minutes, as displayed in the table on the site).
      • The duration_s field has been removed. Use the new duration field (total duration in seconds).
      • The from_ field has been renamed to collections and now returns a tuple of Hyperlink objects (
        tuple[Hyperlink]).
      • The characters field has been renamed to persons and now returns a tuple of Hyperlink objects (
        tuple[Hyperlink]).
      • The country field now returns a tuple of Hyperlink objects (tuple[Hyperlink, ...]).
      • The genre field now returns a tuple of Hyperlink objects (tuple[Hyperlink, ...]).
      • Removed the fields field.
    • post.Post:
      • Removed the other_parts_urls field. Use the new franchises field to get information about other parts.
    • api.AJAX:
      • All arguments id are renamed id_.
    • Some classes and functions that are no longer used are removed.
  • Improvements

    • post.urls.kind.video.VideoURL:
      • Asynchronous retrieval of video URL (await video_url) has become more reliable: it now returns the original
        URL if the server did not provide a redirect URL.
    • Type and bug fixes.
    • Minor decomposition of code.
    • Other minor improvements and optimizations.

Full Changelog: v3.3.1...v4.0.1

v3.3.1

Choose a tag to compare

@ndenissov ndenissov released this 04 Apr 07:18
  • Removed the follow_redirect=True argument from api.http.DEFAULT_CLIENT;
    instead of following redirects automatically, the URL is now extracted from the Location header where necessary.
  • post.url.kind.subtitle.SubtitleURLs

    • Fixed a bug in __init__ that caused incorrect handling when no subtitles were available.
    • Added the method get(self, item: str) -> SubtitleURL | None.
    • The __getitem__(self, item: str) method now raises a KeyError if item is not a valid code or name
      (mirroring dictionary behavior). Use get to safely return None.
  • Minor documentation improvements.

Full Changelog: v3.2.3...v3.3.1

v3.3.0

Choose a tag to compare

@ndenissov ndenissov released this 03 Apr 17:07
  • api.http

    • Added the login_global(name: str, password: str) function.
  • url

    • Added Request.REDIRECT_URL, required for api.http.login_global.
    • Updated Request.HOST.
  • post.info.PostInfo

    • Added the duration_s attribute – duration in seconds.
    • Added the updated_time attribute – last modification date (int).
    • Fixed retrieval of the poster.full link.
    • Added the 'hdrezka' key to the rating dictionary, containing the rating directly from the site.
    • The keys in the rating dictionary are now guaranteed to be in lowercase (e.g., imdb instead of IMDb).
  • post.fields

    • Added the Rating.url field – a link to the rating page (IMDB, KP, WA, etc.).
  • post.urls.kind

    • Simplified parsing of video and subtitle links, now without regex.
  • post.urls.kind.video

    • Each video link (m3u8) in VideoURLs is now represented as a tuple with available sources,
      in case one of them is unavailable.
  • Replaced all dataclasses with NamedTuple.
  • Minor documentation improvements.
  • Minor optimizations and enhancements.

Full Changelog: v3.2.3...v3.3.0

v3.2.3

Choose a tag to compare

@ndenissov ndenissov released this 24 Nov 15:47
  • New url module and url.Request class for changing the HDRezka host url.
  • stream.player.Player now connects the url to the default host if only the url path is passed.
  • Used Poetry to replace setup.py and requirements.txt.

Full Changelog: https://github.com/ndenissov/HDRezka/commits/v3.2.3