Browse Source

fix error in pageNumber parsing

encrypt 4 years ago
parent
commit
023a1efe79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      issuu.sh

+ 1 - 1
issuu.sh

@@ -5,7 +5,7 @@ url=$1
 
 curl --silent "$url" -o $tmpfile
 
-pages=$(grep -Po '"pageCount":\K[^,][0-9]' $tmpfile)
+pages=$(grep -Po '"pageCount":\K[^,][0-9]*' $tmpfile)
 document_id=$(grep -Po '"documentId":"\K[^",]*' $tmpfile)