grab_epg 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.grabepg.gemspec +1 -1
- data/lib/debug.rb +2 -2
- data/lib/grabepg.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTEyZTU5ZWMxMTU5NGUxODQ0YzBiMDdlZTg5OTE5MmE2ZTk3NjkxMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDE2NWVhZDIzZWNlNTg2YmIxZWI5OTZlZjlkYWFmMDAyOGQ2NWI4Yw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDllZjZiMGJiNzhmZWY1OTRkYzNiMzQ2MjM5ZGZmYWM2OWZiYzk0Y2FkMGQ2
|
10
|
+
MDk5YjVmODg1MzgxMzMyNTYxNzdlZDM1ZGRhNDYxYTY3ZTYwNWI2OTA1MzQx
|
11
|
+
NGExZWMwNzc4NTlmYWNjODVmNTNiYWZiN2E3Zjk1MjE4NGIxOWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjgwNWMyZmE2MTEyNGViNWYzY2I5MTg5MGE1MjBlZjIyNTNmOTJlNjI5MTll
|
14
|
+
N2UxNzkzZDU2Mzk3OTMwNjBkYTg2N2Y1NDM1ZTIwOGM1NTVlNzU2MjRkMTg1
|
15
|
+
YWM1NGUyMjBmZjY1MTkxZWJmZTYxOWE3ODc5ODFiZjY2OGQ3ZjM=
|
data/.grabepg.gemspec
CHANGED
data/lib/debug.rb
CHANGED
@@ -20,7 +20,7 @@ class Debug
|
|
20
20
|
def self.test_getschedule(proxylist)
|
21
21
|
channel = "HUNANTV"
|
22
22
|
herf = "/program/HUNANTV-HUNANTV-w1.html"
|
23
|
-
Grabepg.getschedule(channel,herf,proxylist,
|
23
|
+
Grabepg.getschedule(channel,herf,proxylist,1)
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.test_get_show_schedule(proxylist)
|
@@ -28,7 +28,7 @@ class Debug
|
|
28
28
|
Grabepg.get_show_schedule(proxylist,herf)
|
29
29
|
end
|
30
30
|
|
31
|
-
Grabepg.start
|
31
|
+
#Grabepg.start
|
32
32
|
#p test_get_show_schedule(proxylist)
|
33
33
|
#p test_getschedule(proxylist)
|
34
34
|
# p test_get_show_infomation(proxylist)
|
data/lib/grabepg.rb
CHANGED
@@ -116,7 +116,8 @@ module Grabepg
|
|
116
116
|
|
117
117
|
|
118
118
|
#获取节目表
|
119
|
-
def self.getschedule(channel,herf,proxylist,day_num=
|
119
|
+
def self.getschedule(channel,herf,proxylist,day_num=1,img_dir_down_path=@img_down_dir_path)
|
120
|
+
p "Day Num is #{day_num}"
|
120
121
|
begin
|
121
122
|
day_num = 1 if day_num<1
|
122
123
|
rescue
|
@@ -148,7 +149,7 @@ module Grabepg
|
|
148
149
|
}
|
149
150
|
|
150
151
|
channel_schedule = {}
|
151
|
-
get_week_url.call(herf).each do |url|
|
152
|
+
get_week_url.call(herf,day_num).each do |url|
|
152
153
|
p "Grab: #{url}"
|
153
154
|
doc = get_doc_with_proxy(proxylist,url)
|
154
155
|
show_type = []
|