{{ $regex := `(?i)https?:\/\/(\w+)\.douban\.com\/subject\/(\d+)` }} {{ $urls := findRE $regex .Destination }} {{ if $urls }} {{ $url :=index ($urls) 0 }} {{ $dbtype := replaceRE $regex "$1" $url }} {{ $dbid := replaceRE $regex "$2" $url }} {{ $dbFetch := getJSON "https://node.wpista.com/v1/outer/" $dbtype "/" $dbid "?token=2bfb9a8d037a7352c9d369b85d33ac83e39a" }} {{ if $dbFetch }} {{ $subject := $dbFetch.data }} {{ $number := (float $subject.douban_score) }}