1

RSS Title and Description display



Is it possible to have an RSS ticker feed display both the title field and the description field at the same time on a HD210? Currently using BrightAuthor 2.3.0.57 with firmware Version 3.7.44.

5 comments

  • 0
    Avatar
    RokuLyndon


    Yes, but we would need to modify the autorun.brs script that's part of yoru brightauthor published files.

    Currently the unit only gets the description and pushes it. WE would need to also Get the title and add it to the front of the string that gets pushed.
  • 0
    Avatar
    peruna99


    In past I recall adding something like this in the autorun:

    zone.widget.PushString(article.GetTitle() +" : " + article.GetDescription())

    However not sure if that is correct modification with current version of firmware/brightauthor I'm using on these HD210 and where I'd need to place it in the Autorun if it would even work.
  • 0
    Avatar
    RokuLyndon


    description = article.GetDescription()

    This is the line you want to find, and change to this:

    description = article.GetTitle() + " : " + article.GetDescription()
  • 0
    Avatar
    Oskomera

    Hello, I tried this but it doesn't work at my hd210, this is the complete code:

     

       if event.GetResponseCode() = 200 then     m.stateMachine.rssItem.rssParser = CreateObject("roRssParser")     m.stateMachine.rssItem.rssParser.ParseFile(m.rssFileName$)     DeleteFile(m.rssFileName$)          if type(m.stateMachine.rssItem.articles) <> "roArray" then      m.stateMachine.rssItem.articles = CreateObject("roArray", 1, true)     endif          m.stateMachine.rssItem.articles.Clear()              article = m.stateMachine.rssItem.rssParser.GetNextArticle()     while type(article) = "roRssArticle"      description = article.GetTitle() + " : " + article.GetDescription()      if m.stateMachine.rssItem.isTwitterFeed and m.bsp.stripTwitterUserNames and m.stateMachine.rssItem.twitterUserName$ <> "" then       description = Mid(description, len(m.stateMachine.rssItem.twitterUserName$))      endif      m.stateMachine.rssItem.articles.Push(description)      article = m.s

     

    Does someone know how to fix this?

  • 0
    Avatar
    Lyndon

    YOu don't see the title or the change causes a problem with the autorun? You edited the script directly on the sd card, or you attached it to your brightauthor project? which brightauthor version are you using?

Please sign in to leave a comment.