Releases: EchterAlsFake/PHUB
v4.0-beta-2.1
Fixed user search
Refactored regexes and queries
Tag comparisons
Video categories are now parsed and will link to a phub.locals.Category constant, unless the category does not exists.
User now have a avatar property (only user search injections supported rn)
Default downloader handles requests timeouts and retries to fetch the M3U file.
Added utils.urlify to make URL arguments cleaner
v4.0-univ-beta-2
v4.0-beta-2, but for python 3.9 and higher
v4.0-beta-2
A bit more stable.
- Downloading is still a mess
- FeedItem objects can't parse feed elements
v4.0-beta-1
- Better file structure
- Better pyproject.toml
- Most features have been refactored
- Implemented unparsed feed query
- Download 'backends'
- Download display presets have their own file
- Regrouped Locals in their own file
- More reliable search video regex system
- Regex wrappers
- Mutable, concatenable search/filter parameters
- More (unwrapped) user info, like bio
- Video.get_M3U_URLseparated from Video.get_segments
Known bugs:
- search provide inacurate results
- Import system is terrible, circular imports errors
- Default download function fails often on low bandwith
v3.2.2
v3.2.1
This should be the last PHUB 3 release.
- Fixed a URL error that occured when pornhub domain ending was not in
.com
- Finally corrected the pypi readme
- Better logs
- Searching should be more stable, even if the entire search concept is bad and will be changed with PHUB 4.
v4.0-alpha
Improvements:
- Reworked and refactored the project structure (each object has its own file)
- Reworked all cached features with functools (no more
__properties__
crap) - Implemented Pornhub's webmasters program:
- Video object fetch themselves in priority with it, but previous parsing features are still here. Everything can be accessed using
video.fetch('page@key')
to use the PHUB 3 parser orvideo.fetch('data@key')
to use webmasters. - Client object use it to create better, reliable Search objects. Sadly, these objects don't have length data anymore because of webmasters limitations, but they provide more stable results, and way faster!
- Separated JQuery (JSON-based queries) from HQuery (HTML-based queries, from PHUB 3)
- This implementation improves performance of video data fetching and search queries, since we don't request the whole HTML page anymore.
- Video object fetch themselves in priority with it, but previous parsing features are still here. Everything can be accessed using
- Added download backends, even though they all are shit rn.
- Made User.get and Client.get take a single argument and guess if it is a URL or not instead of having 2 arguments
- Regex constants have been and will be more minimized, and use wrappers to compile them to make for better errors messages.
- More custom errors
- Categories, (and later, Tags) can be updated using
utils.update_categories
, where they will be writen directly to the source file for better type highlighting. - Account object is given more attributes via the
Account.connect
method, called whenClient.login
has finished running. Available features are: real account name, account avatar, wether the account is premium, and account User object representation. - All images generated by all objects are Image objects, wrapping their URL, name and available sizes to make their downloads easier (with
Image.download
). - Queries objects use functools caches for all pages instead of only the current page.
- Queries caches al their pages and Video outputs.
- Implemented more features for the User object: user bio and informations (thus implementing a cached page system into User objects).
- Video object now parses whole M3U8 segments instead of having the option to give the raw M3U file, this will probably be implemented back in the
downloader
module. - Video objects have more cached properties: pornstars in the video, video categories, video segment.
This release is not meant for production, as some features are still missing or not well implemented yet. This is just an update on the progress so far.
TODO
- Re-implement account queries (history, liked, etc.)
- Refactor renew regexes
- Find a way to let the user choose their query type for searching
- Implement searching features
- Include PHUB 3 stuff (docs, etc.)
- Actually make progress on the feed object
- Let user choose the size of Images downloads in a better way
- Find a more reliable and less bandwith-costly way to guess a user's type
- Implements tags constants, use them in harmony with categories and videos
- Handle stuff if a connected account is not from pornhub user type (e.g. a channel or a model)
- Fix relative imports being messy
- Rethink
__init__
files structures
v3.2
[Unstable - search might produce inacurate results]
- Errors now have their own module so they can be imported normally
- New logo
- Better docs
- Searching functionnality handles parameters (video resolution, duration, category, time, sorting, etc.)
- Added search constants (professional, homemade, etc.)
- Added Category constants class (similar to Quality)
v3.1.4
v3.1.3
Essentially more fixes.
- Query getitem slices now work
- Video titles that comes from a query do not trigger a video refresh
- Updated exemples
- Query length is now cached since query should be """"immutable""""
- Queries support negative numbers (like lists, the last element will be taken)
Client.loggin
now raisesLogginFailed
error when credentials are wrong- Query (should) now have a reliable video counter regex