Page 1 of 1

Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 9:00 am
by dikkiedirk
I download my movies with SABNZB by creating nzbs on an index-site and putting the nzb in the watched folder of sabnzb. I now notice that the downloaded movies are sometimes saved in a folder with the current date and sometimes in a folder with a date when the files were created. Can this behaviour be changed in SABNZB?

Re: Sometimes strange beviour of SABNZB with date

Posted: April 21st, 2012, 9:35 am
by sander
I'll join this thread; I find this confusing / annoying too. I don't know the cause.

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 9:43 am
by dikkiedirk
Glad I'm not the only one. Welcome aboard.

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 10:02 am
by sander
I thought it was caused by a download having or not having a subdirectory, but that seems NOT to be the case.

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 10:42 am
by sander
Some more investigation:

When I use "ll" or "ls -al", the download date is shown. That is what I want.

When I use nautilus, the old date is shown (the upload date? Or better: the directory creation date of the uploader), which Nautilus calls "Date Modified". When I lookup the properties, even Nautilus shows the download date too (just like "ll"). So Nautilus can show two dates. See picture.

Image

See apparantly a directory on Linux has at least two dates...?

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 11:27 am
by Handyman1984
Probably has everything to do with the original uploader's settings for the rar/zip file.
If the one who packed the files chose the option to store the time that's probably what you get, if it was left away you'll make your own time.

And yes, on linux a folder or file has more than one date. It stores created, modified and last accesed times. (the last one: noatime is a nice one to disable btw).

edit, might help you:
You could use the following command to show all 3:
stat file.name

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 11:50 am
by sander
'stat' indeeds works for me:

Code: Select all

sander@R540:~/Downloads/SABdownloads$ stat virus.2/
  File: `virus.2/'
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 808h/2056d	Inode: 6095055     Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  sander)   Gid: ( 1000/  sander)
Access: 2012-04-20 22:49:46.256655813 +0200
Modify: 2011-02-07 19:50:50.000000000 +0100
Change: 2012-04-20 22:49:46.180655810 +0200
sander@R540:~/Downloads/SABdownloads$ 
After a 'touch' everything is set to 'now':

Code: Select all

sander@R540:~/Downloads/SABdownloads$ touch virus.2/
sander@R540:~/Downloads/SABdownloads$ 
sander@R540:~/Downloads/SABdownloads$ 
sander@R540:~/Downloads/SABdownloads$ stat virus.2/
  File: `virus.2/'
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 808h/2056d	Inode: 6095055     Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  sander)   Gid: ( 1000/  sander)
Access: 2012-04-21 18:47:57.161623996 +0200
Modify: 2012-04-21 18:47:57.161623996 +0200
Change: 2012-04-21 18:47:57.161623996 +0200
sander@R540:~/Downloads/SABdownloads$ 
So I could use that in a post-process script as a workaround ...

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 11:56 am
by Handyman1984
Yep.
You might want to use 'find' to automate stuff and touch everything recursively in the folder:
find . -exec touch {} \;
(The '.' is a wildcard here. )

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 1:02 pm
by shypike
Often RAR files contain folders, these folders will get the date/time stamp as stored in the RAR file.
If you don't want this, you can use the "hidden" option ignore_unrar_dates (see http://wiki.sabnzbd.org/configure-special ).

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 21st, 2012, 4:03 pm
by sander
shypike wrote:Often RAR files contain folders, these folders will get the date/time stamp as stored in the RAR file.
If you don't want this, you can use the "hidden" option ignore_unrar_dates (see http://wiki.sabnzbd.org/configure-special ).
I'll try that, but with two Divx files, both just plain files (no directories), one has an old date, one has the download date ...

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 22nd, 2012, 1:50 pm
by shypike
If one is coming from a RAR file and the other not, this may explain date differences.
Also the Sort functions may affect dates.

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 24th, 2012, 4:23 am
by dikkiedirk
I have set it up in a way that each download gets unpacked in a separate folder. I want the folder to have the time and date it got created. The file should have time and date it got createted.

Re: Sometimes strange behaviour of SABNZB with date

Posted: April 24th, 2012, 12:14 pm
by shypike
[quote="dikkiedirk"The file should have time and date it got createted.[/quote]
No, it will get the date inside the RAR file.
If you don't want that, use the special option.