Sometimes strange behaviour of SABNZB with date

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
dikkiedirk
Newbie
Newbie
Posts: 31
Joined: October 29th, 2011, 8:57 am

Sometimes strange behaviour of SABNZB with date

Post 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?
Last edited by dikkiedirk on April 21st, 2012, 9:42 am, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Sometimes strange beviour of SABNZB with date

Post by sander »

I'll join this thread; I find this confusing / annoying too. I don't know the cause.
dikkiedirk
Newbie
Newbie
Posts: 31
Joined: October 29th, 2011, 8:57 am

Re: Sometimes strange behaviour of SABNZB with date

Post by dikkiedirk »

Glad I'm not the only one. Welcome aboard.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Sometimes strange behaviour of SABNZB with date

Post by sander »

I thought it was caused by a download having or not having a subdirectory, but that seems NOT to be the case.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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...?
Handyman1984
Newbie
Newbie
Posts: 24
Joined: April 11th, 2012, 5:20 am

Re: Sometimes strange behaviour of SABNZB with date

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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 ...
Handyman1984
Newbie
Newbie
Posts: 24
Joined: April 11th, 2012, 5:20 am

Re: Sometimes strange behaviour of SABNZB with date

Post 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. )
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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 ).
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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 ...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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.
dikkiedirk
Newbie
Newbie
Posts: 31
Joined: October 29th, 2011, 8:57 am

Re: Sometimes strange behaviour of SABNZB with date

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Sometimes strange behaviour of SABNZB with date

Post 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.
Post Reply