|
[Solved] GDrive Google Drive How to have same subfolder structure as download link |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
GDrive Google Drive How to have same subfolder structure as download link
Suppose I have a game folder on Google Drive folder that I'd like to download. When I use JD2 to download it doesn't follow the same folder/subfolder structure as the provided link. Thus, the game doesn't work. Any suggestions?
Last edited by Cyberavater; 02.08.2019 at 17:40. |
#2
|
||||
|
||||
settings > package customiser > predefined rule: adopt folder structure.
not all plugins support this but google drive does. once enabled re-add the links.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
|||
|
|||
It was already enabled by default.
But still, it's not what I was asking for. Example Link attached. Last edited by Cyberavater; 27.07.2019 at 21:03. Reason: Link hider is buggy. |
#4
|
||||
|
||||
Keep in mind that you need to make sure that you have the rule below any other rule which will over write or interfere with it.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#5
|
|||
|
|||
I just enabled only that rule and disabled all the others still, it's not same as it's in the link. Is it showing the same (exact) structure you are seeing from the browser? (I doubt it).
I want the exact folder structure as the download link; can that be done? |
#6
|
||||
|
||||
I don't understand what you mean.
By doing what he wrote, this will happen: I don't see any issue with this outcome ... -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#7
|
|||
|
|||
Quote:
For example: It should be X>(Y,Z,New Text Document (3).txt;Y>A>New Text Document (3).txt;Z>B>New Text Document (3).txt) [Check by browser] Not: X>New Text Document (3).txt;A>New Text Document (3).txt;B>New Text Document (3).txt A Game (software/application) with given folder structure (such as given example) will not work in the later structure. Can you plz do something to get the exact structure? Last edited by Cyberavater; 01.08.2019 at 06:37. |
#8
|
|||
|
|||
I have this exact same issue on my side... and there is a report opened 2 years ago, as it follows.... - https://board.jdownloader.org/showthread.php?t=76025
take a look into this url **External links are only visible to Support Staff**here... look how it is in gDrive.... and now, look how it is how my jDownloader parses the link Notice the red lines... all of them are subfolders of some other folder in the link, previously shared above And this is how my packagizer is this is how my 'gdrive' rule is, according requests made by Jiaz and my add links any idea how to sort this out?? |
#9
|
|||
|
|||
"Adopt by folder structure" and "Create Subfolder by Packagename" rule should be disabled. Optionally, duplicate and modify both rules, if you want to apply them to other sites.
The same solution might work for OP too. |
#10
|
|||
|
|||
Quote:
[Which is not the structure you see by the browser.] BTW, the issue is not solved as stated. Last edited by Cyberavater; 02.08.2019 at 17:42. Reason: Issue is not solved |
#11
|
|||
|
|||
This is the folder and file structure generated by those rules for the url provided by @gatorade.
Folders List: Code:
gist.github.com/mgpai/5639206a0297f2a6067fe672e2745229 Code:
gist.github.com/mgpai/ae1027c30a1a7f92c7f2b157c164a42d |
#12
|
|||
|
|||
I'd still love a solution for this issue since it was never solved (while a false solved tag is added).
|
#13
|
||||
|
||||
@Cyberavater: I can't reproduce any issue. *Adopt folder structure* rule must be BELOW *create subfolder by packagename* rule in Settings-Packagizer.
Your example link results in 3 files 1.) root/New Text....txt 2.) root/Y/A/New Text....txt 3.) root/Z/B/New Text...text It's exactly the same structure as on google drive
__________________
JD-Dev & Server-Admin |
#14
|
||||
|
||||
Don't look at the package names! The important thing is the final downloadfolder! which reflects the correct folder structure.
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
Quote:
It doesn't have any subfolders while a certain application in that download link will require the *EXACT/SAME* structure as you see in the browser. Seriously, I'm not sure how much more I can speak clearly to make it understandable to guys. Last edited by Cyberavater; 05.08.2019 at 20:06. |
#16
|
|||
|
|||
Also, 'package names' (i.e folder name) is required to be exact for certain application/software to work.
|
#17
|
|||
|
|||
Quote:
Quote:
Again, a software won't work if you put it's files on different folders and on the folder's subfolder. Last edited by Cyberavater; 05.08.2019 at 20:33. |
#18
|
||||
|
||||
Quote:
Quote:
Quote:
You can name a package 'Test' and still download to folder 'hello'.
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 06.08.2019 at 16:14. |
#19
|
||||
|
||||
Quote:
File 1.) root/New Text..txt Folder 1.) root/Y Folder 2.) root/Y/A File 2.) root/Y/A/New Text..txt Folder 3.) root/Z Folder 4.) root/Z/B File 3.) root/Z/B/New Text...txt
__________________
JD-Dev & Server-Admin |
#20
|
|||
|
|||
Quote:
[P.S. Yes, My 'save to' column is same as psp's] |
#21
|
|||
|
|||
Check psp's screenshot again his 'Y' and 'Z' folders are not in folder 'X', while in browser folder 'Y' and 'Z' are in folder 'X'. https://i.snag.gy/tYfCzi.jpg
|
#22
|
||||
|
||||
The root/begin is the folder where you add the link. JDownloader does only process folder structure upwards from the link you've added. NOT downwards. There are no plans to change this as it ppl would not expect this behaviour. Imagine someone shares a file and you want to download into a specific folder and JDownloader puts it in folder/test/hello/nice/super/yeah/test.txt because the shared link is within this folder.
__________________
JD-Dev & Server-Admin |
#23
|
||||
|
||||
If you really need this behaviour, then we might add support for this optional via plugin setting
__________________
JD-Dev & Server-Admin |
#24
|
|||
|
|||
That would be really nice! And I was trying to ask for this all along! Thank god (or whoever!) I was able to make it understandable.
|
#25
|
||||
|
||||
Well this also depends on the cloud you're using.
For some it is hard to find the full path - no idea how it is with GDrive. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#26
|
|||
|
|||
Well, can you at least keep it into consideration (and remove the solved tag) as it would really help me to download softwares and games with multiple components (in subfolders).
|
#27
|
||||
|
||||
Can you please share some real life examples? Because your link should work fine when you add the underlying folder link , to keep the structure as you wish
__________________
JD-Dev & Server-Admin |
#28
|
|||
|
|||
Yes, but I'll need time as I currently don't have those link (Deleted links after downloading).
|
#29
|
||||
|
||||
Sure, take your time
__________________
JD-Dev & Server-Admin |
#30
|
|||
|
|||
Quote:
[Not sure why you needed this 'real-life examples' when you already understood my problem.] |
#31
|
||||
|
||||
Thanks, will look into it
__________________
JD-Dev & Server-Admin |
#32
|
|||
|
|||
Any luck with this issue?
[At least remove the 'Solved' tag as none of the suggestions here indicates the solution to my 'exact' issue (i.e. it was never solved).] |
#33
|
||||
|
||||
Ticket:
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#34
|
||||
|
||||
@Cyberavater
I was able to fix the path. Getting the full relative path to the current folder no matter which subfolder you add is only possible when you are logged in into your Google account. So short answer: It will work fine after the next update - just make sure you add the ROOT of the folder you want to add to get the correct folder paths in JD. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#35
|
|||
|
|||
Yes, it works like charm, thanks for fixing it.
BTW, when I add such links in the LinkGrabber it creates as much as packages as there are folders. Can you add a feature that would create only one package by the name of the parent folder? Also, it names the folder 'parent folder – Google Drive', can you add an option so that it doesn't put the '– Google Drive' part? |
#36
|
|||
|
|||
When I add such links in the LinkGrabber it creates as much as packages as there are folders. Can you add a feature that would create only one package by the name of the parent folder? Also, it names the folder 'parent folder – Google Drive', can you add an option so that it doesn't put the '– Google Drive' part?
|
#37
|
|||
|
|||
Quote:
|
#38
|
||||
|
||||
Hi,
1. I do not want to add options for all kinds of things - most ppl. do not use these. You can use the packagizer to modify packagenames ... but the name of the service should by default never be inside our packagenames which means: Please post example URLs so that I can fix this issue. 2. In JDownloader, every package can only have one download path - that's just how our system works. This means when placing everything in one package, the subfolder-structure feature will not work anymore as everything will then also be downloaded into the one path/folder of the package. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#39
|
|||
|
|||
1. Example Link: **External links are only visible to Support Staff****External links are only visible to Support Staff**
2. Understandable. |
#40
|
||||
|
||||
To answer your questions again and more precise:
Quote:
1. Add a packagizer rule which would always merge all GDrive URLs into one package with a pre-defined name. Sure the name would always be same but typing that in by hand might be easier than having to merge multiple packages into one and then having to re-name that. Packagizer rule conditions: Downloadurl --> Contains --> "docs.google.com" (without the "") ... then set: Package Name --> "GDrive_test" (without the "") Then move this rule on top of all others so that it is on position 0 2. Disable the default "Adopt folder structure" rule or modify it so that it does ignore docs.google.com URLs. 3. Now all docs.google.com URLs you add will go into the package "GDrive_test". However, I've added a packagizer property for you so you will be able to use the "parent name" after the next update: Name of the property: root_dir --> Usage in packagizer = <jd:prop:root_dir> To use this you'd have to do the following: [Disable the rule you might have created based on my previous instructions] 1. Add a packagizer rule which would always merge all GDrive URLs into one package with name = <jd:prop:root_dir>. Packagizer rule conditions: Downloadurl --> Contains --> "docs.google.com" (without the "") ... then set: Package Name --> "<jd:prop:root_dir>" (without the "") Then move this rule on top of all others so that it is on position 0 (which is the first position). Screenshot of the rule: i.snipboard.io/PTv9Ut.jpg 2. Disable the default "Adopt folder structure" rule or modify it so that it does ignore docs.google.com URLs. 3. Now in your example, all docs.google.com URLs of that folder-structure would go into a package with the name "X". Quote:
It might only happen with other URLs or the " - Google Drive" part was added by the user who uploaded the files. To check this I will either need new example URLs or you'll have to use the packagizer to fix the packagename in such cases. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 24.01.2020 at 13:59. Reason: Fixed parts of these instructions |
|
|