Plugin: TvWishList for MP2 (1 Viewer)

morpheus_xx

Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    Btw, literals in query should be avoided as much as possible. Please try to use bind variables...
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    • Thread starter
    • Moderator
    • #53
    I got the version control working, but MPExtended is connecting me to the MP1 SQL database. I have not found in MPExtended how to change the database e.g. a gentle.config.
    Morpheus, could you point me to the source code of your SlimTv.NativeProvider?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,387
    6,966
    Germany Germany
    Country flag
    Morpheus, could you point me to the source code of your SlimTv.NativeProvider?
    Do you mean the client side provider? It's here: https://github.com/MediaPortal/Medi...15/MediaPortal/Incubator/SlimTvNativeProvider. It's on client side the same for TVE3 and TVE3.5 on server side, as it communicates only with the MP2 server via UPnP

    Then on server side there are 2 sources of code:
    1. The MP2 plugin (https://github.com/MediaPortal/Medi...lease_15/MediaPortal/Incubator/SlimTvService3) which references the TVE3 core via nuget packages
    2. The TVE3 code comes from this branch: https://github.com/morpheusxx/MediaPortal-1/commits/FEAT_TVE3_Sqlite, because I needed to add Sqlite support and fixed few issues.
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    • Thread starter
    • Moderator
    • #55
    morpheus_xx, thanks! Unfortunately i need to start from scratch with my native Tv provider, so this will take longer. I had a very old version not using UPNP.
    But I can use your plugin as a base and will just need to modify it.
     

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    • Thread starter
    • Moderator
    • #56
    I made good progress on communication between TvServer and client plugin.
    However, I am struggling on the client plugin on a function which did work before:
    The .xaml file contains a listview definition by:

    <ListView Name="TestListView" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding SkinItemList}" SelectionChanged="{CommandStencil Source={StaticResource Edit_GUI_Model}, Path=FocusedItemChanged}" Style="{ThemeResource MenuListViewStyle}">
    <ListView.Resources>
    <CommandBridge x:Key="Menu_Command" Command="{Binding Path=Command,Mode=OneTime}"/>
    </ListView.Resources>
    </ListView>

    The method
    public void FocusedItemChanged(ListItem focusedListItem)

    is no more recognized. I see an error message:
    [2015-07-13 21:59:59,698] [11438 ] [InputMgr ] [WARN ] - CommandBaseMarkupExtension: Could not find method, could not execute command ({CommandStencil Source=MediaPortal.Plugins.TvWishListMP2.Models.Edit_GUI,Path=FocusedItemChanged})

    Any idea what i am doing wrong here?
     

    Attachments

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    • Thread starter
    • Moderator
    • #57
    I have completed the plugin, but the bad news is that I was not able to fix the problem in the previous post with the focused item in a listview.
    This means that it is no more possible to move up/down or delete the tvwishes on the main screen as well as display the information of a tvwish.

    I know for certain that this was working in the older versions of MP2 before.

    You can install the plugin (tvserver and client) by downloading and extracting Release.zip and running install.exe (I am not using yet the MP2 plugin installer). You need to select client MP2 and TV server MP2.

    I have also attached the latest source code version of the client program (TvWishListMP2.zip) including skin and defaultstyle definition as I am hoping to get some help on why the Path=FocusedItemChanged is no more working.
     

    Attachments

    huha

    Extension Developer
    January 3, 2008
    890
    556
    Germany Germany
    • Thread starter
    • Moderator
    • #59
    morpheus_xx, thanks a lot in advance!
    I am using the method public void FocusedItemChanged(ListItem focusedListItem) in all my 3 screens
    TvWishListMain_GUI.xaml
    TvWishListEdit_GUI.xaml
    TvWishListResult_GUI.xaml

    On the Main_GUI I have my own style defined for the listview items including the moveup, movedown and delete button.
    However, also on the Edit_GUI the method FocusedItemChanged cannot be found and for that screen I am using the default
    Style="{ThemeResource MenuListViewStyle}
    For none of the 3 screens the focus of a list view item can be detected.
     

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

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 3
    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 2
    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
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    Similar threads

























    Top Bottom