Flood-UI / flood

A web UI for rTorrent, qBittorrent and Transmission with a Node.js backend and React frontend. Migrate to v4: https://github.com/jesec/flood/wiki/Migrate-from-older-versions-of-Flood.
https://flood.js.org
GNU General Public License v3.0
1.81k stars 173 forks source link

Display Unknown if custom date field is not present #338

Open NoLooseEnds opened 7 years ago

NoLooseEnds commented 7 years ago

I run it on an Ubuntu 10.16, torrents and files are stored on an NFS share.

jfurrow commented 7 years ago

Just to be 100% sure, you are adding them via the Flood UI, right? If so, how are you adding them (files or URLs)?

Wonderfall commented 7 years ago

I don't have this problem when I adds torrents via the Flood UI, but using scgi directly I also have this issue (not sure if it's related to Flood UI, right?).

nVitius commented 7 years ago

@Wonderfall That would be correct. Flood adds a custom property for the date.

NoLooseEnds commented 7 years ago

Not adding them through Flood, but automagically via Flexget.

Is there a way to let Flood read the creation date of the torrent file (or pull the data from rtorrent when it started the torrent).

frebib commented 7 years ago

I can confirm this same bug when torrents are added through sickrage and couchpotato.

Perhaps it would look better to display nothing or 'unknown' in the case of not being able to resolve the date?

wopian commented 7 years ago

Had this happen many times with tracker-less magnets added via Flood

jfurrow commented 7 years ago

I agree the date field should display Unknown if it's undefined, so I'll use this issue for that.

To reiterate: Flood adds a custom attribute on the torrent when the torrent is added (the same custom attribute that ruTorrent uses). So adding torrents via any other method will not have this attribute.

NoLooseEnds commented 7 years ago

I am pretty sure rutorrent showed the added date and the completed date even if torrents added outside of rutorrent.

(Source: I've used rutorrent in combination with flexget for years.)

jfurrow commented 7 years ago

As far as I know, Flood uses the same custom attribute as ruTorrent (it's addtime). Maybe ruTorrent looks for other custom properties as well... I'll look into this.

liquidox commented 6 years ago

One of the reasons I am looking into Flood is the problem with unknown dates in rutorrent. Torrents I add through Remote Torrent Added or Sonarr mostly show up with 1/1/1970. This makes sorting by date pointless. I suppose this is just a problem in rtorrent? Perhaps a new column could be added that shows the date the torrent appeared in Flood, then we could just sort on that column instead of the broken one.

gdob commented 6 years ago

Torrents I add through Remote Torrent Added or Sonarr mostly show up with 1/1/1970.

Ohh, I thought I had something wrong in my setup, but I see others have the same problem. It works fine when you add a torrent through Flood, but if the torrent is added via Sonarr or Radarr the date shown is 1/1/1970 for some reason. Older torrents added while I was using ruTorrent show the correct date on Flood.

spiderknight commented 6 years ago

This issue also exists when adding torrents through the rwatch folder. ruTorrent does not have this problem with rwatch/.

bserrao commented 6 years ago

I can confirm the same behavior when using watch folders.

joydashy commented 5 years ago

This could be solved by a Flexget Output plugin for Flood, anyone know if this exists? I can't find it through Googling...

Sparticuz commented 3 years ago

Try adding this to your rtorrent.rc

# Method to add the start time of the torrent
method.set_key = event.download.inserted_new, !time_stamp, "d.custom.set=addtime,$cat=$system.time= ; d.save_resume="