JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 27.07.2019, 14:44
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Question 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 18:40.
Reply With Quote
  #2  
Old 27.07.2019, 19:44
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

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. :]
Reply With Quote
  #3  
Old 27.07.2019, 22:01
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

It was already enabled by default.
But still, it's not what I was asking for.
Example Link attached.
Attached Files
File Type: txt Example.txt (66 Bytes, 6 views)

Last edited by Cyberavater; 27.07.2019 at 22:03. Reason: Link hider is buggy.
Reply With Quote
  #4  
Old 28.07.2019, 03:03
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

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. :]
Reply With Quote
  #5  
Old 28.07.2019, 18:32
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

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?
Reply With Quote
  #6  
Old 31.07.2019, 17:04
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

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
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 01.08.2019, 00:23
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by pspzockerscene View Post
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-
There aren't any (issue with this outcome) for a typical folder containing typical files. But I was explicitly talking about Game (software/application) folder where specific folder structure *really* matters.

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 07:37.
Reply With Quote
  #8  
Old 02.08.2019, 02:45
gatorade gatorade is offline
JD Beta
 
Join Date: Dec 2017
Posts: 58
Default

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??
Reply With Quote
  #9  
Old 02.08.2019, 11:46
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

Quote:
Originally Posted by gatorade View Post
... any idea how to sort this out??
"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.
Reply With Quote
  #10  
Old 02.08.2019, 18:38
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by mgpai View Post
"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.
Umm... Nope, that doesn't help, it just mashes up all files in a single folder.
[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 18:42. Reason: Issue is not solved
Reply With Quote
  #11  
Old 02.08.2019, 19:17
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

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
File List:
Code:
gist.github.com/mgpai/ae1027c30a1a7f92c7f2b157c164a42d
Reply With Quote
  #12  
Old 05.08.2019, 19:27
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

I'd still love a solution for this issue since it was never solved (while a false solved tag is added).
Reply With Quote
  #13  
Old 05.08.2019, 20:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@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
Reply With Quote
  #14  
Old 05.08.2019, 20:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Cyberavater View Post
Not: X>New Text Document (3).txt;A>New Text Document (3).txt;B>New Text Document (3).txt
Don't look at the package names! The important thing is the final downloadfolder! which reflects the correct folder structure.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 05.08.2019, 21:02
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
Don't look at the package names! The important thing is the final download folder! which reflects the correct folder structure.
You are missing my point! Check the image posted by psp https://i.snag.gy/tYfCzi.jpg
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 21:06.
Reply With Quote
  #16  
Old 05.08.2019, 21:05
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
Don't look at the package names!
Also, 'package names' (i.e folder name) is required to be exact for certain application/software to work.
Reply With Quote
  #17  
Old 05.08.2019, 21:15
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
@Cyberavater: I can't reproduce any issue. *Adopt folder structure* rule must be BELOW *create subfolder by package name* rule in Settings-Packagizer.
Which it is by default and got the same result as psp (And you missed my point! You (atleast psp) reproduced my issue but for some reason not realizing it as an issue. (Not sure why?)).

Quote:
Originally Posted by Jiaz View Post
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
All are in the 'same folder' in it's 'subfolder'. Which is not how JD2 presents it (it creates "different folders' NOT 'subfolders'). https://i.snag.gy/tYfCzi.jpg
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 21:33.
Reply With Quote
  #18  
Old 06.08.2019, 17:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Cyberavater View Post
You are missing my point! Check the image posted by psp https://i.snag.gy/tYfCzi.jpg
It doesn't have any subfolders ...
please check again the screenshot and take a look at the 'save to' column. yes it does

Quote:
Originally Posted by Cyberavater View Post
Also, 'package names' (i.e folder name) is required to be exact for certain application/software to work.
No they don't. Package help the managing of your links in JDownloader. You may also make use of them to auto name/set the final download folder but you can also use 'packages in JDownloader' independently from 'download folders'. There is no forced connection between package and folder


