nk9 / get_dropbox_link

Code to get the URL of a file in the Dropbox folder
MIT License
7 stars 1 forks source link

Removing argument from URL by supplying `--query `arg=` argument as empty does not work anymore #14

Closed porg closed 1 year ago

porg commented 1 year ago

The readme says:

Note that you can remove an argument from the returned Dropbox link by marking it as empty:

$ get_dropbox_link.py ~/Dropbox/file2.jpg --query 'raw=1&dl='
https://www.dropbox.com/s/xxxx/file2.jpg?raw=1

Exactly that does not work anymore in the recent version.

Instead it puts the muted argument as the first argument with the value empty, like this:

https://www.dropbox.com/s/xxxx/file2.jpg?dl=&raw=1

nk9 commented 1 year ago

Thanks for pointing this out, I've fixed it so that the code now behaves like it says in the README.

porg commented 1 year ago

✅ Tested and it works fine: