save the path of .torrent files in the add torrent setting

Suggestions and discussion of future versions
Fabioamd87
New User
New User
Posts: 5
Joined: Fri Jun 22, 2007 10:14 pm

save the path of .torrent files in the add torrent setting

Post by Fabioamd87 »

yes, this evening i must to add someting like 10-15 .torrent to deluge and every time, i must go to the right directory to chose the file.
Is possible to save the last directory where is the .torrent files like the options to the destination directory?
Tanks for this and Tanks for this beautiful software!

...and sorry for my english
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: save the path of .torrent files in the add torrent setting

Post by markybob »

Fabioamd87 wrote:yes, this evening i must to add someting like 10-15 .torrent to deluge and every time, i must go to the right directory to chose the file.
Is possible to save the last directory where is the .torrent files like the options to the destination directory?
Tanks for this and Tanks for this beautiful software!

...and sorry for my english
you should just select them all in nautilus and drag them over to the deluge window
eternalsword
Member
Member
Posts: 44
Joined: Fri Jun 22, 2007 8:08 pm

Re: save the path of .torrent files in the add torrent setting

Post by eternalsword »

it would still be nice to have this. some of us don't use nautilus, in fact some of us don't even use a gui program for file management ;)
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: save the path of .torrent files in the add torrent setting

Post by markybob »

eternalsword wrote:it would still be nice to have this. some of us don't use nautilus, in fact some of us don't even use a gui program for file management ;)
then you should launch deluge with "deluge ~/directory/foo/*.torrent" :) but yeah, it should be made to remember the last dir.
Fabioamd87
New User
New User
Posts: 5
Joined: Fri Jun 22, 2007 10:14 pm

Re: save the path of .torrent files in the add torrent setting

Post by Fabioamd87 »

markybob wrote:
eternalsword wrote:it would still be nice to have this. some of us don't use nautilus, in fact some of us don't even use a gui program for file management ;)
then you should launch deluge with "deluge ~/directory/foo/*.torrent" :) but yeah, it should be made to remember the last dir.
yes, this I wont to hear :)

nice program, good work, all the beast.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: save the path of .torrent files in the add torrent setting

Post by markybob »

Fabioamd87 wrote:
markybob wrote:
eternalsword wrote:it would still be nice to have this. some of us don't use nautilus, in fact some of us don't even use a gui program for file management ;)
then you should launch deluge with "deluge ~/directory/foo/*.torrent" :) but yeah, it should be made to remember the last dir.
yes, this I wont to hear :)

nice program, good work, all the beast.
btw, svn now has multiple selection support for "add torrent"...so you can highlight them all at once and add them that way :)
eternalsword
Member
Member
Posts: 44
Joined: Fri Jun 22, 2007 8:08 pm

Re: save the path of .torrent files in the add torrent setting

Post by eternalsword »

markybob wrote: btw, svn now has multiple selection support for "add torrent"...so you can highlight them all at once and add them that way :)
just tested svn and that's a no go for me. I'm in fluxbox if that makes a difference, but I am running the gnome-settings-daemon.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: save the path of .torrent files in the add torrent setting

Post by markybob »

eternalsword wrote:
markybob wrote: btw, svn now has multiple selection support for "add torrent"...so you can highlight them all at once and add them that way :)
just tested svn and that's a no go for me. I'm in fluxbox if that makes a difference, but I am running the gnome-settings-daemon.
yeah, sorry. apparently i only committed one of the files that needed changing, instead of both. it's fixed in svn r814 now
eternalsword
Member
Member
Posts: 44
Joined: Fri Jun 22, 2007 8:08 pm

Re: save the path of .torrent files in the add torrent setting

Post by eternalsword »

well, I found the pygtk code to get this done, I'm just not sure how to add the necessary widget to preferences.

Here's how I would see it layed out:
Radio selection with three options:
1) Use Home directiory (default)
2) Use Last Selected Directory
3) Use Custom Directory

Path selection tool if user selects #3

the pygtk code needed to go to a path is (trunk/src/dialogs.py)
279 f1.add_pattern("*")
chooser.set_current_folder(self.preferences.get("load_torrent_path"))
280 chooser.add_filter(f1)

to save the path for the Last Selected Directory option (trunk/src/dialogs.py)
289 result = chooser.get_filenames()
if(self.preferences.get("list_selected_directory_boolean"))
self.preferences.set("load_torrent_path", chooser.get_current_folder())
290 else:


I'm not sure about all the self.preferences, but anyways, that should give you a good start (still learning python so excuse my inexpertise).
Post Reply