Plugin develop problem (1 Viewer)

sax

Portal Member
March 26, 2010
41
2
Home Country
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,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    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
    Home Country
    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
    Home Country
    Croatia Croatia
    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
    Home Country
    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
    Home Country
    Croatia Croatia
    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
    Home Country
    Croatia Croatia
    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,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    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

    Top Bottom