Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Youtube-dl and file time stamps.
Date: Thu, 16 Jul 2020 00:14:42
Message-Id: f70cd065-851d-84f5-a640-29d4942d9553@gmail.com
1 Simon Thelen wrote:
2 > [2020-07-15 17:30] Dale <rdalek1967@×××××.com>
3 >> Howdy,
4 > Hi,
5 >
6 >> I'm not sure what causes this because it doesn't always do this.  When I
7 >> use youtube-dl to download videos, it sometimes uses the current date and
8 >> time for the time stamp.  I like that because I can sort by date and see
9 >> new videos.  On some sites tho it seems to use the time stamp of the file
10 >> on the server I am downloading from not when it was put on my system. 
11 >> Sometimes I download a video and it may have a time stamp of years ago,
12 >> decades sometimes.  I looked through the help page but can't find a option
13 >> to tell it to use local time instead of the time from the remote server
14 >> file.  Needless to say, when it does this, I can't tell which videos I
15 >> recently downloaded since sorting by time stamps is no longer accurate.
16 >> It's annoying.
17 >>
18 >> Has anyone else noticed this behavior? Is there a way to tell it to stop
19 >> setting it to really old time stamps?  Some option that isn't documented
20 >> maybe.
21 > You're probably looking for the --no-mtime option. Depending on what
22 > you're using to sort your local videos you can always just tell it to
23 > sort by ctime instead of the (probably) default mtime. Several other
24 > file download programs set the mtime to the last-modified header or
25 > similar, but they tend not to touch the ctime.
26 >
27
28 I found that but wasn't sure if that was what I was looking for or not. 
29 I'll give that a try.  I added it to the conf file.  Now to wait until
30 this set of videos finishes. 
31
32 Thanks much.
33
34 Dale
35
36 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Youtube-dl and file time stamps. Dale <rdalek1967@×××××.com>