JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07.11.2022, 11:46
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default How can I change the Last Modified date of private files on Google Drive?

Is it possible to make JDownloader set the Last Modified date of downloaded files from Drive from the date of downloading to the date they were uploaded or last modified on Drive?
Reply With Quote
  #2  
Old 07.11.2022, 16:25
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

I tried enabling GeneralSettings.useoriginallastmodified in Advanced Settings, but this doesn't affect Google Drive downloads. It does work for YouTube though.
Reply With Quote
  #3  
Old 07.11.2022, 20:34
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Hi,
typically we're using the value of the response header "Last-Modified" to obtain this information.
Google Drive seems to simply return the current date in that header-field.
I was able to obtain the "last modified" information using the Google Drive API but at this moment it's not yet possible to make use of this information so for now I've created a ticket for you:
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #4  
Old 07.11.2022, 21:02
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

Ah thanks!
Reply With Quote
  #5  
Old 07.11.2022, 21:17
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

I've completed those changes.
After our next set of CORE-updates you will be able to use this feature.
Important:
You will need to add a Google Drive API Key to JDownloader in order to make this work as afaik Google is only providing the "last modified" information via API.
I've added a support article for this topic: Click

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #6  
Old 16.11.2022, 20:07
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

CORE-Updates have been released!
All announced bugfixes and features are live!
Please update your JDownloader and report any issues you find asap.
If this thread gets marked as "[Solved]" by our forum staff you can still post in it and we will read- and reply to it!

CORE-Updates wurden released!
Alle angekündigten Bugfixes/Features sind nun verfügbar!
Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden.
Falls dieser Thread vom Team als "[Erledigt]" markiert wird, kannst du weiterhin darin antworten und wir lesen/beantworten auch solche Threads!

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #7  
Old 02.12.2022, 20:49
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

It seems to work, but only for public Drive files. I wanted to download files from a Shared Drive I'm a member of. With the API stuff set up I can no longer download these files. JDownloader2 will say the files are "offline". Is there a way to still download these and with the correct last modified date?

I tried to download a public Drive file, but I got an error after ~10 mins.

"An Error Occured! (google.com)"
"[CRC32] CRC FAILED"

Last edited by raztoki; 03.12.2022 at 02:15.
Reply With Quote
  #8  
Old 04.12.2022, 17:12
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@DannyHicks: does the crc failed error show up for every public downloaded file or just rarly? If for every file, can you provide some example links?

For the issue, could you please provide a log? see https://support.jdownloader.org/Know...d-session-logs
wait for error to happen and then create log and post logID here
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 06.12.2022, 01:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Quote:
Originally Posted by DannyHicks View Post
It seems to work...
Thanks for your feedback!

Quote:
Originally Posted by DannyHicks View Post
...but only for public Drive files.
...
Is there a way to still download these and with the correct last modified date?
Unfortunately the answer is no.
For this to work we'd have to add login support via Google Drive API and I really don't see this happening.

As a workaround you could create public share links for those private files and then download those with JD.
As long as no one else knows the link, files/links for which you've created a public link are basically also private.
I've updated our support article to contain this information:
https://support.jdownloader.org/Know...-modified-date
The other issue has been fixed ba Jiaz and updates have already been released.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 06.12.2022 at 15:31. Reason: Added more details
Reply With Quote
  #10  
Old 06.12.2022, 16:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

I'm correcting my last post:
Indeed the Google Drive website also provides that "Last Modified" date.
It can be seen when opening a link -> Click on 3-dot-menu -> Details
This means that technically it is definitely possible to get this information without using the Google Drive API.

So far this information of this part of the website hasn't been evaluated by our Google Drive plugin.
We've obtained filename- and filesize information from other parts of the website.
We're looking into this...
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by pspzockerscene; 06.12.2022 at 16:47. Reason: Fixed typo
Reply With Quote
  #11  
Old 06.12.2022, 19:47
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Update:
We're still working on this.
It is more complex as we thought but we're slowly getting there.

New in the next update:
Last modified date will be detected correctly for public files added as part of a folder in website mode.

Important:
- Crawling private folders is still not possible
- Last modified date for single private files will still be missing
- Private files/folders still can't be crawled/checked in API mode and this won't change!

For all code-changes mentioned in this post, the following information applies:

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #12  
Old 08.12.2022, 17:52
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Update:
We're still working on it.
Our progress:
Modified-Date will be available for public single files and files added in context of a folder in website mode with our next set of CORE-updates.
This update will also fix the download of some google documents in website mode (edge case).

It still won't work for private files so for now you'd still need to use workarounds (e.g. change those to public files / import them into your personal Google Drive account and share them as public links).
We will look into this further next week but the GDrive internal Web-API requests seem to be a bit different for logged-in users.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?

Last edited by raztoki; 09.12.2022 at 00:32. Reason: spelling fixes
Reply With Quote
  #13  
Old 11.12.2022, 00:35
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

Unfortunately I lack the permission to create public links on that shared Drive. I wish just being logged in on my Google account and with the API stuff would be enough.
Reply With Quote
  #14  
Old 12.12.2022, 16:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by DannyHicks View Post
Unfortunately I lack the permission to create public links on that shared Drive. I wish just being logged in on my Google account and with the API stuff would be enough.
We're still looking into it
Quote:
Originally Posted by pspzockerscene View Post
We will look into this further next week but the GDrive internal Web-API requests seem to be a bit different for logged-in users.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 19.12.2022, 14:11
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

I'm sorry but I don't see us working more on this any time soon.
The problem ultimately comes down to the missing support for private files/folders now and that has been a problem for years/basically was never supported.
Ticket:


Please try to use the workarounds I've mentioned until we'll find a solution for this.
I'll change the prefix of this thread as I do not see us actively working on this within this year.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #16  
Old 28.02.2023, 13:02
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Fixed.

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #17  
Old 24.03.2023, 16:07
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

CORE-Updates have been released!
All announced bugfixes and features are live!
Please update your JDownloader and report any issues you find asap.
If this thread gets marked as "[Solved]" by our forum staff you can still post in it and we will read- and reply to it!

CORE-Updates wurden released!
Alle angekündigten Bugfixes/Features sind nun verfügbar!
Bitte JDownloader updaten und eventuelle Bugs schnellstmöglich an uns melden.
Falls dieser Thread vom Team als "[Erledigt]" markiert wird, kannst du weiterhin darin antworten und wir lesen/beantworten auch solche Threads!

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #18  
Old 25.09.2023, 20:54
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

Hi. I was wondering if downloading private files from a shared Drive is now possible (while keeping the original date).

I set up Google Drive API credentials. It works for public files and folders. But for these private files, JDownloader2 says that the file or folder is offline in the Linkgrabber tab, and it gives an error "File not found" in the Download tab if I try to download it.
Reply With Quote
  #19  
Old 05.10.2023, 15:20
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,918
Default

Hi,
private files and folders are supposed to work fine now.
The API needs to be disabled for this to work.
This is also explained in our google drive troubleshooting:
https://support.jdownloader.org/Know...roubleshooting
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #20  
Old 11.11.2023, 20:56
DannyHicks DannyHicks is offline
I will play nice!
 
Join Date: Nov 2022
Posts: 10
Default

I really don't understand why it won't work.

I've disabled/removed the API key now.

I got the error "Empty folder" for private folders and the "Account is missing" error for private files.

I followed the cookie login instructions again. If I then try to redownload the failed downloads in my download list again, it says "Insufficient permissions: private file".

Strange.

My role on the private shared Drive is Editor. I have the permission to download files, not to create public download links though.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 17:31.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.