sportsflix 1.0.0.alpha.1 → 1.0.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sportsflix.rb +8 -8
- data/lib/sportsflix/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b54699654a6cd3e7dbc4c051ef5f995f96cfaa4
|
4
|
+
data.tar.gz: 064edc25988d0e946a51513de3ae9757c9084f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f137b0cd6a95806544770d5fe4d6569d638fb7b0453c1b6506352577f67c62d7e4a47888018534be1b6f2c76b42177f0759eded783ae7e2fe094b8efb4a945
|
7
|
+
data.tar.gz: 3c4f38db0d4e552bb427395a078f89674e7442a2a8d0c46b09844c9354ce818165f54164f691440af0be1cc5ada6f95589495c04abd4e790a3f6c42ecd50d175
|
data/Gemfile.lock
CHANGED
data/lib/sportsflix.rb
CHANGED
@@ -8,11 +8,11 @@ module Sportsflix
|
|
8
8
|
class API
|
9
9
|
|
10
10
|
def initialize(options)
|
11
|
-
@verbose
|
12
|
-
@stream_offset
|
13
|
-
@club_name
|
14
|
-
@
|
15
|
-
@video_player
|
11
|
+
@verbose = options[:verbose]
|
12
|
+
@stream_offset = options[:offset]
|
13
|
+
@club_name = options[:club]
|
14
|
+
@interactive = options['interactive']
|
15
|
+
@video_player = options['video-player'].to_sym
|
16
16
|
|
17
17
|
@arenavision_client = Providers::Arenavision::Client.new(options)
|
18
18
|
@executor = Sportsflix::Utils::Executor.new(options)
|
@@ -68,7 +68,7 @@ module Sportsflix
|
|
68
68
|
if streams.empty?
|
69
69
|
puts "There are no streams matching your query #{@club_name}"
|
70
70
|
exit(1)
|
71
|
-
elsif streams.length > 1 &&
|
71
|
+
elsif streams.length > 1 && @interactive
|
72
72
|
streams.each_with_index do |stream, idx|
|
73
73
|
puts "#{idx}) #{stream[:game]}"
|
74
74
|
end
|
@@ -82,7 +82,7 @@ module Sportsflix
|
|
82
82
|
|
83
83
|
def ask_language(stream_channels)
|
84
84
|
channel_selection = 0
|
85
|
-
if stream_channels.length > 1 &&
|
85
|
+
if stream_channels.length > 1 && @interactive
|
86
86
|
stream_channels.each_with_index do |channel, idx|
|
87
87
|
puts "#{idx}) #{channel[:language]}"
|
88
88
|
end
|
@@ -96,7 +96,7 @@ module Sportsflix
|
|
96
96
|
|
97
97
|
def ask_channel(stream_channels)
|
98
98
|
stream_channel_nr = stream_channels[:start]
|
99
|
-
if stream_channels[:start] != stream_channels[:end] &&
|
99
|
+
if stream_channels[:start] != stream_channels[:end] && @interactive
|
100
100
|
possible_channels = (stream_channels[:start]..stream_channels[:end]).to_a
|
101
101
|
possible_channels.each_with_index do |nr, idx|
|
102
102
|
if @stream_offset == idx
|
data/lib/sportsflix/version.rb
CHANGED