summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAndreas Krennmair <ak@synflood.at>2015-02-17 09:22:26 +0100
committerAndreas Krennmair <ak@synflood.at>2015-02-17 09:22:26 +0100
commitf223c7629939c139f697c8d82a28f818609a698e (patch)
tree628858191380990a5582af99ef737693c2c710cb /contrib
parent4296af0f5d928255ac539e743e3b071b3387c311 (diff)
parent68d09525282b8ca8395111fda6df99a73debe2bb (diff)
Merge pull request #144 from larryhynes/patch-2
Commented tags and added toread flag
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bookmark-pinboard.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/bookmark-pinboard.sh b/contrib/bookmark-pinboard.sh
index 6fd432cc..8d5c86a5 100755
--- a/contrib/bookmark-pinboard.sh
+++ b/contrib/bookmark-pinboard.sh
@@ -6,13 +6,17 @@
username="pinboard_username"
password="pinboard_password"
-tag="via:newsbeuter"
+# You can enter up to 100 tags here, space delimited, or leave blank for no tag
+tags="via:newsbeuter"
+
+# Leave as 'yes' to bookmark as to be read, enter 'no' to mark as read
+toread="yes"
url="$1"
title="$2"
desc="$3"
-pinboard_url="https://api.pinboard.in/v1/posts/add?url=${url}&description=${title}&extended=${desc}&tags="${tag}""
+pinboard_url="https://api.pinboard.in/v1/posts/add?url=${url}&description=${title}&extended=${desc}&tags="${tags}"&toread=${toread}"
output=`wget --http-user=$username --http-passwd=$password -O - "$pinboard_url" 2> /dev/null`