News Plugin (Rss, Atom) (1 Viewer)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #1
    The plugin has been fully integrated into MP2.
    For bug reports or feature requests please create a new thread in the appropriate forums.

    Hi,
    I started to write a small plugin that will allow reading news inside MediaPortal 2.

    The plugin has its own window to view all feeds and items and also features a workflow model that can be used to show a changing current item anywhere in the skin.
    You can add your own feeds in Settings.

    Git branch:
    https://github.com/MediaPortal/MediaPortal-2/tree/NewsPlugin

    Attached are binaries for the non devs ;) Just extract into the Plugins dir of your MP2 install.
    01_home.jpg 02_feeds.jpg 03_news_items_MP.jpg 04_news_details.jpg 05_news_items_heise.jpg 06_news_details.jpg

    Current default feeds, see wiki page please.
     
    Last edited by a moderator:

    Spragleknas

    Administrator
  • Team MediaPortal
  • December 21, 2005
    9,473
    1,822
    Located
    Norway Norway
    Country flag
    Great work!
    Sorry to say, it seems nothing happens when trying to enter it from homescreen....

    Logs attached. Using Reflexion.
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,130
    1,630
    Dresden / Munich / Maastricht
    Germany Germany
    I've tried to compile it own my own. When using the batch files the plugin is not build, yet.
    Attached you can find a patch which enables the plugin in release config.
    It also removes the mixed platform/any cpu configuration and is using the x86 only.

    I also can confirm that I have not default RSS feed. Maybe we could use
    Code:
    https://www.team-mediaportal.com/news/atom
    for this?
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #4
    Spragleknas, your log says:
    Code:
    System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files\Team MediaPortal\MP2-Client\Plugins\News\News.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
    File name: 'file:///C:\Program Files\Team MediaPortal\MP2-Client\Plugins\News\News.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
    which sounds like windows is preventing the dll from being loaded. Can you right-click it, go to properties and check if it somehow says "untrusted"? It sounds like what morpheus said here: https://forum.team-mediaportal.com/threads/onlinevideos-for-mediaportal-2-alpha.106275/page-2

    chefkoch:
    Thanks for the patch, will merge it. The Rss collecting is done in background - so might take a while. currently in starts only when you enter the news plugin and invokes an event. Did you try to exit it and enter again? There should be 4 feeds by default.
     

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,130
    1,630
    Dresden / Munich / Maastricht
    Germany Germany
    Okay, so far it's working quite nicely. I already created another request for the OnlineFacilities.

    Great work (y) ;)
    This "simple" plugin is also able to demonstrate the endless possibilities to design a list or a list item.
    There is no picture displayed when reading the news item. (3rd screenie)
    1.png 2.png 3.png

    Even after opening the plugin within Reflexion skin it took some a short time to load the feeds.
    If this time increases with more and more feeds, maybe the waiting cursor (animation) would help to show the user there is something going on.

    Here are a few screenies for Reflexion skin, of course it is not that nice and not optimized, yet, but at least it is working without additional skin files.
    r1.png r2.png r3.png r4.png

    As you can see the menu image is missing for the news plugin.

    @morpheus_xx There was already another case, where it was not easy to read the content in Reflexion skin. Would it be better to define a semi-transparant layer by default or only modify these screens explicitly when we notice the problem?

    @offbyone Thanks for your efforts and this plugin. I like the way the news items are displayed in the default skin a lot. :) (y)
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #7
    Thanks ;)
    The Item Details Screen is still work in progress and I'm trying to get the default listitems to display a bit nicer on Reflexion as well. Might not work as it has a different base resolution than the default skin. As fallback I'll come up with some easy ResourceWrapper for the height, which can easily be overriden with one line.

    For the next "release", the menu image for the home screen will also be added as well as a config section to add your feeds.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #8
    I am actually using the DateTimeConverter that is on the MP2 core - I guess that one does not take the MP language setting into account.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,399
    6,970
    Germany Germany
    Country flag
    @offbyone, is it ok that I do some small xaml refactorings? I would like to move some constants (i.e. Grid Height) to an own file, so Reflexion skin can override the values without changing the style.

    I will think about the readability of the news screen. The "default" skin uses a GroupBox around all content, but this would not fit Reflexion so well...
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    cbr954rr News and weather in Homescreen? General 2
    T [solved] Any idea where Channel 107 (DVB-T2) BBC News HD (and others!) have gone??? Installation, configuration support 12
    HTPCSourcer MP2 Standard News-Feeds General 3
    DarkOrje [solved] How can I integrate more news feed in MP2? General 5
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    Similar threads

























    Top Bottom