#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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]); } 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 |
Thread Tools | |
Display Modes | |
|
|