bin/xmltv2html.rb in xmltv2html-0.6.0 vs bin/xmltv2html.rb in xmltv2html-0.6.1

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby #!/usr/bin/ruby -w # With Ruby 1.8.3, yaml gives a lot of warnings... :-(( # # xmltv2html.rb - A Ruby script to transform the XMLTV output into HTML. # -# Version : 0.6.0 +# Version : 0.6.1 # Author : Kurt V. Hindenburg <public@kurt.hindenburg.name> # # Copyright (C) 2003, 2004, 2005 Kurt V. Hindenburg # # This program is free software; you can redistribute it and/or modify @@ -59,11 +59,11 @@ = FILES * popup.js - The show's information is displayed using this JavaScript DHTML popup window script. * xmltv2html.css - An optional CSS file used in the HTML output. * xmltv2htmlrc - An optional configuration file. = SEE ALSO -* ((<"xmltv2html.rb home page - http://kurt.hindenburg.name/projects/xmltv2html"|URL:http://kurt.hindenburg.name/projects/xmltv2html>)) +* ((<"xmltv2html.rb home page - http://xmltv2html.rubyforge.org/"|URL:http://xmltv2html.rubyforge.org/>)) * ((<"xmltv home page - http://sourceforge.net/projects/xmltv"|URL:http://sourceforge.net/projects/xmltv>)) * ((<"REXML home page - http://www.germane-software.com/software/rexml"|URL:http://www.germane-software.com/software/rexml>)) = BUGS * Please process the xmltv.xml file through tv_sort ((*before*)) using xmltv2html.rb @@ -75,12 +75,12 @@ require 'singleton' require 'time' require 'set' -XMLTV2HTML_VERSION="0.6.0" -XMLTV2HTML_DATE="Dec 18, 2005" +XMLTV2HTML_VERSION="0.6.1" +XMLTV2HTML_DATE="Dec 21, 2005" class Time class << self ### Time.<method> @@ -862,11 +862,14 @@ $stderr.print "Unknown slot entry #{entry}\n" ; exit end i += 1 } @out.outputChannelEnd - @out.table_times if times_counter % @@options['times_interval'] == 0 + if @@options['times_interval'] > 0 and + ((times_counter % @@options['times_interval']) == 0) + @out.table_times + end times_counter += 1 } @out.table_end @@ -1206,10 +1209,10 @@ def outputLinks nl # print 'Links: ' print '<a class="links" href="http://sourceforge.net/projects/xmltv">xmltv</a>' nl - print '<a class="links" href="http://kurt.hindenburg.name">xmltv2html</a>' + print '<a class="links" href="http://xmltv2html.rubyforge.org/">xmltv2html</a>' nl end end