Skip to content
Browse files

allow https radio

  • Loading branch information...
1 parent 456a61a commit 23631cfeacd5ca026ca3959c97532ef737a6646c @msoap committed Feb 2, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 mojolicious-radio-box.pl
  2. +2 −2 src/radio-box-client.coffee
View
4 mojolicious-radio-box.pl
@@ -555,7 +555,7 @@ sub _cmus_parse_info {
$("#div_info").html("<b>" + App.info.tag.title + position + "</b>");
}
}
- if (App.info.radio_title && App.info.file.match(/http:\/\//)) {
+ if (App.info.radio_title && App.info.file.match(/https?:\/\//)) {
$("#radio_stations").show();
if (App.radio_stations.length) {
App.render_select_radio();
@@ -577,7 +577,7 @@ sub _cmus_parse_info {
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];
new_option = new Option(item.title, item.url);
- if (App.info.radio_title && App.info.file.match(/http:\/\//) && App.info.file === item.url) {
+ if (App.info.radio_title && App.info.file.match(/https?:\/\//) && App.info.file === item.url) {
new_option.selected = true;
}
_results.push(select_input.options.add(new_option));
View
4 src/radio-box-client.coffee
@@ -75,7 +75,7 @@ window.App =
<b>#{App.info.tag.title}#{position}</b>
"""
- if App.info.radio_title && App.info.file.match(/http:\/\//)
+ if App.info.radio_title && App.info.file.match(/https?:\/\//)
$("#radio_stations").show()
if App.radio_stations.length
App.render_select_radio()
@@ -93,7 +93,7 @@ window.App =
select_input.options.add(new Option(' - please select station -', ''))
for item in App.radio_stations
new_option = new Option(item.title, item.url)
- if App.info.radio_title && App.info.file.match(/http:\/\//) && App.info.file == item.url
+ if App.info.radio_title && App.info.file.match(/https?:\/\//) && App.info.file == item.url
new_option.selected = true
select_input.options.add(new_option)

0 comments on commit 23631cf

Please sign in to comment.
Something went wrong with that request. Please try again.