Skip to content

Commit

Permalink
Plug vlc-protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Nov 24, 2016
1 parent 1e404f3 commit f41b7f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# RSS Box [![Code Climate](https://codeclimate.com/github/stefansundin/rssbox/badges/gpa.svg)](https://codeclimate.com/github/stefansundin/rssbox)
# RSS Box

This app uses the API of other websites and gives you an RSS feed in return. Quick and simple.

To open vlc:// links, see [vlc-protocol](https://github.com/stefansundin/vlc-protocol).

You can use this app freely at [rssbox.herokuapp.com](https://rssbox.herokuapp.com/).

Expand Down
6 changes: 3 additions & 3 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
elsif /plus\.google\.com\/(u\/\d+\/)?(?<user>\d+)/ =~ params[:q]
# https://plus.google.com/112161921284629501085
else
# it's probably a user name
# it's probably a username
user = params[:q]
user = "+#{user}" if user[0] != "+" and !user.numeric?
end
Expand Down Expand Up @@ -848,7 +848,7 @@
end
if request.user_agent["Mozilla/"]
redirect "vlc://#{streams[0]}" if params.has_key?("open")
"Open this url in VLC and it will automatically open the top stream:\n\n#{streams.join("\n")}"
"Open this url in VLC and it will automatically open the top stream.\nTo open vlc:// links, see: https://github.com/stefansundin/vlc-protocol\n\n#{streams.join("\n")}"
else
redirect streams[0]
end
Expand Down Expand Up @@ -936,7 +936,7 @@
# http://www.dailymotion.com/user/GeneralGrin/1
# http://www.dailymotion.com/GeneralGrin
else
# it's probably a user name
# it's probably a username
user = params[:q]
end

Expand Down
3 changes: 2 additions & 1 deletion views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<% if ENV["IMGUR_CLIENT_ID"] %>
<form class="input-group" method="get" action="imgur">
<div class="input-group-addon"><label for="imgur_q">Imgur</label></div>
<input class="form-control" type="search" name="q" id="imgur_q" placeholder="Enter a Imgur user name or a url. Or subreddit url." required>
<input class="form-control" type="search" name="q" id="imgur_q" placeholder="Enter a Imgur username or a url. Or subreddit url." required>
<span class="input-group-btn">
<input class="btn btn-primary" type="submit" value="Get RSS Feed">
</span>
Expand All @@ -223,6 +223,7 @@
<li>YouTube lets you subscribe to a channel's recent videos, but it is difficult to find the url. Playlists also work.</li>
<li>Vimeo also has RSS feeds, but are easier to find than YouTube's feeds.</li>
<li>You can download Facebook videos, Vine videos and SoundCloud tracks, just paste the url and use the dropdown.</li>
<li>To open <tt>vlc://</tt> links, see <a href="https://github.com/stefansundin/vlc-protocol">vlc-protocol</a>.</li>
</ul>

<p><a href="https://github.com/stefansundin/rssbox">This app is free software.</a></p>
Expand Down

0 comments on commit f41b7f2

Please sign in to comment.