hydrus-video-deduplicator no longer functions when interacting with the Hydrus Client API for all clients of hydrusnetwork v539a or higher.
Severity
I'm gonna go out on a limb here and say High, cause the whole dang program can't really work if this query fails.
Cause
As of Hydrus v539a, 'gif' is no longer an accepted filetype - it has been replaced with 'static gif' and 'animated gif'. Because of this, the file search query that the program makes to fetch the appropriate file ids - which always contains 'system:filetype=video, gif, apng' as a search tag paramters - will always receive a HTTP 400 response from any updated Hydrus Client API.
Should be a fairly straightforward fix - just update that query string parameter to be "system:filetype=video, animated gif, apng". I tested and confirmed that string works fine with the Client API
Summary
hydrus-video-deduplicator no longer functions when interacting with the Hydrus Client API for all clients of hydrusnetwork v539a or higher.
Severity
I'm gonna go out on a limb here and say High, cause the whole dang program can't really work if this query fails.
Cause
As of Hydrus v539a,
'gif'
is no longer an accepted filetype - it has been replaced with'static gif'
and'animated gif'
. Because of this, the file search query that the program makes to fetch the appropriate file ids - which always contains'system:filetype=video, gif, apng'
as a search tag paramters - will always receive a HTTP 400 response from any updated Hydrus Client API.Full Stack Trace
``` ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /home/profmoose/personalProjects/hydrus-video-deduplicator/src/hydrusvideodeduplicator/hydrus_ap │ │ i/__init__.py:322 in _api_request │ │ │ │ 319 │ │ │ raise ConnectionError(*error.args) │ │ 320 │ │ │ │ 321 │ │ try: │ │ ❱ 322 │ │ │ response.raise_for_status() │ │ 323 │ │ except requests.HTTPError: │ │ 324 │ │ │ if response.status_code == requests.codes.bad_request: │ │ 325 │ │ │ │ raise MissingParameter(response) │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ json_data = None │ │ │ │ kwargs = { │ │ │ │ │ 'params': { │ │ │ │ │ │ 'tags': '["system:filetype=video, gif, apng", "system:has duration", │ │ │ │ "system:file service'+28, │ │ │ │ │ │ 'file_service_keys': │ │ │ │ '["6969696969696969nah-bruv696969696969696969696969696969696969696"]', │ │ │ │ │ │ 'file_sort_type':Solution
Should be a fairly straightforward fix - just update that query string parameter to be
"system:filetype=video, animated gif, apng"
. I tested and confirmed that string works fine with the Client API