Plugin develop problem (1 Viewer)

sax

Portal Member
March 26, 2010
41
2
Slovenia Slovenia
Final I was able to get a working version.
Now I want to know how to publish code?
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    You can publish the new site, if you put it into your own dll. When that is working In MediaPortal, go to Config of OnlineVideos, in there select your new site and press submit site (button on top of the sitelist).
     

    sax

    Portal Member
    March 26, 2010
    41
    2
    Slovenia Slovenia
    SilentExcept
    I can send you dll, xml files and instruction to test.
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    Yes, you can do that also.. :) Just to test..
    Patch file would be better tho, because i always use latest SVN compile of OnlineVideos..
     

    sax

    Portal Member
    March 26, 2010
    41
    2
    Slovenia Slovenia
    I've tried to publish dll (new site) and I get the following error:
    "Invalid xml for site!"
    although site working ok!


    here is xml files for POP Tv and NOVA TV:

    Code:
        <Site name="POP TV" util="NovaTV" agecheck="false" enabled="true" lang="sl">
          <Configuration>
            <item key="dynamicCategoryUrlDecoding"><![CDATA[False]]></item>
            <item key="dynamicSubCategoryUrlDecoding"><![CDATA[False]]></item>
            <item key="videoListRegEx"><![CDATA[<div\sclass="thumb">\s+<div\sclass="img">\s+<a[^>]*><img[^>]*></a>\s+<a\shref="(?<VideoUrl>[^"]+)"><img\ssrc="(?<ImageUrl>[^"]+)"[^>]*></a>\s+</div>\s+<h2><a[^>]*>(?<Title>[^<]+)]]></item>
            <item key="videoUrlDecoding"><![CDATA[False]]></item>
            <item key="nextPageRegEx"><![CDATA[<span\sclass='next'><a\shref='(?<url>[^']+)'\s>]]></item>
            <item key="nextPageRegExUrlDecoding"><![CDATA[True]]></item>
            <item key="prevPageRegEx"><![CDATA[<span\sclass='previous'><a\shref='(?<url>[^']+)'\s>]]></item>
            <item key="prevPageRegExUrlDecoding"><![CDATA[True]]></item>
            <item key="baseUrl"><![CDATA[http://poptv.si/]]></item>
            <item key="forceUTF8Encoding"><![CDATA[True]]></item>
          </Configuration>
          <Categories>
            <Category xsi:type="RssLink" name="Informativne oddaje">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=15358&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Zabava">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=35803&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Pogovorne oddaje">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=35836&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Serije">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=15359&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Prosti čas">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=35839&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Glasba">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=15361&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Spletne strani">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=35800&amp;channel=&amp;sbmt=Išči</Category>
            <Category xsi:type="RssLink" name="Šport">http://poptv.si/search?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=15362&amp;channel=&amp;sbmt=Išči</Category>
          </Categories>
        </Site>
        <Site name="Videoteka NOVA" util="NovaTV" agecheck="false" enabled="true" lang="hr">
          <Configuration>
            <item key="dynamicCategoriesRegEx"><![CDATA[]]></item>
            <item key="dynamicCategoryUrlDecoding"><![CDATA[False]]></item>
            <item key="dynamicSubCategoryUrlDecoding"><![CDATA[False]]></item>
            <item key="videoListRegEx"><![CDATA[<div\sclass="thumb">\s+<div\sclass="img">\s+<a[^>]*><img[^>]*></a>\s+<a\shref="(?<VideoUrl>[^"]+)"><img\ssrc="(?<ImageUrl>[^"]+)"[^>]*></a>\s+</div>\s+<h2><a[^>]*>(?<Title>[^<]+)]]></item>
            <item key="videoUrlDecoding"><![CDATA[False]]></item>
            <item key="nextPageRegEx"><![CDATA[<span\sclass='next'><a\shref='(?<url>[^']+)'\s>Dalje]]></item>
            <item key="nextPageRegExUrlDecoding"><![CDATA[True]]></item>
            <item key="prevPageRegEx"><![CDATA[<span\sclass='previous'><a\shref='(?<url>[^']+)'\s>previous]]></item>
            <item key="prevPageRegExUrlDecoding"><![CDATA[True]]></item>
            <item key="baseUrl"><![CDATA[http://videoteka.novatv.hr]]></item>
            <item key="forceUTF8Encoding"><![CDATA[True]]></item>
          </Configuration>
          <Categories>
            <Category xsi:type="RssLink" name="Informativne emisije ">http://videoteka.novatv.hr/pretraga?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=4&amp;channel=&amp;sbmt=Pretraga</Category>
            <Category xsi:type="RssLink" name="Serije ">http://videoteka.novatv.hr/pretraga?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=6&amp;channel=&amp;sbmt=Pretraga</Category>
            <Category xsi:type="RssLink" name="Mini TV ">http://videoteka.novatv.hr/pretraga?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=485&amp;channel=&amp;sbmt=Pretraga</Category>
            <Category xsi:type="RssLink" name="Sport.dnevnik.hr">http://videoteka.novatv.hr/pretraga?type_id=27274&amp;parent_id=27274&amp;group=true&amp;order=date</Category>
            <Category xsi:type="RssLink" name="Dnevnik.hr">http://videoteka.novatv.hr/pretraga?type_id=27263&amp;parent_id=27263&amp;group=true&amp;order=date</Category>
            <Category xsi:type="RssLink" name="Zadovoljna.com.hr">http://videoteka.novatv.hr/pretraga?type_id=27270&amp;parent_id=27270&amp;group=true&amp;order=date</Category>
            <Category xsi:type="RssLink" name="Showbizz">http://videoteka.novatv.hr/pretraga?type_id=30924&amp;parent_id=30924&amp;group=true&amp;order=date</Category>
            <Category xsi:type="RssLink" name="Emisije i magazini ">http://videoteka.novatv.hr/pretraga?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=40878&amp;channel=&amp;sbmt=Pretraga</Category>
            <Category xsi:type="RssLink" name="Svi videi ">http://videoteka.novatv.hr/pretraga?group=false&amp;go=Search&amp;keyword=&amp;date=&amp;parent_id=&amp;channel=&amp;sbmt=Pretraga</Category>
          </Categories>
        </Site>
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    this is the error i get:

    Code:
    2010-05-24 11:35:25.352409 [ERROR][MPMain(1)]: OnMessage exception:System.ArgumentNullException: Value cannot be null.
    Parameter name: pattern
       at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
       at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options)
       at OnlineVideos.Sites.ScrewattackUtil.Initialize(SiteSettings siteSettings)
       at OnlineVideos.SiteUtilFactory.CreateFromShortName(String name, SiteSettings settings)
       at OnlineVideos.OnlineVideoSettings.BuildSiteList()
       at OnlineVideos.GUIOnlineVideos.LoadSettings()
       at OnlineVideos.GUIOnlineVideos.OnPageLoad()
       at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)

    I see you have changed site XMLs.. Let me try with those..
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Croatia Croatia
    Country flag
    OK, Videoteka NOVA works! Awesome work man :)

    Few suggestions:

    * Rename Videoteka NOVA to NOVA TV Videoteka
    * Would be nice if you pulled the dates and descriptions from the sites (useful for Dnevnik, Vrijeme, Vijesti but others too)..
    * Perhaps it would be possible to organize in subcategories (for example for Serije it would be Nasa mala klinika, and others)

    Thanks!
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,981
    3,703
    Stuttgart
    Germany Germany
    Country flag
    You need to supply a description that tells something about you site. I forced that attribute, because other people who brwose through the sites, will need some more info what this site actually does or from where it can be used.
     

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

    OP Similar threads Forum Replies Date
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    M Installing Plugins Newcomers Forum 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 10
    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