aniview 0.3.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aniview.rb +59 -10
- data/lib/aniview/client/aniclient.rb +50 -0
- data/lib/aniview/interface/animeio/animeio.rb +2 -7
- data/lib/aniview/interface/deluge/delugec.rb +146 -49
- data/lib/aniview/interface/deluge/torrentitem.rb +4 -1
- data/lib/aniview/interface/pref/defaults.json +95 -66
- data/lib/aniview/interface/pref/pref.rb +18 -10
- data/lib/aniview/interface/pref/validate.json +32 -2
- data/lib/aniview/interface/schedule/schedule.rb +74 -0
- data/lib/aniview/interface/schedule/scheduleitem.rb +46 -0
- data/lib/aniview/interface/subscription/subscription.rb +102 -0
- data/lib/aniview/interface/subscription/subscriptiondaemon.rb +42 -0
- data/lib/aniview/util/alogger.rb +12 -3
- data/lib/aniview/util/command.rb +1 -0
- data/lib/aniview/util/format.rb +106 -105
- data/lib/aniview/util/stringhelp.rb +50 -0
- data/lib/aniview/view/delugemenu.rb +14 -3
- data/lib/aniview/view/menu.rb +2 -2
- data/lib/aniview/view/schedulemenu.rb +36 -0
- data/lib/aniview/view/subscriptionmenu.rb +35 -0
- data/lib/aniviewd.rb +167 -0
- metadata +11 -3
- data/lib/aniview/interface/rssfeed/rssfeed.rb +0 -26
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aniview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- annacrombie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: streamio-ffmpeg
|
@@ -138,6 +138,7 @@ extensions: []
|
|
138
138
|
extra_rdoc_files: []
|
139
139
|
files:
|
140
140
|
- "./lib/aniview.rb"
|
141
|
+
- "./lib/aniview/client/aniclient.rb"
|
141
142
|
- "./lib/aniview/interface/animeio/animefile.rb"
|
142
143
|
- "./lib/aniview/interface/animeio/animeio.rb"
|
143
144
|
- "./lib/aniview/interface/animeio/animeseries.rb"
|
@@ -148,17 +149,24 @@ files:
|
|
148
149
|
- "./lib/aniview/interface/pref/pref.rb"
|
149
150
|
- "./lib/aniview/interface/pref/prefitem.rb"
|
150
151
|
- "./lib/aniview/interface/pref/validate.json"
|
151
|
-
- "./lib/aniview/interface/
|
152
|
+
- "./lib/aniview/interface/schedule/schedule.rb"
|
153
|
+
- "./lib/aniview/interface/schedule/scheduleitem.rb"
|
154
|
+
- "./lib/aniview/interface/subscription/subscription.rb"
|
155
|
+
- "./lib/aniview/interface/subscription/subscriptiondaemon.rb"
|
152
156
|
- "./lib/aniview/util/alogger.rb"
|
153
157
|
- "./lib/aniview/util/command.rb"
|
154
158
|
- "./lib/aniview/util/format.rb"
|
155
159
|
- "./lib/aniview/util/online.rb"
|
160
|
+
- "./lib/aniview/util/stringhelp.rb"
|
156
161
|
- "./lib/aniview/util/term.rb"
|
157
162
|
- "./lib/aniview/view/aiomenu.rb"
|
158
163
|
- "./lib/aniview/view/delugemenu.rb"
|
159
164
|
- "./lib/aniview/view/emote.rb"
|
160
165
|
- "./lib/aniview/view/menu.rb"
|
161
166
|
- "./lib/aniview/view/prefmenu.rb"
|
167
|
+
- "./lib/aniview/view/schedulemenu.rb"
|
168
|
+
- "./lib/aniview/view/subscriptionmenu.rb"
|
169
|
+
- "./lib/aniviewd.rb"
|
162
170
|
- bin/aniview
|
163
171
|
homepage: https://github.com/annacrombie/aniview/
|
164
172
|
licenses:
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require 'simple-rss'
|
2
|
-
require 'open-uri'
|
3
|
-
|
4
|
-
class RssFeed
|
5
|
-
def initialize #pref
|
6
|
-
#@pref = pref
|
7
|
-
@testurl = "https://www.nyaa.se/?page=rss&cats=1_37&filter=1&term="
|
8
|
-
end
|
9
|
-
|
10
|
-
def updateFeed
|
11
|
-
#@rss = SimpleRSS.parse open(@pref.get "rss_feed")
|
12
|
-
@rss = SimpleRSS.parse open (@testurl)
|
13
|
-
end
|
14
|
-
|
15
|
-
def daemon
|
16
|
-
while true
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
def match string
|
22
|
-
@rss.items.each{ |item|
|
23
|
-
#item.
|
24
|
-
}
|
25
|
-
end
|
26
|
-
end
|