Repository navigation
Releases
v5.2.0
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.txtcategories updated for registration / Cloudflare mirrors.
Full Changelog: v5.1.0...v5.2.0
v5.1.0
5.1.0
Added
get_page— support optional page parameter in paginationparse_schedule/Post.schedule— episode release schedule tables on title pages.
Full Changelog: v5.0.0...v5.1.0
v5.0.0
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; boundajax. - Context manager support:
async with HDRezkaClient() as client. RequestKwargsremains inhdrezka.api.httpas a typing helper.DEFAULT_HOST/DEFAULT_REDIRECT_URLinhdrezka.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— catalogfilter=/genre=controls with active state.parse_series_updates/await client.series_updates()— sidebar episode updates by date.Page.get_page(..., filter=, genre=, **query)andget_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/).Favoritespage (client.favorites(cat_id)) for/favorites/[id]via the usualPageAPI.FavoritesCat/parse_favorites_cats/get_cats— collection list (name, count, url, id).
Changed
Search,Page,Post,Player*requireclient=.AJAXis instance-bound (client.ajax), no longer classmethods.InlineItemincludes aclientfield forawait item.player.- Stream redirect resolve (
await VideoURL) uses the same client session. Person/FranchiseInfofetch details through the client when awaited.- Player cache is per-client (
CacheStorage), not a module singleton. Requestis a defaults namespace only (not shared mutable session host).
Removed
login_global- Module-level
DEFAULT_CLIENTandDEFAULT_REQUEST_KWARGS - Module-level
CACHE/get_responseglobals
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
v4.0.3
4.0.3
-
pyproject.tomlhas 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
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: strreplaced withdirectors: tuple[Person, ...]inpost.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 ofPersoninstances, consistent with similar usage inpersons.
It is recommended to usepost.Post.directorsinstead. -
__await__- Now the
__await__method inpost.post.Post,post.info.(franchises.FranchiseInfo,person.Person) and
stream.player.Playerreturnsself.
- Now the
-
Minor optimizations
Full Changelog: v4.0.1...v4.0.2
v4.0.1
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: strreplaced withtranslators: tuple[str, ...]inpost.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 usepost.Post.translators(Translatorstype) 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(NamedTuplewith fieldsname: str,url: str), which is now
used in manyPostInfofields instead of simple strings or tuples of strings, providing both a name and a link.
- The internal logic for parsing content information has been reorganized to improve stability and support future
-
New Features
- Franchises:
- Added functionality to retrieve information about franchises (related content parts);
The fieldpost.Post.oter_parts_urlsused for these purposes earlier is removed. - Added the
franchisesfield (typeFranchiseInfo) to thePostclass, providing access to franchise data (
previous, next parts, list of all parts, franchise poster). - Added related types
FranchiseInfoandFranchiseEntryinpost.info.franchises.
- Added functionality to retrieve information about franchises (related content parts);
post.info.Person:- New
Persontype, reflecting information about an actor (name, photo, career, date and place of birth,
height).
- New
- Trailers:
- Added method
PlayerBase.get_trailer_iframe(self) -> str
andapi.AJAX.get_trailer_video(cls, id: SupportsInt | str)
- Added method
PostInfo:- Added
durationfield (typeint) – total duration in seconds, obtained from page metadata. - The
personsfield is now a tuple ofPersonobjects.
- Added
- Franchises:
-
Backward Incompatible Changes
api.http:- The
login_globalfunction now acceptsemailinstead ofnameas the first argument for login.
- The
post.info.fields:- Removed the
Durationtype. UsePostInfo.duration(seconds) orPostInfo.duration_m(minutes). - Removed the
Placetype. Use the newRanktype. - Added the
Ranktype (NamedTuplewith fieldsname: Hyperlink,rank: int), replacingPlacefor
representing positions in lists/rankings. Ratingtype:- The
servicefield is now of typeHyperlink(contains the name and URL of the rating service) instead
ofstr. - The
urlfield has been removed (the information is now contained inservice.url).
- The
- Removed the
post.info.PostInfo:- The
ratingfield has been renamed toratings. The value typedict[str, Rating]remains the same, but the
internal structure ofRatinghas changed (see above). - The
placesfield has been renamed torankingsand now returns a tuple ofRankobjects (
tuple[Rank]). - The
durationfield (previously of typeDuration) has been renamed toduration_mand now returns an
int(duration in minutes, as displayed in the table on the site). - The
duration_sfield has been removed. Use the newdurationfield (total duration in seconds). - The
from_field has been renamed tocollectionsand now returns a tuple ofHyperlinkobjects (
tuple[Hyperlink]). - The
charactersfield has been renamed topersonsand now returns a tuple ofHyperlinkobjects (
tuple[Hyperlink]). - The
countryfield now returns a tuple ofHyperlinkobjects (tuple[Hyperlink, ...]). - The
genrefield now returns a tuple ofHyperlinkobjects (tuple[Hyperlink, ...]). - Removed the
fieldsfield.
- The
post.Post:- Removed the
other_parts_urlsfield. Use the newfranchisesfield to get information about other parts.
- Removed the
api.AJAX:- All arguments
idare renamedid_.
- All arguments
- 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.
- Asynchronous retrieval of video 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
- Removed the
follow_redirect=Trueargument fromapi.http.DEFAULT_CLIENT;
instead of following redirects automatically, the URL is now extracted from theLocationheader 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 aKeyErrorifitemis not a valid code or name
(mirroring dictionary behavior). Usegetto safely returnNone.
- Fixed a bug in
- Minor documentation improvements.
Full Changelog: v3.2.3...v3.3.1
v3.3.0
-
api.http
- Added the
login_global(name: str, password: str)function.
- Added the
-
url
- Added
Request.REDIRECT_URL, required forapi.http.login_global. - Updated
Request.HOST.
- Added
-
post.info.PostInfo
- Added the
duration_sattribute – duration in seconds. - Added the
updated_timeattribute – last modification date (int). - Fixed retrieval of the
poster.fulllink. - Added the 'hdrezka' key to the
ratingdictionary, containing the rating directly from the site. - The keys in the
ratingdictionary are now guaranteed to be in lowercase (e.g.,imdbinstead ofIMDb).
- Added the
-
post.fields
- Added the
Rating.urlfield – a link to the rating page (IMDB, KP, WA, etc.).
- Added the
-
post.urls.kind
- Simplified parsing of video and subtitle links, now without regex.
-
post.urls.kind.video
- Each video link (m3u8) in
VideoURLsis now represented as a tuple with available sources,
in case one of them is unavailable.
- Each video link (m3u8) in
- Replaced all
dataclasseswithNamedTuple. - Minor documentation improvements.
- Minor optimizations and enhancements.
Full Changelog: v3.2.3...v3.3.0
v3.2.3
- New
urlmodule andurl.Requestclass for changing the HDRezka host url. stream.player.Playernow 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