From nobody Sun Nov 20 14:04:39 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NFXMX0vJ6z4h7lJ; Sun, 20 Nov 2022 14:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NFXMX0Lbwz3wHR; Sun, 20 Nov 2022 14:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668953080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mU4ZKxxRA/UlE3QPbe7LPPc3CTUtvDpGOC5l6KaJMGc=; b=QKFQiZOC2OMn6rUFnblkTepRaKa/izfDXl8CSHdgQQziv5zr29Hm5SbfLVc7tkP34MoiTk ndEXoUO1BmZq3X36iiQLPYuUbLw3lx928zHLG0F8nCxCkSdoSqpNxcFctcYZhg5XPXS0Ou LHeAl8/sUm6cF6z1kF93E+CZnGutP5EdlpLT7lcHfqCaIE4q+mdEh4zkvVg3mHZHoWVKXg dvvBTZVR2ztUkYW2KEQ55Qy/tHIxs7e9VjFRzclTuK6MQ8UOjRMXrmZsLTT3thrkQpxQ7S 98W65lC1O/HPWUFwX6FQkU3aEMqJEJIsOgnKTkIzTB0wPV72QYexiciLbpPe4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668953080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mU4ZKxxRA/UlE3QPbe7LPPc3CTUtvDpGOC5l6KaJMGc=; b=n764Nutl6LoCoa6XerJp5ji+Urf2GVq8J0/BDjUXgjP5eIwLhVCr1U219Wr3WaIwfOkk+r x5nvgD0u3e+PJqnCuHjkVMMBY2jwrDzWKRyMezG3b8kA6/umO9nkRmHPqWtNbnSljZbb25 yTpXq11zYWQ1+iPIe2nj2q7393k2vN5T3Snh/1mj94fdaTdOk7wH/BvgtUiGOg+wL55Vsq skXTTqQSFTYvV8XCTVAiknaDPs4zM27lt8vtFM7QnYmHRq6d7+upuIDkVyO4KdEVAgJI1u uCnqg/qet/oI+bARNj27z23LBpKsibrQWWm6nBc65qIonMk7nOSe2O9cx6+QbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668953080; a=rsa-sha256; cv=none; b=D5fl0E5eqrYCK0yge3H7HF+spMQz6nWLX3p4eGzfz2GPX5rrWzoBeuIwJDFraz6P2XW7YP SFkoix4qBDTtkpsU2sS2oYpNivq01EBIxx2KxwSkdj51q1ahZRZJ9B1h8bWeFibEGX63k/ sCjyz9tahICxr8qkex+Cy7Dh1F2yHtPUgjH6GuKOtehVi7wFbwfm/xhs5kZ9ToeMsrgD/G O/HyYPwClkzQWeInb0m1GKZgAwnkGu1Ae5S8NjXz/QVKd9TmGXK4SRhTgDBnqTHP5jD1Gz +6RXCkOW6/DmJcw7AmHafgAzLBIg2ASrLIsp5bGz/gKrplaB7caYkJE5TFoSFA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NFXMW6TgrzRR9; Sun, 20 Nov 2022 14:04:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AKE4dJx055115; Sun, 20 Nov 2022 14:04:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AKE4d6m055114; Sun, 20 Nov 2022 14:04:39 GMT (envelope-from git) Date: Sun, 20 Nov 2022 14:04:39 GMT Message-Id: <202211201404.2AKE4d6m055114@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alex Kozlov Subject: git: 79ea4fb2e9b8 - main - www/googlebook_dl: Update to 20221117 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ak X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 79ea4fb2e9b87ab1f8b8f36171f61c493847d01e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ak: URL: https://cgit.FreeBSD.org/ports/commit/?id=79ea4fb2e9b87ab1f8b8f36171f61c493847d01e commit 79ea4fb2e9b87ab1f8b8f36171f61c493847d01e Author: Alex Kozlov AuthorDate: 2022-11-20 14:00:26 +0000 Commit: Alex Kozlov CommitDate: 2022-11-20 14:00:26 +0000 www/googlebook_dl: Update to 20221117 - Add GDPR support Reported by: Mark Anderes --- www/googlebook_dl/Makefile | 2 +- www/googlebook_dl/files/googlebook_dl.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/www/googlebook_dl/Makefile b/www/googlebook_dl/Makefile index 6b82fb26ec65..adce8ca52aa4 100644 --- a/www/googlebook_dl/Makefile +++ b/www/googlebook_dl/Makefile @@ -1,5 +1,5 @@ PORTNAME= googlebook_dl -PORTVERSION= 20160213 +PORTVERSION= 20221117 CATEGORIES= www MASTER_SITES= # none DISTFILES= # none diff --git a/www/googlebook_dl/files/googlebook_dl.sh b/www/googlebook_dl/files/googlebook_dl.sh index d00d46116a9f..0fd44a6c0fa5 100644 --- a/www/googlebook_dl/files/googlebook_dl.sh +++ b/www/googlebook_dl/files/googlebook_dl.sh @@ -109,6 +109,7 @@ get_cookie() # get cookie unset cookie_str cookie_str=$(wget ${optcommon} -S -U"${ua}" -O/dev/null \ + --header 'Cookie: CONSENT=YES+' \ "${baseurl}${bookid}&pg=PA1&jscmd=click3" 2>&1 | \ sed -ne '/Set-Cookie:/s/^.*\(NID[^=]*=.*domain=.google.com; HttpOnly\).*$/\1/p') @@ -145,6 +146,7 @@ get_page() # fetch urls # NB! signatures tied to cookie and ip urls=$(wget ${optcommon} -U"${ua}" --header "Cookie: ${cookie_str}" -O- \ + --header 'Cookie: CONSENT=YES+' \ "${url}" | tr '}' '\n' | \ sed -ne 's/^.*"src":"\(https:\/\/[^"]*\)".*$/\1/; /pg=/s/\\u0026/\&/gp') @@ -158,6 +160,7 @@ get_page() got_pages=$((${got_pages} + 1)) wget ${optcommon} -U"${ua}" --header "Cookie: ${cookie_str}" \ + --header 'Cookie: CONSENT=YES+' \ -O"${bookid}/${page}.png" "${url}&w=${pagewidth}" _return=$?