From 665a1d1b3581dc0fc7076cf66be2fc8982ab7be2 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Mon, 18 Jul 2016 23:11:55 +0200 Subject: Better auto-renaming Up until now aria2 file auto renaming worked by just appending a new unique number to the file path, behind the file name extension, if any, changing what most other programs consider the file extension in the process. Now, aria2 will attempt to insert the number before the file extension, leaving the extension intact, so that e.g. a ".jpg" still is a ".jpg" file and opens in your configured image viewer when clicking it. If a file has no extension (incl. so called "dot files"), the number will be appended to the file name as usual. Note: This is a potentially breaking change that might break third party scripts that rely on aria2 auto file renaming producing a certain format for renamed files. Please fix your scripts accordingly. Closes GH-709 --- doc/manual-src/en/aria2c.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/manual-src') diff --git a/doc/manual-src/en/aria2c.rst b/doc/manual-src/en/aria2c.rst index 83182860..539b8e66 100644 --- a/doc/manual-src/en/aria2c.rst +++ b/doc/manual-src/en/aria2c.rst @@ -1175,7 +1175,8 @@ Advanced Options Rename file name if the same file already exists. This option works only in HTTP(S)/FTP download. - The new file name has a dot and a number(1..9999) appended. + The new file name has a dot and a number(1..9999) appended after the + name, but before the file extension, if any. Default: ``true`` .. option:: --auto-save-interval= -- cgit