This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
v1.1.0 Minor Release
Breaking Changes
- (#37) All the
.from_data(...)
constructors now just take the raw data instead offilename
anddirname
too - (#36) The ranking functions now take library objects instead of the raw data, so
rank_search_subtitles
now takes a list ofSearchResults
andrank_guess_media
takes the newGuessMediaResult
- (#47)
Media
andMediaInfo
'sfilename
anddirname
are both private now. They now include getters and setters if you want to take a look at the docs. This was done because they're assumed to bepathlib.Path
s, but the user may want to pass in any pathlike value - (#42)
.report_move(...)
was renamed to.report_media(...)
to match the media agnostic tone of the rest of the library
New Features
- (#40)
ranking
module was made public since the different ranking functions make good fallbacks for custom ranking functions - (#41) Several endpoints dealing with subtitles related actions can now take
SubtitlesInfo
objects along withSearchResult
s - (#43)
report_media
now raises aValueError
when it's used with aSearchResult
that wasn't found using the filehash and size - (#34)
search_subtitles
andguess_media
now have unranked variants that directly return a list ofSearchResult
s andGuessMediaResult
s for each query respectively - (#45)
.search_subtitles(...)
can now take queries as azip
too which works well for giving the desired language codes - (2f9ffde)
atomicwrites
is now included as an optional dependency to allow for saving subtitles atomically - (2d670be) the library now aggressively checks for wrong types and tries to return information on the allowed types
Bugfixes
- (#46)
.guess_media(...)
previously had some weird edge-cases that would throw an obscure error (searching for""
, or something with no results like"asdkfjldsflgskdmfkl"
). Now the library handles these cases and the ranked version returnsNone
while the unranked variant getsGuessMediaResult
with no data (full ofNone
and emptylist
s)
Documentation
- (#39) More advanced examples were added to show a more featureful quickstart and more robust searching