Skip to content

Commit

Permalink
xivid: Gebruik substring-before/after() voor Xidel-versie-check
Browse files Browse the repository at this point in the history
Is (veel) sneller dan extract()!
  • Loading branch information
Reino17 committed Jul 12, 2020
1 parent 21747ec commit 1bbd29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xivid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ pornhub() {
}

if command -v xidel >/dev/null; then
ver=$(xidel --version | xidel - -se 'extract($raw,"\d{8}")')
ver=$(xidel --version | xidel - -se 'substring-before(substring-after($raw,"("),".")')
if [[ $ver -ge 20180421 ]]; then
if [[ $ver -ge 20200201 ]]; then
export XIDEL_OPTIONS="--silent --module=xivid.xqm --json-mode=deprecated"
Expand Down

0 comments on commit 1bbd29e

Please sign in to comment.