Quote:
Originally Posted by Cyberavater View Post
All are in the 'same folder' in it's 'subfolder'. Which is not how JD2 presents it (it creates "different folders' NOT 'subfolders'). https://i.snag.gy/tYfCzi.jpg
Again, a software won't work if you put it's files on different folders and on the folder's subfolder.
subfoldes are represented in 'save to' column. JDownloader doesn't support nested packages. A package is simply a collection of links that are downloaded to a specific folder.
You can name a package 'Test' and still download to folder 'hello'.
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 06.08.2019 at 17:14.
Reply With Quote
  #19  
Old 06.08.2019, 17:16
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Quote:
Originally Posted by Jiaz View Post
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
I have 3 files and 4 folders
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
Reply With Quote
  #20  
Old 06.08.2019, 21:21
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
please check again the screenshot and take a look at the 'save to' column. yes it does
Well, yes actually it does have subfolder but in different folders (i.e. X, Y, Z). But can you have them (Y, Z) in folder 'X' as it's shown in the browser?
[P.S. Yes, My 'save to' column is same as psp's]
Reply With Quote
  #21  
Old 06.08.2019, 21:27
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
It's exactly the same structure as on google drive
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
Reply With Quote
  #22  
Old 07.08.2019, 14:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
  #23  
Old 07.08.2019, 14:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

If you really need this behaviour, then we might add support for this optional via plugin setting
__________________
JD-Dev & Server-Admin
Reply With Quote
  #24  
Old 07.08.2019, 14:57
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
If you really need this behaviour, then we might add support for this optional via plugin setting
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.
Reply With Quote
  #25  
Old 07.08.2019, 15:02
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

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
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
  #26  
Old 07.08.2019, 15:09
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by pspzockerscene View Post
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-
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).
Reply With Quote
  #27  
Old 07.08.2019, 15:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

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
Reply With Quote
  #28  
Old 07.08.2019, 15:34
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
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
Yes, but I'll need time as I currently don't have those link (Deleted links after downloading).
Reply With Quote
  #29  
Old 07.08.2019, 15:51
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Sure, take your time
__________________
JD-Dev & Server-Admin
Reply With Quote
  #30  
Old 12.08.2019, 16:48
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Jiaz View Post
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
Check the attached link; JD2 meshes up the folder structure thus the game doesn't work.

[Not sure why you needed this 'real-life examples' when you already understood my problem.]
Attached Files
File Type: txt 'real-life example'.txt (66 Bytes, 4 views)
Reply With Quote
  #31  
Old 12.08.2019, 20:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Thanks, will look into it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #32  
Old 14.08.2019, 20:59
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

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).]
Reply With Quote
  #33  
Old 16.08.2019, 19:51
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

Ticket:


-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
  #34  
Old 29.10.2019, 15:11
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

@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
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
  #35  
Old 21.12.2019, 07:09
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

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?
Reply With Quote
  #36  
Old 28.12.2019, 17:29
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

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?
Reply With Quote
  #37  
Old 21.01.2020, 08:23
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Quote:
Originally Posted by Cyberavater View Post
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?
Would it be feasible?
Reply With Quote
  #38  
Old 21.01.2020, 19:18
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

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
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
  #39  
Old 24.01.2020, 14:34
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

1. Example Link: **External links are only visible to Support Staff****External links are only visible to Support Staff**

2. Understandable.
Reply With Quote
  #40  
Old 24.01.2020, 14:56
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,921
Default

To answer your questions again and more precise:
Quote:
Originally Posted by Cyberavater View Post
Can you add a feature that would create only one package by the name of the parent folder?
Currently you could do the following to archive this:
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:
Originally Posted by Cyberavater View Post
Also, it names the folder 'parent folder – Google Drive', can you add an option so that it doesn't put the '– Google Drive' part?
I was not able to reproduce this with your test-URL.
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
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; 24.01.2020 at 14:59. Reason: Fixed parts of these instructions
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 19:48.
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.