Plugin develop problem | Page 2

Discussion in 'OnlineVideos' started by sax, May 14, 2010.

  1. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    Slovenia Slovenia
    Final I was able to get a working version.
    Now I want to know how to publish code?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    Glad to hear! :)

    Could you provide a patch file for latest OnlineVideos SVN?
     
  4. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    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).
     
  5. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    Slovenia Slovenia
    SilentExcept
    I can send you dll, xml files and instruction to test.
     
  6. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    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..
     
  7. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    Slovenia Slovenia
    Here is my dll and xml for Naslovnica - NOVA TV and for Izberi in poglej - poptv.si.

    Put *.dll and *.pdb in to Mediaportal -> plugin/Windows/OnlineVideos folder and import xml through Mediaportal Configuration -> OnlineVideos -> import Sites.

    Please tell me if this works.
     

    Attached Files:

    • NovaTV.zip
      File size:
      30.6 KB
      Uploaded:
      May 23, 2010
      Views:
      64
    • Like Like x 1
  8. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    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 (Text):
    1.     <Site name="POP TV" util="NovaTV" agecheck="false" enabled="true" lang="sl">
    2.       <Configuration>
    3.         <item key="dynamicCategoryUrlDecoding"><![CDATA[False]]></item>
    4.         <item key="dynamicSubCategoryUrlDecoding"><![CDATA[False]]></item>
    5.         <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>
    6.         <item key="videoUrlDecoding"><![CDATA[False]]></item>
    7.         <item key="nextPageRegEx"><![CDATA[<span\sclass='next'><a\shref='(?<url>[^']+)'\s>]]></item>
    8.         <item key="nextPageRegExUrlDecoding"><![CDATA[True]]></item>
    9.         <item key="prevPageRegEx"><![CDATA[<span\sclass='previous'><a\shref='(?<url>[^']+)'\s>]]></item>
    10.         <item key="prevPageRegExUrlDecoding"><![CDATA[True]]></item>
    11.         <item key="baseUrl"><![CDATA[http://poptv.si/]]></item>
    12.         <item key="forceUTF8Encoding"><![CDATA[True]]></item>
    13.       </Configuration>
    14.       <Categories>
    15.         <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>
    16.         <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>
    17.         <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>
    18.         <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>
    19.         <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>
    20.         <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>
    21.         <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>
    22.         <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>
    23.       </Categories>
    24.     </Site>
    25.     <Site name="Videoteka NOVA" util="NovaTV" agecheck="false" enabled="true" lang="hr">
    26.       <Configuration>
    27.         <item key="dynamicCategoriesRegEx"><![CDATA[]]></item>
    28.         <item key="dynamicCategoryUrlDecoding"><![CDATA[False]]></item>
    29.         <item key="dynamicSubCategoryUrlDecoding"><![CDATA[False]]></item>
    30.         <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>
    31.         <item key="videoUrlDecoding"><![CDATA[False]]></item>
    32.         <item key="nextPageRegEx"><![CDATA[<span\sclass='next'><a\shref='(?<url>[^']+)'\s>Dalje]]></item>
    33.         <item key="nextPageRegExUrlDecoding"><![CDATA[True]]></item>
    34.         <item key="prevPageRegEx"><![CDATA[<span\sclass='previous'><a\shref='(?<url>[^']+)'\s>previous]]></item>
    35.         <item key="prevPageRegExUrlDecoding"><![CDATA[True]]></item>
    36.         <item key="baseUrl"><![CDATA[http://videoteka.novatv.hr]]></item>
    37.         <item key="forceUTF8Encoding"><![CDATA[True]]></item>
    38.       </Configuration>
    39.       <Categories>
    40.         <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>
    41.         <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>
    42.         <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>
    43.         <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>
    44.         <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>
    45.         <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>
    46.         <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>
    47.         <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>
    48.         <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>
    49.       </Categories>
    50.     </Site>
     
  9. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    Home Country:
    Croatia Croatia
    this is the error i get:

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

    I see you have changed site XMLs.. Let me try with those..
     
  10. SilentException
    • Premium Supporter

    SilentException Retired Team Member

    Joined:
    October 27, 2008
    Messages:
    2,617
    Likes Received:
    1,125
    Gender:
    Male
    Location:
    Rijeka, Croatia
    Ratings:
    +1,129 / 0
    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!
     
  11. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    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.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!