Browse Source
Merge pull request #4295 from NerLOR/master
Update dns_world4you
pull/4297/head
neil
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_world4you.sh
|
@ -195,7 +195,7 @@ _get_paketnr() { |
|
|
fqdn="$1" |
|
|
fqdn="$1" |
|
|
form="$2" |
|
|
form="$2" |
|
|
|
|
|
|
|
|
domains=$(echo "$form" | grep 'header-paket-domain' | sed 's/<[^>]*>//g' | sed 's/^.*>\([^>]*\)$/\1/') |
|
|
|
|
|
|
|
|
domains=$(echo "$form" | grep '<ul class="nav header-paket-list">' | sed 's/<li/\n<li/g' | sed 's/<[^>]*>/ /g' | sed 's/^.*>\([^>]*\)$/\1/') |
|
|
domain='' |
|
|
domain='' |
|
|
for domain in $domains; do |
|
|
for domain in $domains; do |
|
|
if _contains "$fqdn" "$domain\$"; then |
|
|
if _contains "$fqdn" "$domain\$"; then |
|
@ -210,7 +210,7 @@ _get_paketnr() { |
|
|
TLD="$domain" |
|
|
TLD="$domain" |
|
|
_debug domain "$domain" |
|
|
_debug domain "$domain" |
|
|
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))") |
|
|
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))") |
|
|
PAKETNR=$(echo "$form" | grep "data-textfilter=\".* $domain " | _tail_n 1 | sed "s|.*$WORLD4YOU_API/\\([0-9]*\\)/.*|\\1|") |
|
|
|
|
|
|
|
|
PAKETNR=$(echo "$domains" | grep "$domain" | sed 's/^[^,]*, *\([0-9]*\).*$/\1/') |
|
|
return 0 |
|
|
return 0 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|