Remove special handling of the-download URL - gophercgis - Collection of gopher CGI/DCGI for geomyidae
HTML hg clone https://bitbucket.org/iamleot/gophercgis
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR changeset 9e0373a7584fb3015592cf627d718dcd2cfce8ff
DIR parent 37cef42e5b3cefab3ca9f64691ca5198831cde43
HTML Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 7 Jul 2019 11:36:48
Remove special handling of the-download URL
They no longer exists (CGI still doesn't work)
Diffstat:
technologyreview/article.cgi | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff -r 37cef42e5b3c -r 9e0373a7584f technologyreview/article.cgi
--- a/technologyreview/article.cgi Fri May 17 17:40:39 2019 +0200
+++ b/technologyreview/article.cgi Sun Jul 07 11:36:48 2019 +0200
@@ -46,25 +46,8 @@
url=$2
-case "${url}" in
-*/the-download/*)
- extract_section()
- {
- awk '
- /class="download__text"/,/class="download__source-wrapper"/ {
- print
- }
- '
- }
- ;;
-*)
- extract_section() { cat; }
- ;;
-esac
-
curl -Lgs -- "${url}" |
{ xmllint --html --format --xpath '//main' - 2>/dev/null ; } |
- extract_section |
filter_html |
html_to_text