JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 26.03.2023, 04:22
Paft Paft is offline
Modem User
 
Join Date: Mar 2023
Posts: 1
Exclamation Shared GDrive Google Drive Link Not Adding

I've been given a google drive link ('Only people with access can open with the link') with the main folder, and then subfolders with files in it. But nothing happens when I try to add it to JD. I have added my google account to JD which it says: 'Account is ok'.

I can download the files manually in my browser. What am I doing wrong?

The link looks like this: drive.google.com/drive/u/1/folders/numbersletters--numbersletters

Edit I assume it's because I provided my email for a share, rather than it being an actual link?

Last edited by Paft; 26.03.2023 at 06:40.
Reply With Quote
  #2  
Old 27.03.2023, 15:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,103
Default

Hi,
please provide real example URLs and, if needed, login credentials to the google drive account which has access to those files.
Google Drive has a lot of different URL-formats.
Here is a code snippet which shows all currently supported folder formats:
Code:
    public static String[] getAnnotationUrls() {
        final List<String> ret = new ArrayList<String>();
        for (final String[] domains : getPluginDomains()) {
            String regex = "https?://" + buildHostsPatternPart(domains) + "/(?:";
            regex += "open\\?id=[a-zA-Z0-9\\-_]+";
            regex += "|folder/d/[a-zA-Z0-9\\-_]+";
            regex += "|(?:embedded)?folderview\\?[a-z0-9\\-_=\\&]+";
            regex += "|drive/(?:[\\w\\-]+/)*folders/[a-zA-Z0-9\\-_=\\&]+(\\?resourcekey=[A-Za-z0-9_\\-]+)?";
            regex += ")";
            ret.add(regex);
        }
        return ret.toArray(new String[0]);
    }
If shared via link, private and public links look the same afaik.
EDIT

Same for single files:
Code:
    public static String[] getAnnotationUrls() {
        final List<String> ret = new ArrayList<String>();
        for (final String[] domains : getPluginDomains()) {
            String regex = "https?://" + buildHostsPatternPart(domains) + "/(?:";
            regex += "(?:leaf|open)\\?([^<>\"/]+)?id=[A-Za-z0-9\\-_]+.*";
            regex += "|(?:u/\\d+/)?uc(?:\\?|.*?&)id=[A-Za-z0-9\\-_]+.*";
            regex += "|(?:a/[a-zA-z0-9\\.]+/)?(?:file|document)/d/[A-Za-z0-9\\-_]+.*";
            regex += ")";
            /*
             * Special case: Embedded video URLs with subdomain that is not given in our list of domains because it only supports this
             * pattern!
             */
            regex += "|https?://video\\.google\\.com/get_player\\?docid=[A-Za-z0-9\\-_]+";
            ret.add(regex);
        }
        return ret.toArray(new String[0]);
    }
__________________
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
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 05:18.
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.