Plugin develop problem | Page 3

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
    THX, I'll do that


     
  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
    Hey sax, trying to play videos from NOVA fails:

    Code (Text):
    1. 2010-11-09 20:13:58.124091 [Warn.][OnlineVideos(36)]: [OnlineVideos]System.MissingMethodException: Method not found: 'System.String OnlineVideos.Sites.SiteUtilBase.GetWebData(System.String)'.
    2.    at OnlineVideos.Sites.NovaTVUtil.getUrl(VideoInfo video)
    3.    at OnlineVideos.Sites.SiteUtilBase.getMultipleVideoUrls(VideoInfo video)
    4.    at OnlineVideos.MediaPortal1.GUIOnlineVideos.<>c__DisplayClass35.<Play_Step1>b__31()
    5.    at OnlineVideos.MediaPortal1.Gui2UtilConnector.<>c__DisplayClassc.<ExecuteInBackgroundAndCallback>b__a()
    For POP TV I cannot even open a category, always saying "No videos found"
     
  4. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,803
    Likes Received:
    757
    Location:
    Nuenen
    Ratings:
    +1,122 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    I had that problem too, it's caused by a change in the core of onlinevideos. If you build a site-util against the current source-code, it doesn't work with the released 0.26 version.
    a quick workaround (for sax) is to replace
    Code (Text):
    1.  
    2. public static string GetRedirectedUrl(string url, string referer = null)
    3.  
    with
    Code (Text):
    1.  
    2.         public static string GetRedirectedUrl(string url)
    3.         {
    4.             return GetRedirectedUrl(url, null);
    5.         }
    6.  
    7.  
    8.         public static string GetRedirectedUrl(string url, string referer)
    9.  
    in siteutilbase.cs.
    then build your site-util and deploy it.
    That should do the trick
     
    • Like Like x 1
  5. 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
    Thanks, I don't have the source for the util, but hope that sax will see this soon!
     
  6. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    Slovenia Slovenia
    Hi,
    because I do not have time, I send you source code.
    Use and modify as you like :)

    SaX
     

    Attached Files:

    • FINAL.ZIP
      File size:
      3.3 KB
      Uploaded:
      November 10, 2010
      Views:
      56
    • Like Like x 1
  7. 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, fixed the util for NovaTV. POP TV is now moved to POPPLUS and it's a paid service :(

    Also added subcategories (for now they are listed in separate XML - until we have possibility to list them in OnlineVideoSites.xml ;) ).

    You need the util back sax? :)
     
  8. sax

    sax Portal Member

    Joined:
    March 26, 2010
    Messages:
    41
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    Slovenia Slovenia
    excellent,
    I just started to install Visual C#, set the environment and download new OnlineVideos SVN to check error.
    I found that I have installed the old version of plugin.
    I am grateful for your contribution.
    Can you send me source back.
    I'll removed POPTV because I do not want to pay service.
    If I had some time I will be adding another site Kiberpipa.org
    Thanks again for your contribution.

    SaX
     
  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
    Will post the util as soon as I update XML for it (the subcategories were listed in external file - not very nice, now I can add directly to OnlineVideoSites.xml, thanks to offbyone :) )

    So hang on for a day or two until I get back to work ;)
     
  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
    Hey sax,

    here is my work so far with Nova. You need latest OnlineVideos SVN to run it properly. I've fixed regexp's and links in configuration. If you look closely there are some comments in XML marked with TODO. I still need to update subcategories for those sections. All in all, it seems to be working fine :)
     

    Attached Files:

    • NOVA.rar
      File size:
      2.1 KB
      Uploaded:
      November 15, 2010
      Views:
      59
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!