JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04.06.2018, 21:15
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default soundcloud

How to set JDownlaoder to detect only SINGLE songs.

not:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Yes:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #2  
Old 05.06.2018, 10:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I'm sorry but what is the problem?
The first links adds all links and the 2nd one just adds the single link.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 05.06.2018, 11:15
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

I need a regex to ignore user links (not decrypt all files), only single links.

Exclude (ignore):
Soundcloud.com/XXX

Include:
Soundcloud.com/XXX/XXX
Reply With Quote
  #4  
Old 05.06.2018, 11:23
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

(http|https):\/\/[\w\-_]+(\.[\w]+)\/([\w\-]+)+\/([\w\-])+
---------------------------
The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.
---------------------------
OK
---------------------------
Reply With Quote
  #5  
Old 05.06.2018, 12:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Settings-Filter-
sourceURL contains
Code:
https?://(www\.)?soundcloud\.com/\w+$
enable regex
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 05.06.2018, 17:58
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Not work, 13000+ too many decrypt
Reply With Quote
  #7  
Old 05.06.2018, 18:11
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

I tried to send all links but an error
Reply With Quote
  #8  
Old 05.06.2018, 18:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I'm sorry but I don't understand.
The filter works for given example in post 1
It filters out the first one, but works for the 2nd link.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 05.06.2018, 18:47
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

It still decrypts several thousand links, and I do not know what causes this error. It should be much less.

All links:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #10  
Old 05.06.2018, 18:59
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

tries to eliminate all unnecessary links, but the regular expression does not work, no match was found. Wrong PERL regex.
Reply With Quote
  #11  
Old 05.06.2018, 19:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

This pattern works fine for me
Code:
https?://(www\.)?soundcloud\.com/[a-zA-Z0-9%_\-]+$
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 05.06.2018, 19:15
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Quote:
Originally Posted by Jiaz View Post
This pattern works fine for me
Code:
https?://(www\.)?soundcloud\.com/[a-zA-Z0-9%_\-]+$

Incorrect regex should not match:
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #13  
Old 05.06.2018, 19:17
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

It does not match these links:


**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
**External links are only visible to Support Staff****External links are only visible to Support Staff**
Reply With Quote
  #14  
Old 05.06.2018, 19:19
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

and wrong regex

**External links are only visible to Support Staff****External links are only visible to Support Staff**

XXX/XXX/XXX

shouldbe XXX/XXX
Reply With Quote
  #15  
Old 05.06.2018, 19:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

I'm sorry but it matches exactly the one from your first post.
nathan-davison-17739840 -> is no single link and you asked to folder all but single links.

and for your other links from post 13, there a second slash and a &
Code:
https?://(www\.)?soundcloud\.com//?[a-zA-Z0-9%_\-&]+$
come on, it's not your first pattern!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #16  
Old 06.06.2018, 12:48
djmakinera djmakinera is offline
Banned
 
Join Date: May 2010
Location: Poland
Posts: 8,387
Default

Works correctly. Thank you very much :D
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 16:22.
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.