xmltv 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xmltv/sites/tvgids.rb +0 -0
- data/lib/xmltv/sites/tvtoday.rb +0 -0
- data/lib/xmltv/sites/upc.rb +0 -0
- data/lib/xmltv/sites/vpro.rb +0 -0
- data/lib/xmltv/xmltv.rb +10 -3
- metadata +6 -4
data/lib/xmltv/sites/tvgids.rb
CHANGED
File without changes
|
data/lib/xmltv/sites/tvtoday.rb
CHANGED
File without changes
|
data/lib/xmltv/sites/upc.rb
CHANGED
File without changes
|
data/lib/xmltv/sites/vpro.rb
CHANGED
File without changes
|
data/lib/xmltv/xmltv.rb
CHANGED
@@ -96,7 +96,7 @@ module XMLTV
|
|
96
96
|
super {|h,v| h[v] = Hash.new }
|
97
97
|
end
|
98
98
|
end
|
99
|
-
VERSION = '0.8.
|
99
|
+
VERSION = '0.8.7'
|
100
100
|
Progdir = ($LOAD_PATH.find {|x| test(?f, "#{x}/xmltv/xmltv.rb")} || 'lib') + '/xmltv/sites'
|
101
101
|
Sites = Dir["#{Progdir}/*.rb"].map{|x| x[0..-4]}.map{|x| File.basename(x)}
|
102
102
|
class XmltvOptparser
|
@@ -248,9 +248,15 @@ module XMLTV
|
|
248
248
|
name , attrs , elements = el
|
249
249
|
# STDERR.puts name
|
250
250
|
next if (cur = progdata[name]).empty?
|
251
|
+
wl = With_lang.include?(name)
|
252
|
+
curS = cur.is_a?(String)
|
253
|
+
if wl && curS
|
254
|
+
next if cur.strip.empty?
|
255
|
+
end
|
256
|
+
|
251
257
|
el = p.add_element(name)
|
252
|
-
el.text = cur if
|
253
|
-
if
|
258
|
+
el.text = cur if curS
|
259
|
+
if wl
|
254
260
|
el.attributes['lang'] = @grabber.lang
|
255
261
|
end
|
256
262
|
if attrs
|
@@ -745,6 +751,7 @@ module XMLTV
|
|
745
751
|
require "xmltv/sites/#{grabber}"
|
746
752
|
rescue SystemExit => exc
|
747
753
|
raise unless exc.success?
|
754
|
+
rescue XMLTV::BadSiteError
|
748
755
|
end
|
749
756
|
end
|
750
757
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmltv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Han Holl
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-01 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hpricot
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -23,12 +24,13 @@ dependencies:
|
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: hoe
|
27
|
+
type: :development
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
29
31
|
- - ">="
|
30
32
|
- !ruby/object:Gem::Version
|
31
|
-
version: 1.
|
33
|
+
version: 1.7.0
|
32
34
|
version:
|
33
35
|
description: "Xmltv consists of a single base grabber and a bunch of site specific grabbers. The base grabber provides: - a driver - option parsing - start/stop time fixing - xml production - helper functions that site specific grabbers might want to use"
|
34
36
|
email: hanholl@rubyforge.org
|
@@ -81,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
83
|
requirements: []
|
82
84
|
|
83
85
|
rubyforge_project: xmltv
|
84
|
-
rubygems_version: 1.
|
86
|
+
rubygems_version: 1.2.0
|
85
87
|
signing_key:
|
86
88
|
specification_version: 2
|
87
89
|
summary: fetches tv program data from various sites
|