[Freevo-devel] [ freevo-Bugs-776837 ] freevo has trouble parsing TV.xml from tv_grab_nl
Bugs item #776837, was opened at 2003-07-24 09:48 Message generated for change (Settings changed) made by dischi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=776837&group_id=46652 Category: program guide Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: it0 (it0) Assigned to: Nobody/Anonymous (nobody) Summary: freevo has trouble parsing TV.xml from tv_grab_nl Initial Comment: The error below happens when manually configuring the channels and then going to the EPG and when trying to automatically configure the channels. XMLTV is verion xmltv-0.5.14. Freevo is version 1.3.2. Running on debian stable. If you want more details please let me know. The backtrace epg_xmltv.py: Adding all channels Couldn't load the TV Guide, got an exception! Traceback (most recent call last): File "src/tv/epg_xmltv.py", line 180, in get_guide cached_guide = load_guide() File "src/tv/epg_xmltv.py", line 281, in load_guide xmltv_programs = xmltv.read_programmes(util.gzopen(config.XMLTV_FILE)) File "src/tv/xmltv.py", line 332, in read_programmes programmes.append(_node_to_programme(node)) File "src/tv/xmltv.py", line 297, in _node_to_programme programme = _extractNodes(node, handler) File "src/tv/xmltv.py", line 261, in _extractNodes result[child.name.encode(locale)].append(handler._call(child)) File "src/tv/xmltv.py", line 216, in _call return getattr(self, string.replace(node.name.encode(), '-', '_'))(node) File "src/tv/xmltv.py", line 102, in url return _ChannelHandler.url(self, node) TypeError: unbound method url() must be called with _ChannelHandler instance as first argument (got _ProgrammeHandler instance instead) -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=776837&group_id=46652 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
[Freevo-devel] [ freevo-Bugs-776837 ] freevo has trouble parsing TV.xml from tv_grab_nl
Bugs item #776837, was opened at 2003-07-24 11:48 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=776837&group_id=46652 Category: program guide Group: None Status: Open Resolution: None Priority: 5 Submitted By: it0 (it0) Assigned to: Nobody/Anonymous (nobody) Summary: freevo has trouble parsing TV.xml from tv_grab_nl Initial Comment: The error below happens when manually configuring the channels and then going to the EPG and when trying to automatically configure the channels. XMLTV is verion xmltv-0.5.14. Freevo is version 1.3.2. Running on debian stable. If you want more details please let me know. The backtrace epg_xmltv.py: Adding all channels Couldn't load the TV Guide, got an exception! Traceback (most recent call last): File "src/tv/epg_xmltv.py", line 180, in get_guide cached_guide = load_guide() File "src/tv/epg_xmltv.py", line 281, in load_guide xmltv_programs = xmltv.read_programmes(util.gzopen(config.XMLTV_FILE)) File "src/tv/xmltv.py", line 332, in read_programmes programmes.append(_node_to_programme(node)) File "src/tv/xmltv.py", line 297, in _node_to_programme programme = _extractNodes(node, handler) File "src/tv/xmltv.py", line 261, in _extractNodes result[child.name.encode(locale)].append(handler._call(child)) File "src/tv/xmltv.py", line 216, in _call return getattr(self, string.replace(node.name.encode(), '-', '_'))(node) File "src/tv/xmltv.py", line 102, in url return _ChannelHandler.url(self, node) TypeError: unbound method url() must be called with _ChannelHandler instance as first argument (got _ProgrammeHandler instance instead) -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=776837&group_id=46652 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
Re: [Freevo-devel] [ freevo-Bugs-776837 ] freevo has trouble parsing TV.xml from tv_grab_nl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On July 24, 2003 06:48 am, SourceForge.net wrote:
> result[child.name.encode(locale)].append(handler._call(child))
> File "src/tv/xmltv.py", line 216, in _call
> return getattr(self,
> string.replace(node.name.encode(), '-', '_'))(node)
> File "src/tv/xmltv.py", line 102, in url
> return _ChannelHandler.url(self, node)
> TypeError: unbound method url() must be called with
> _ChannelHandler instance as first argument (got
> _ProgrammeHandler instance instead)
This is my bug.
I've attached a patch to fix it.
- --
James Oakley
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/NqG5Ktn0F7+/lLMRAlLZAKC5htW2WHuN808SrZveG3VaYUecNgCg1X6P
6cALZTTliLFojZHXrPrGyuU=
=a5sM
-END PGP SIGNATURE-
--- xmltv.py 2003-08-09 14:30:00.0 -0300
+++ xmltv.py 2003-08-10 16:47:08.0 -0300
@@ -105,10 +105,14 @@
return None
def icon(self, node):
-return _ChannelHandler.icon(self, node)
+data = {}
+for attr in (u'src', u'width', u'height'):
+if node.attrs.has_key(('', attr)):
+data[attr.encode(locale)] = _getxmlattr(node, attr)
+return data
def url(self, node):
-return _ChannelHandler.url(self, node)
+return node.textof()
def country(self, node):
return _readwithlang(node)
Re: [Freevo-devel] [ freevo-Bugs-776837 ] freevo has trouble parsing TV.xml from tv_grab_nl
Thanks James... I've added it to CVS... It worked on my end, but could someone try this out? Aubin On Sun, Aug 10, 2003 at 04:49:13PM -0300, James Oakley wrote: Content-Description: clearsigned data > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On July 24, 2003 06:48 am, SourceForge.net wrote: > > > result[child.name.encode(locale)].append(handler._call(child)) > > File "src/tv/xmltv.py", line 216, in _call > > return getattr(self, > > string.replace(node.name.encode(), '-', '_'))(node) > > File "src/tv/xmltv.py", line 102, in url > > return _ChannelHandler.url(self, node) > > TypeError: unbound method url() must be called with > > _ChannelHandler instance as first argument (got > > _ProgrammeHandler instance instead) > > This is my bug. > > I've attached a patch to fix it. > > - -- > James Oakley > [EMAIL PROTECTED] > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) > > iD8DBQE/NqG5Ktn0F7+/lLMRAlLZAKC5htW2WHuN808SrZveG3VaYUecNgCg1X6P > 6cALZTTliLFojZHXrPrGyuU= > =a5sM > -END PGP SIGNATURE- --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
