mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
the file_get_links low-level API was returning -1 because the share link was not being returned. this was an artifact of the new API update. even though the direct_download_link was being returned, we were erroneously returning -1
This commit is contained in:
@@ -150,8 +150,8 @@ static int _decode_file_get_links(mfhttp * conn, void *data)
|
|||||||
file_set_onetime_link(file, (char *)json_string_value(onetime_link));
|
file_set_onetime_link(file, (char *)json_string_value(onetime_link));
|
||||||
}
|
}
|
||||||
// if this is false something went horribly wrong
|
// if this is false something went horribly wrong
|
||||||
if (share_link == NULL)
|
// if (share_link == NULL)
|
||||||
retval = -1;
|
// retval = -1;
|
||||||
|
|
||||||
json_decref(root);
|
json_decref(root);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user