mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
file/get_info: fix wrong response check
This commit is contained in:
@@ -93,7 +93,7 @@ static int _decode_file_get_info(mfhttp * conn, void *data)
|
||||
return -1;
|
||||
}
|
||||
|
||||
node = json_object_by_path(root, "response/file_info");
|
||||
node = json_object_by_path(root, "response");
|
||||
|
||||
retval = mfapi_check_response(node, "file/get_info");
|
||||
if (retval != 0) {
|
||||
@@ -102,6 +102,8 @@ static int _decode_file_get_info(mfhttp * conn, void *data)
|
||||
return retval;
|
||||
}
|
||||
|
||||
node = json_object_by_path(root, "response/file_info");
|
||||
|
||||
quickkey = json_object_get(node, "quickkey");
|
||||
if (quickkey != NULL)
|
||||
file_set_key(file, json_string_value(quickkey));
|
||||
|
||||
Reference in New Issue
Block a user