Fix tvcal regex
authorMikael Berthe <mikael@lilotux.net>
Mon, 26 Mar 2012 08:37:26 +0200
changeset 59 0a39d217b80a
parent 58 4c3028c21ccb
child 60 74697f376dad
Fix tvcal regex Some shows were skipped (first, last, pilots...)!
mcbot/cmds/tvcal.lua
--- a/mcbot/cmds/tvcal.lua	Sat Feb 11 12:45:17 2012 +0100
+++ b/mcbot/cmds/tvcal.lua	Mon Mar 26 08:37:26 2012 +0200
@@ -37,7 +37,7 @@
                      '%s*(.-)%s*</td>'
 
     -- Regex for parsing one day
-    local epregex = '<p>'..
+    local epregex = '<p[^>]*>'..
                       '<a href=[^>]+>([^<]+)</a>'..       -- Name
                       '<br /><a href=[^>]+>([^<]+)</a>'.. -- Episode
                     '</p>'