Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#229 closed feature-request (Fixed)

Date Added column?

Reported by: eatsleepgame@gmail.com Owned by: andar
Priority: trivial Milestone:
Component: GTK UI Version: 1.1.0_dev
Keywords: Cc:

Description

I think it would be great to have a column that shows when a torrent was added, so one could sort by this, since the queue order is reset after every restart.

Attachments (3)

deluge_patch3 (3.8 KB ) - added by Lajnold 16 years ago.
Patch for adding an "Added" column to the torrent view.
deluge_patch4 (4.1 KB ) - added by Lajnold 16 years ago.
Patch for adding an "Added" column to the torrent view.
deluge_move_fdate_to_common (2.5 KB ) - added by Lajnold 16 years ago.
Move the fdate function in statistics_tab.py to common.py, so that is can be used in listview.py (and others) too.

Download all attachments as: .zip

Change History (11)

comment:1 by bonafemina@gmail.com, 16 years ago

ticket created 3 months ago but still feature's not implained yet. is it goin' to be added any time soon?

comment:2 by bonafemina@gmail.com, 16 years ago

Component: 0.5.xgtkui
Owner: changed from markybob to andar
Version: 0.5.9.01.1.0_dev

by Lajnold, 16 years ago

Attachment: deluge_patch3 added

Patch for adding an "Added" column to the torrent view.

comment:3 by Lajnold, 16 years ago

One solution is taking the time the torrent_id.torrent file was last changed, as that is usually the time the torrent was added. This does not require changing the storage format, which makes it an "easy" solution at least. It is not a foolproof solution, as the modification date could be changed by external sources, but from what I have seen, I do not think the client itself changes the .torrent files after they have been added.

Anyhow, I have attached a patch with a possible way of doing it.

comment:4 by Lajnold, 16 years ago

After looking more carefully into the code, I see that there is actually a torrents.state file that can be used. Earlier, I had been intent on the fact that saved files were libtorrent based, but now I see that it isn't the case for torrents.state.

I'm posting an updated patch that uses the torrents.state file for storing the "Added" date.

by Lajnold, 16 years ago

Attachment: deluge_patch4 added

Patch for adding an "Added" column to the torrent view.

comment:5 by andar, 16 years ago

Milestone: 1.1.0
Resolution: fixed
Status: newclosed

Thanks! This has been been committed in [4142] with some modifications.

comment:6 by Lajnold, 16 years ago

Thanks!

The commited code introduces an fdate function in statistics_tab.py, which could also be used in listview.py. I'm attaching a patch that moves fdate to deluge.common.

Is there any preferred way, other than this, for people to send in patches not really solving the current ticket, and instead being general code cleanup, like with the patch I'm now attaching? If that's wished for at all, that is. There is the dev mailing-list, but that doesn't seems to be used really.

by Lajnold, 16 years ago

Attachment: deluge_move_fdate_to_common added

Move the fdate function in statistics_tab.py to common.py, so that is can be used in listview.py (and others) too.

comment:7 by andar, 16 years ago

You can send patches/emails to the deluge-dev list.. You can also track me down on irc if you want.

Patch committed [4145]

comment:8 by (none), 15 years ago

Milestone: 1.1.0

Milestone 1.1.0 deleted

Note: See TracTickets for help on using tickets.