#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
I tried enabling GeneralSettings.useoriginallastmodified in Advanced Settings, but this doesn't affect Google Drive downloads. It does work for YouTube though.
|
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
Ah thanks!
|
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
@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 |
#9
|
||||
|
||||
Thanks for your feedback!
Quote:
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 Last edited by pspzockerscene; 06.12.2022 at 15:31. Reason: Added more details |
#10
|
||||
|
||||
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 Last edited by pspzockerscene; 06.12.2022 at 16:47. Reason: Fixed typo |
#11
|
||||
|
||||
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 |
#12
|
||||
|
||||
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 Last edited by raztoki; 09.12.2022 at 00:32. Reason: spelling fixes |
#13
|
|||
|
|||
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.
|
#14
|
||||
|
||||
Quote:
__________________
JD-Dev & Server-Admin |
#15
|
||||
|
||||
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 |
#16
|
||||
|
||||
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 |
#17
|
||||
|
||||
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 |
#18
|
|||
|
|||
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. |
#19
|
||||
|
||||
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 |
#20
|
|||
|
|||
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. |
Thread Tools | |
Display Modes | |
|
|