public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Simon Thelen" <gentoo-user@c-14.de>
To: gentoo-user@lists.gentoo.org, Dale <rdalek1967@gmail.com>
Subject: Re: [gentoo-user] Youtube-dl and file time stamps.
Date: Thu, 16 Jul 2020 00:48:16 +0200	[thread overview]
Message-ID: <20200715224833.14ACEE088D@pigeon.gentoo.org> (raw)
In-Reply-To: <98c19240-d864-e32a-b116-7582693b643a@gmail.com>

[2020-07-15 17:30] Dale <rdalek1967@gmail.com>
>Howdy,
Hi,

>I'm not sure what causes this because it doesn't always do this.  When I
>use youtube-dl to download videos, it sometimes uses the current date and
>time for the time stamp.  I like that because I can sort by date and see
>new videos.  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. 
>Sometimes I download a video and it may have a time stamp of years ago,
>decades sometimes.  I looked through the help page but can't find a option
>to tell it to use local time instead of the time from the remote server
>file.  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?  Some option that isn't documented
>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



  reply	other threads:[~2020-07-15 22:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-15 22:30 [gentoo-user] Youtube-dl and file time stamps Dale
2020-07-15 22:48 ` Simon Thelen [this message]
     [not found] ` <20200715224833.7F22AE08AC@pigeon.gentoo.org>
2020-07-16  0:14   ` Dale
2020-07-24  1:53     ` Dale
     [not found] ` <5f0fdbf1.1c69fb81.4050d.7bcfSMTPIN_ADDED_MISSING@mx.google.com>
2020-07-24  1:55   ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200715224833.14ACEE088D@pigeon.gentoo.org \
    --to=gentoo-user@c-14.de \
    --cc=gentoo-user@lists.gentoo.org \
    --cc=rdalek1967@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox