mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
added the framework for supporting new link types in the file-get-links API
This commit is contained in:
@@ -78,7 +78,9 @@ int mfshell_cmd_get(mfshell * mfshell, int argc, char *const argv[])
|
||||
return -1;
|
||||
}
|
||||
// request a direct download (streaming) link
|
||||
retval = mfconn_api_file_get_links(mfshell->conn, file, (char *)quickkey);
|
||||
retval = mfconn_api_file_get_links(mfshell->conn, file,
|
||||
(char *)quickkey,
|
||||
LINK_TYPE_DIRECT_DOWNLOAD);
|
||||
|
||||
if (retval != 0) {
|
||||
file_free(file);
|
||||
|
||||
@@ -59,7 +59,11 @@ int mfshell_cmd_links(mfshell * mfshell, int argc, char *const argv[])
|
||||
|
||||
file = file_alloc();
|
||||
|
||||
retval = mfconn_api_file_get_links(mfshell->conn, file, (char *)quickkey);
|
||||
// when the lower-level call gets updated to support multiple link types
|
||||
// this should be updated.
|
||||
retval = mfconn_api_file_get_links(mfshell->conn, file,
|
||||
(char *)quickkey,
|
||||
LINK_TYPE_DIRECT_DOWNLOAD);
|
||||
if (retval != 0) {
|
||||
fprintf(stderr, "api call unsuccessful\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user