commit 55157bb6d69f38dd39aace31533b11dc5529ea15
parent 880fcf4ac806991ee9ef0b63d7cdd42e29bd57db
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 16 Dec 2018 16:13:53 +0100
rplayer now also shows Reddit permalink
Former-commit-id: f471f10ba5c8fb45b6d9fb98ce3c3c7678a09542
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/rplayer b/bin/rplayer
@@ -27,13 +27,14 @@ links = []
posts.each do |post|
p = post["data"]
if not p["is_self"] and p["post_hint"] != "image"
- links.append(title: p["title"], url: p["url"])
+ links.append(title: p["title"], url: p["url"], reddit: "https://reddit.com/#{p["permalink"]}")
end
end
links.each do |link|
puts "\n-----\n"
puts "# #{link[:title]}"
+ puts "Reddit: #{link[:reddit]}"
puts "(press q to skip)"
if not system("mpv #{mpv_options} '#{link[:url]}'")
puts "Cannot play #{link[:url]}"
diff --git a/pic.jpg b/pic.jpg
Binary files differ.