Skip to content

Commit

Permalink
Merge pull request #6242 from NerLOR/master
Browse files Browse the repository at this point in the history
dns_world4you: Adapt to change in world4you.com
  • Loading branch information
Neilpang authored Feb 23, 2025
2 parents b8644f4 + 1d628bc commit 384f0fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnsapi/dns_world4you.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ _get_paketnr() {
fqdn="$1"
form="$2"

domains=$(echo "$form" | grep '<ul class="nav header-paket-list">' | sed 's/<li/\n<li/g' | sed 's/<[^>]*>/ /g' | sed 's/^.*>\([^>]*\)$/\1/')
domains=$(echo "$form" | grep 'paketListData' | grep -o '"fqdn":"[^"]*"' | sed 's/.*:"\(.*\)"/\1/')
_debug domains "$domains"
domain=''
for domain in $domains; do
Expand All @@ -218,7 +218,7 @@ _get_paketnr() {
TLD="$domain"
_debug domain "$domain"
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))")
PAKETNR=$(echo "$domains" | grep -o " $domain.*" | sed 's/^[^,]*, *\([0-9]*\).*$/\1/')
PAKETNR=$(echo "$form" | grep -o "\"id\":[^{}]*\"fqdn\":\"$domain\"" | sed 's/"id":\([0-9]*\).*$/\1/')
return 0
}

Expand Down

0 comments on commit 384f0fb

Please sign in to comment.