GNOME Bugzilla – Bug 559146
totem-plparser parsing error on .asx files: "couldn't be opened in _get_mime_type_with_data: 'Operation not supported'"
Last modified: 2014-11-05 12:41:45 UTC
Please describe the problem: Looks like a plparse problem when dealing with .asx file or mimetype. I'm following the script to test (plparse.py) and the output of its execution. In an Mandriva 2008.1 image it works fine (totem-pl-parser-2.22.1-3mdv2008.1). I'm using a Mandriva 2009.0 with default packages (updated) installed. #plparse.py import totem.plparser import gobject url = "http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx" parser = totem.plparser.Parser() parser.set_property('recurse', True) parser.set_property('debug', True) def parsed(parser, urls): print '>>>>', parser, urls def entry_parsed(parser, foo, bar): print '<<<<<<<<<<', foo, bar parser.connect('playlist-ended', parsed) parser.connect('entry-parsed', entry_parsed) print parser.parse(url, False) loop = gobject.MainLoop() loop.run() #end plparse.py Steps to reproduce: 1. run python plparser.py 2. see output Actual results: 2009.0: output # python plparse.py _get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx' returned 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' couldn't be opened in _get_mime_type_with_data: 'Operation not supported' <enum TOTEM_PL_PARSER_RESULT_UNHANDLED of type TotemPlParserResult> Expected results: 2008.1: output #python /home/jwbruno/tmp/plparse.py _get_mime_type_for_name for 'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' returned 'audio/x-ms-asx' URL 'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' is dual type 'audio/x-ms-asx' URL 'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' was opened successfully in _get_mime_type_with_data: _get_mime_type_for_name for 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' returned 'application/octet-stream' URL 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' was opened successfully in _get_mime_type_with_data: _get_mime_type_with_data for 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' returned 'video/x-ms-asf' URL 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' is dual type 'video/x-ms-asf' <<<<<<<<<< mmsh://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000&MSWMExt=.asf <gpointer at 0x820e800> _get_mime_type_for_name for 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' returned 'application/octet-stream' URL 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' was opened successfully in _get_mime_type_with_data: _get_mime_type_with_data for 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' returned 'video/x-ms-asf' URL 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' is dual type 'video/x-ms-asf' <<<<<<<<<< mmsh://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000&MSWMExt=.asf <gpointer at 0x820e828> >>>> <totem.plparser.Parser object at 0x8192824 (TotemPlParser at 0x8209a00)> http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx <enum TOTEM_PL_PARSER_RESULT_SUCCESS of type TotemPlParserResult> Does this happen every time? yes Other information: Original report in: https://qa.mandriva.com/show_bug.cgi?id=45412 Please let me know if there's something I can do to improve your tests, Thanks in advance, Bruno.
This seems like a problem in your gvfs setup. Please use test-parser as shipped in the original sources for your tests. $ ./test-parser -d http://www.radios.com.br/asx/102braga-br.asx ###################### parsing ################ _get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx' returned 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' was opened successfully in _get_mime_type_with_data: URL 'mms://overserver3000.com/fm102' is MMS, RTSP, PNM or ICY, not a playlist added URI 'mms://overserver3000.com/fm102' You should also at least mention the version of totem-pl-parser you're using...
(In reply to comment #1) > This seems like a problem in your gvfs setup. Please use test-parser as shipped > in the original sources for your tests. > > $ ./test-parser -d http://www.radios.com.br/asx/102braga-br.asx > ./test-parser -d http://www.radios.com.br/asx/102braga-br.asx ###################### parsing ################ _get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx' returned 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type 'audio/x-ms-asx' URL 'http://www.radios.com.br/asx/102braga-br.asx' couldn't be opened in _get_mime_type_with_data: 'Operation not supported' url 'http://www.radios.com.br/asx/102braga-br.asx' unhandled > You should also at least mention the version of totem-pl-parser you're using... > I'm using: libtotem-plparser12-2.24.1-2.1mdv2009.0 libtotem-plparser-mini12-2.24.1-2.1mdv2009.0 Gvfs is: gvfs-1.0.1-2mdv2009.0 libgvfs0-1.0.1-2mdv2009.0
It fails on g_file_read() for that file.
Seems to be a problem with the http backend: gvfs-cat http://www.radios.com.br/asx/102braga-br.asx gvfs-cat: http://www.radios.com.br/asx/102braga-br.asx: error opening file: Operation not supported
*** Bug 563367 has been marked as a duplicate of this bug. ***
This is an old bug, I can't reproduce. If you still see it with current gvfs versions, please reopen with reproduction details.