[mythtv-users] question about news feed parsing

Vincent McIntyre vincent.mcintyre at gmail.com
Sun Apr 28 12:47:14 UTC 2013


Hi list,

(system: combined be+fe, no vdpau, mythbuntu 12.04.2 LTS, myth
v0.26.0-138-g69cd78b)

I am seeking some input in understanding an issue that I see in mythnews.
I have it set up to read an ABC news feed [1] and it does most of it fine;
grabs the xml, shows the top level descriptions.

The issue comes when I select a news item to read in full -
there is a long pause, around 20 seconds, and "nothing" happens.
I can't move around the screen with the remote during the 20 seconds,
then the screen blinks (perhaps a window appears and closes really fast,
ie < 0.3sec). Then I am back to the list of headlines for the feed.

Other news feeds (eg BBC, Reuters, 0.26-fixes) are just fine.
This feed _used_ to be fine, until a few months ago.
I watched what was happening in mythfrontend.log while trying to view
the full text of an item and it looks like an error in parsing the feed -
it is asking for a .jpeg file to be opened as a video stream?
Also the mismatch in sizes is real, when I wget the file being complained
about it is indeed 88502 bytes long.

My questions:
 - is there a known issue in mythnews with parsing <media:group> elements?
   A search of trac turns up only #9856 which looks unrelated.
   I checked my feeds that work and none have media:group elements.
 - I expect the xml must be validated by the publishers before it goes out,
   but does anyone see anything gravely amiss with it?

Cheers
Vince
---

[1] http://abc.net.au/news/feed/51120/rss.xml

The frontend.log

Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:1017 (TV) TV: Creating TV object
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: N
CoreContext mythmainwindow.cpp:2606 (PauseIdleTimer) Resuming idle
timer
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: N
CoreContext mythmainwindow.cpp:2601 (PauseIdleTimer) Suspending idle
timer
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:1232 (Init) TV: Created TvPlayWindow.
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:2155 (HandleStateChange) TV: Attempting to
change from None to WatchingVideo
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext streamingringbuffer.cpp:69 (OpenFile)
StreamRingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Trying http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg
(allow seeks: 1
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: E
CoreContext audio/audiooutputalsa.cpp:172 (GetPCMInfo) ALSA:
snd_pcm_info_get_card: Operation not permitted
Apr 28 10:42:14 mythbox mythlogserver: mythfrontend[1802]: N
CoreContext audioplayer.cpp:167 (ReinitAudio) AudioPlayer: Enabling
Audio
Apr 28 10:42:15 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext ringbuffer.cpp:1018 (Peek)
RingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Peek() requested 131072 bytes, but only returning 88502
Apr 28 10:42:15 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext mythplayer.cpp:936 (OpenFile) Player(11): OpenFile()
waiting on data
Apr 28 10:42:15 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext ringbuffer.cpp:1018 (Peek)
RingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Peek() requested 131072 bytes, but only returning 88502
Apr 28 10:42:15 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext mythplayer.cpp:936 (OpenFile) Player(11): OpenFile()
waiting on data
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext ringbuffer.cpp:1018 (Peek)
RingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Peek() requested 131072 bytes, but only returning 88502
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext mythplayer.cpp:936 (OpenFile) Player(11): OpenFile()
waiting on data
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext ringbuffer.cpp:1018 (Peek)
RingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Peek() requested 131072 bytes, but only returning 88502
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext mythplayer.cpp:936 (OpenFile) Player(11): OpenFile()
waiting on data
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: W
CoreContext ringbuffer.cpp:1018 (Peek)
RingBuf(http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg):
Peek() requested 131072 bytes, but only returning 88502
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: E
CoreContext mythplayer.cpp:932 (OpenFile) Player(11): OpenFile():
Could not read first 131072 bytes of
'http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg'
Apr 28 10:42:16 mythbox mythlogserver: mythfrontend[1802]: E
CoreContext mythplayer.cpp:2688 (StartPlaying) Player(11): Unable to
open video file.
Apr 28 10:42:36 mythbox mythlogserver: mythfrontend[1802]: E
CoreContext playercontext.cpp:472 (StartPlaying) playCtx:
StartPlaying() Failed to start player
Apr 28 10:42:36 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:2485 (HandleStateChange) TV: Main UI disabled.
Apr 28 10:42:36 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:403 (StartTV) TV: Entering main playback loop.
Apr 28 10:42:36 mythbox mythlogserver: mythfrontend[1802]: I
CoreContext tv_play.cpp:405 (StartTV) TV: Exiting main playback loop.
Apr 28 10:42:36 mythbox mythlogserver: mythfrontend[1802]: N
CoreContext mythmainwindow.cpp:2606 (PauseIdleTimer) Resuming idle
timer

The xml for the <item> I selected:

<item>
    <title>Canada &#039;appalled&#039; Sri Lanka chosen to host CHOGM</title>
    <link>http://www.abc.net.au/news/2013-04-28/canada-appalled-sri-lanka-chosen-to-host-chogm/4655530</link>
    <description>
        <![CDATA[
              <p>Canada says it is appalled Sri Lanka has been chosen
to host a meeting of Commonwealth leaders and demanded its government
do more to uphold human rights in the country.</p>
        ]]>
    </description>
    <pubDate>Sun, 28 Apr 2013 08:30:36 +1000</pubDate>
    <guid isPermaLink="true">http://www.abc.net.au/news/2013-04-28/canada-appalled-sri-lanka-chosen-to-host-chogm/4655530</guid>
    <category>Intergovernmental Organisations</category>
    <category>Government and Politics</category>
    <category>World Politics</category>
    <category>Human</category>
    <category>Law, Crime and Justice</category>
    <media:group>
    <media:description>Christine Lagarde, Stephen Harper, Julia
Gillard and David Cameron L-R) stand during two minutes of silence as
they visit the War Memorial in Seoul on November 11, 2010.
(Reuters)</media:description>
    <media:content
url="http://www.abc.net.au/news/image/2334828-16x9-940x529.jpg"
medium="image" type="image/jpeg" width="940" height="529"/>
      <media:content
url="http://www.abc.net.au/news/image/2334828-4x3-940x705.jpg"
medium="image" type="image/jpeg" width="940" height="705"/>
      <media:content
url="http://www.abc.net.au/news/image/2334828-3x2-940x627.jpg"
medium="image" type="image/jpeg" width="940" height="627"
isDefault="true"/>
      <media:content
url="http://www.abc.net.au/news/image/2334828-3x4-940x1253.jpg"
medium="image" type="image/jpeg" width="940" height="1253"/>
      <media:content
url="http://www.abc.net.au/news/image/2334828-1x1-1400x1400.jpg"
medium="image" type="image/jpeg" width="1400" height="1400"/>
      <media:thumbnail
url="http://www.abc.net.au/news/image/2334828-4x3-140x105.jpg"
width="140" height="105"/>
    </media:group>
</item>


More information about the mythtv-users mailing list