#1
|
|||
|
|||
Link Filtering Q: Removing non-links
I can't figure it out, so I don't know if it's possible.
In JD1 if you select a whole page and copy it to the clipboard, JD catches it, and if links are present, they are added. In JD2, every single image file is added as well. I don't want to block the ability to LinkGrab http links or even images... as long as they are explicitly links. It seems a bit agressive for JD to parse the page source rather than the content as displayed. Anyway... is there a filter rule I can put together that can fix this? Just copying this page to the clipboard adds 33 links! Last edited by CuF; 26.07.2014 at 12:30. |
#2
|
||||
|
||||
Note that for a lot of sites we have plugins which "know" what to look for.
For other unsupported links, the only way is to parse all (jd will ask for deep analysis for such links). This system has not changed from JD1 to JD2. Please post some of your links here so we can re-check this in JD1 and JD2. GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
I wasn't joking. Just ctrl-a, ctrl-c this page here.
33 'links' are found by JD2. JD1 finds none. Something has definitely changed. |
#4
|
||||
|
||||
Guess its dependant on your browser? in opera only copies as text when you ctrl a ctrl c (so if the links mentioned within href=blah>textlinkhere</a> it will only copy textlinkhere and not blah), if you copy HTML (say from the source protocol://host/file.extension) it will only pick up those objects, if you parse via deep decrypt in JD link analysis it will find more due to the parsing engine (supports relative paths etc). All three methods only pick up link formats which we support, just results will vary depending on the import feature. But most importantly also dependant on what your browser puts into the clipboard (re: first method).
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 26.07.2014 at 21:02. |
#5
|
|||
|
|||
I'm using FF. Is there a way to turn 'deep analysis' off for clipboard parsed links?
|
#6
|
||||
|
||||
deep analysis isn't on clipboard by default. You have to either select within the many ways.
either via normal, and then on failure to find anything against links added you will be prompted with this or via deep analysis will match deep instead of normal. or do this with shortcut or menu
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#7
|
|||
|
|||
Hmm. So it isn't finding the 'nothing found' first. It's examining the clipboard in a different manner than JD1 did; as raw html source, not a rendered web page.
With FF it snags every single picture in this window including the avatars, 'post reply' & 'quote' buttons. It's crazy. I just tested Internet Explorer and JD2 is finding the links to the JDownloader setup files in pspzockerscene's signature. It shouldn't find them though, since they are links not text in a link format. Sounds like JD2 wasn't tested on many browsers. |
#8
|
||||
|
||||
once again that is a browser function (though I haven't heard of any that do that, other than maybe extensions?) that's copying html/href and not text which is the display. There are no links found via clipboard monitoring when ctrl a and ctrl c of this forum thread, only if you deep analyse within JD GUI function, or browser is doing something messed up.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#9
|
|||
|
|||
Fixed:
Advanced Settings-- GraphicalUserInterfaceSettings: Clipboard Monitor Process HTMLFlavor: Disable Probably shouldn't be on by default. Last edited by CuF; 27.07.2014 at 08:42. |
#10
|
||||
|
||||
hmm, Ok so chrome (I use it as secondary browser, but never experienced this before) and some probably other browsers copy HTML also. You don't see it via clipboard monitoring or ctrl v. You can disable JD2 from picking that up via going to 'settings > advanced > GraphicalUserInterfaceSettings: Clipboard Monitor Process HTMLFlavor'
edit, your new post. sorry some reason my edit on previous post never submitted, but the above was what I wrote 12 hours ago
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 27.07.2014 at 14:53. |
#11
|
|||
|
|||
Thanks for the help everyone.
When I really want JD to grab every single link on a page, I use 'view source' and copy that to the clipboard. The advanced setting is hidden too deep to be useful as an option in place of 'view source' (it even requires a restart of JD). It also certainly shouldn't be enabled by default considering how it responds to different browsers. |
#12
|
||||
|
||||
That decision was made by appwork and I think they are happy with it, though I'll bring it up with them on Monday and I'll see why our current default setting. Only reason I haven't noticed it before, is that it's highly dependant on browser and I really never use chrome/firefox.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#13
|
||||
|
||||
And anyways, we're still in BETA and collect good default settings for the JD2 Stable release (no ETA given).
GreeZ psp
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#14
|
|||
|
|||
Quote:
The problems do arise in FF and IE. |
#15
|
||||
|
||||
@cuf
I ran test also.. in my chrome it behaved like your firefox.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#16
|
|||
|
|||
(I know this is an old thread, but I think this reply might help future searchers. So let me tag the post with keywords. Jdownloader LinkGrabber linkfilter too many links too many files exclude images favicon logo icon deep analysis)
I just had the same problem, and I have understood the reason. I am moving my computing (including JDownloader2) to a new machine a little bit at a time, and now I found a new problem which wasn't there on the old machine. The problem is the same as reported by the original poster here. It took me a little experimenting to find out why it happens. Short answer: clipboard format. Long answer: read on. When a program places some information in the clipboard (copy), it is placed in several formats, depending on the program and the info. In the case of Firefox and webpage text, these are the formats that Firefox puts in the clipboard (sizes are relative to this page, which I copied right now while writing): Code:
FORMAT_ID FORMAT_NAME HANDLE_TYPE SIZE INDEX --------------------------------------------------------- 49699 text/html Memory 196,042 1 49376 HTML Format Memory 98,347 2 49751 text/_moz_htmlcontext Memory 206 3 49750 text/_moz_htmlinfo Memory 8 4 13 CF_UNICODETEXT Memory 22,784 5 1 CF_TEXT Memory 11,392 6 49752 text/x-moz-url-priv Memory 160 7 That's why LinkGrabber "sees" the source and shows links that aren't interesting, such as images linked in the text of the web page. It's not a matter of deep analysis at all: just a matter of reading the source HTML rather than the rendered text. A possible workaround is to paste the text into an editor such as Notepad, and re-copy from there, then paste into LinkGrabber. A more permanent solution would be an option to let JDownloader discard the HTML source and simply pick simple text from the clipboard. EDIT - Oops, the option is already there as @raztoki noted above ( https://board.jdownloader.org/showpo...3&postcount=10 ). SOLUTION Settings > Advanced > GraphicalUserInterfaceSettings: Clipboard Monitor Process HTMLFlavor. Turn it off. Last edited by jua; 10.05.2020 at 01:55. Reason: Hadn't noticed a solution a few posts above |
Thread Tools | |
Display Modes | |
|
|