[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [gettor/master] Changed ?dl=0 to ?dl=1 in the shared files to automatically force the download. Couldn't find how to specify it using the Dropbox API



commit e7a9408967a4d7d94c30e39a81123566d61c3127
Author: ilv <ilv@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Tue Oct 28 21:55:47 2014 -0300

    Changed ?dl=0 to ?dl=1 in the shared files to automatically force the download. Couldn't find how to specify it using the Dropbox API
---
 dropbox.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dropbox.py b/dropbox.py
index 457955f..59f398c 100644
--- a/dropbox.py
+++ b/dropbox.py
@@ -175,7 +175,10 @@ if __name__ == '__main__':
 
             # build links
             link_file = client.share(file, short_url=False)
+            # if someone finds how to do this with the API, please tell me!
+            link_file = link_file.replace('?dl=0', '?dl=1')
             link_asc = client.share(asc, short_url=False)
+            link_asc = link_asc.replace('?dl=0', '?dl=1')
             osys, arch, lc = get_bundle_info(file)
 
             link = "Package (%s-bit): %s\nASC signature (%s-bit): %s\n"\



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits