From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F361B138359 for ; Wed, 15 Jul 2020 22:48:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14ACEE088D; Wed, 15 Jul 2020 22:48:33 +0000 (UTC) Received: from synchrony.c-14.de (synchrony.c-14.de [88.99.86.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ADF38E086E for ; Wed, 15 Jul 2020 22:48:32 +0000 (UTC) Received: from sardaukar.c-14.de (HSI-KBW-085-216-119-049.hsi.kabelbw.de [85.216.119.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by synchrony.c-14.de (Postfix) with ESMTPSA id 8BD4F113091; Wed, 15 Jul 2020 22:48:25 +0000 (UTC) From: "Simon Thelen" To: gentoo-user@lists.gentoo.org, Dale Subject: Re: [gentoo-user] Youtube-dl and file time stamps. In-reply-to: <98c19240-d864-e32a-b116-7582693b643a@gmail.com> References: <98c19240-d864-e32a-b116-7582693b643a@gmail.com> Comments: In-reply-to Dale message dated "Wed, 15 Jul 2020 17:30:29 -0500." Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <15575.1594853296.1@salusa-secundus.dune> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Jul 2020 00:48:16 +0200 Message-Id: <20200715224833.14ACEE088D@pigeon.gentoo.org> X-Archives-Salt: fb4b0991-0182-4c8a-8568-cba5891d40e4 X-Archives-Hash: 17fe653fb7cb3e213dcea0d7be685b2e [2020-07-15 17:30] Dale >Howdy, Hi, >I'm not sure what causes this because it doesn't always do this.=C2=A0 Whe= n I >use youtube-dl to download videos, it sometimes uses the current date and >time for the time stamp.=C2=A0 I like that because I can sort by date and = see >new videos.=C2=A0 On some sites tho it seems to use the time stamp of the = file >on the server I am downloading from not when it was put on my system.=C2=A0 >Sometimes I download a video and it may have a time stamp of years ago, >decades sometimes.=C2=A0 I looked through the help page but can't find a o= ption >to tell it to use local time instead of the time from the remote server >file.=C2=A0 Needless to say, when it does this, I can't tell which videos = I >recently downloaded since sorting by time stamps is no longer accurate. >It's annoying. > >Has anyone else noticed this behavior? Is there a way to tell it to stop >setting it to really old time stamps?=C2=A0 Some option that isn't documen= ted >maybe. You're probably looking for the --no-mtime option. Depending on what you're using to sort your local videos you can always just tell it to sort by ctime instead of the (probably) default mtime. Several other file download programs set the mtime to the last-modified header or similar, but they tend not to touch the ctime. -- = Simon Thelen