Skip to content

Last Modified File Date Based on File Header Last-Modified (Enhancement) #472

Open
@rpseleven

Description

@rpseleven
  • Ripme version: 1.7.24
  • Java version: 1.8.0_151
  • Operating system: Fedora 27 & W10 Pro
  • Exact URL you were trying to rip when the problem occurred: -Any Reddit User-
  • Please include any additional information about how to reproduce the problem:

Just found RipMeApp. Looks like an excellent program. Love the CLI support.

I have searched for other users requesting or asking about something similar to what I have below, but have found nothing. Sorry if there is already an issue/request open on this.

I have a feeling this would be an enhancement, more than anything.

Issue: I don't see an option in the config file or the GUI to save files with their actual upload date as pulled from the file header.

I'm working with Reddit users currently.

E.G: Desired Functionality:
An image is uploaded to Reddit 9/6/2017.
The file saved has a last-modified metadata as 9/6/2017, same as file header ('last-modified').

Current Functionality (I am guessing):
An image is uploaded to Reddit 9/6/2017.
The file saved has a last-modified metadata as something like LocalDateTime.now().

Desired Behavior

The last modified file date of the downloaded images and video should be the same as what can be pulled from the file header.

Actual Behavior

All files are dated to the current time at time of download.

Easy Addition?

I believe this should be an easy addition when the file's URL is pulled for download. I am not entirely sure how to do it in Java, but I have gotten it to work in a few self-coded Python and C++ web scrapers on Linux and Windows. There likely will have to be different calls to set the file last-modified time based on the OS. And you of course can have a checkbox like: "Use File Modification Date-Time" if some users don't want it.

Thank you for the program, and your help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions