JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 17.02.2024, 20:22
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 346
Default packageNamePattern - naming question to add html

how to replace <title> with <span class="name"> ?


"packageNamePattern" : "<title>(.+)</title>",
Reply With Quote
  #2  
Old 17.02.2024, 20:55
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,914
Default

I guess you are talking about linkcrawler rules? can you provide full example (eg the part that contains the wished package name) ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 17.02.2024, 21:38
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 346
Default

Quote:
Originally Posted by Jiaz View Post
I guess you are talking about linkcrawler rules? can you provide full example (eg the part that contains the wished package name) ?
exactly, it is about linkcrawler rule...

I also have a working linkcrawler rule plus filter to get all I need...

I just want to try to 'search' better saying to crawl for

<span class="name">(.+)</span>

instead of <title>(.+)</title>

if I choose to crawl for <h1>(.+)</h1> everything is working fine, but with <span class="name"> there is another coding necessary for adding it at linkcrawler rule...

that's it

<span class="name">Elle Price</span>
it cannot be just <span> it must be with class="name"
Reply With Quote
  #4  
Old 18.02.2024, 01:19
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 346
Default

now it works

HTML Code:
  <span class=\"name\">(.+)</span>

Last edited by verheiratet1952; 18.02.2024 at 01:21.
Reply With Quote
  #5  
Old 18.02.2024, 13:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,914
Default

@verheiratet1952: sorry for late response, but you already found the answer by yourself you have to escape the " with
Code:
\"
see freeformatter.com/json-escape.html
and jsonformatter.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 18.02.2024, 16:50
verheiratet1952 verheiratet1952 is offline
JD VIP
 
Join Date: Jan 2016
Posts: 346
Default

Quote:
Originally Posted by Jiaz View Post
@verheiratet1952: sorry for late response, but you already found the answer by yourself you have to escape the " with
Code:
\"
see freeformatter.com/json-escape.html
and jsonformatter.org
ok, thx

sometimes I feel like a caveman
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 23:19.
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 - 2025, Jelsoft Enterprises Ltd.