JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 27.11.2020, 23:57
georgegalily georgegalily is offline
Super Loader
 
Join Date: Oct 2018
Posts: 29
Exclamation Folder watcher does not work

Hi All
After last update 27/11,
Folder watcher does not work anymore??:confused:
It only moves the .jobcrawler files instantly to added folder without grabbing the links!
Reply With Quote
  #2  
Old 28.11.2020, 12:59
Amiganer Amiganer is offline
JD Fan
 
Join Date: Mar 2019
Posts: 72
Default

I can reproduce that here. The crawljobs are shifted to the added directory, but no links are inserted in the linkcrawler. My crawljobs are the same as usual, because I create them with a python script, so no parameter or "how the link looks like" is changed.
More info I have seen at a test right now: The crawljobs will popup in the downside of the window at the right, (in german: Untere Leiste) where all processes are shown in lighter color and than disapear after the files are moved.

Hope that helps....

Bye, Christian
P.S.: For that one thing, I don't know the correct english name, sorry...
Reply With Quote
  #3  
Old 28.11.2020, 13:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Can you please attach an example folderwatch file that fails?
@Amiganer: Ich verstehe schon was meinst Könntest mir nen BspDatei anhängen?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 28.11.2020, 13:57
Amiganer Amiganer is offline
JD Fan
 
Join Date: Mar 2019
Posts: 72
Default

Example file (I think you will have a short one ):
Code:
chunks=0
autoConfirm=true
autoStart=true
deepAnalyseEnabled=true
enabled=true
extractAfterDownload=true
forcedStart=true
packageName=XXXGames_SERENITY CIRCLE
text=**External links are only visible to Support Staff**
A small helper in Python for now. start it in the directory, where are your ".crawljobs" in and it will give you a "save.txt"-File you can add the links manuelly:
Code:
#! python3
#
import os
#
#
ROOT = os.path.abspath(os.path.dirname(__file__))
#
#
def walk_files(dirpathname :str, recursive=False):
    """ walk on Disk, Only yield Files """
    
    for item in os.listdir(dirpathname):
        entry = os.path.join(dirpathname, item)
        if os.path.isfile(entry):
            yield entry
        elif recursive:
            yield from walk_files(entry, True)

def main(savefilename):
    linklist = dict()
    package = ""
    for filename in walk_files(ROOT):
        if "crawljob" in filename:
            with open(filename, "rt", encoding="utf-8") as readfp:
                for line in readfp:
                    if "packageName=" in line:
                        package = line.replace("\n", "").replace("packageName=", "").strip()
                        linklist[package] = list()
                    if "text=" in line:
                        linklist[package].append(line.replace("text=", ""))
                        
    with open(savefilename, "wt", encoding="utf-8") as writefp:
        for key, value in linklist.items():
            string = ""
            for line in value:
                string += "\n"+line
            writefp.write(key+string+"\n")
            
if __name__=='__main__':
    main(os.path.join(ROOT, "save.txt"))
Hope, that helps for awhile.

Bye, Christian

Last edited by Amiganer; 28.11.2020 at 14:08.
Reply With Quote
  #5  
Old 28.11.2020, 14:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Looking into it right now
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 28.11.2020, 14:24
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

found the cause, update is on the way
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 28.11.2020, 15:03
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Update is live
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 28.11.2020, 15:10
Amiganer Amiganer is offline
JD Fan
 
Join Date: Mar 2019
Posts: 72
Default

Thx for your work...
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 11:54.
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.