Plugin develop problem (1 Viewer)

sax

Portal Member
March 26, 2010
41
2
Home Country
Slovenia Slovenia
THX, I'll do that
 

SilentException

Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Hey sax, trying to play videos from NOVA fails:

    Code:
    2010-11-09 20:13:58.124091 [Warn.][OnlineVideos(36)]: [OnlineVideos]System.MissingMethodException: Method not found: 'System.String OnlineVideos.Sites.SiteUtilBase.GetWebData(System.String)'.
       at OnlineVideos.Sites.NovaTVUtil.getUrl(VideoInfo video)
       at OnlineVideos.Sites.SiteUtilBase.getMultipleVideoUrls(VideoInfo video)
       at OnlineVideos.MediaPortal1.GUIOnlineVideos.<>c__DisplayClass35.<Play_Step1>b__31()
       at OnlineVideos.MediaPortal1.Gui2UtilConnector.<>c__DisplayClassc.<ExecuteInBackgroundAndCallback>b__a()

    For POP TV I cannot even open a category, always saying "No videos found"
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,579
    2,967
    Nuenen
    Home Country
    Netherlands Netherlands
    Hey sax, trying to play videos from NOVA fails:

    Code:
    2010-11-09 20:13:58.124091 [Warn.][OnlineVideos(36)]: [OnlineVideos]System.MissingMethodException: Method not found: 'System.String OnlineVideos.Sites.SiteUtilBase.GetWebData(System.String)'.
       at OnlineVideos.Sites.NovaTVUtil.getUrl(VideoInfo video)
       at OnlineVideos.Sites.SiteUtilBase.getMultipleVideoUrls(VideoInfo video)
       at OnlineVideos.MediaPortal1.GUIOnlineVideos.<>c__DisplayClass35.<Play_Step1>b__31()
       at OnlineVideos.MediaPortal1.Gui2UtilConnector.<>c__DisplayClassc.<ExecuteInBackgroundAndCallback>b__a()

    For POP TV I cannot even open a category, always saying "No videos found"

    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:
    public static string GetRedirectedUrl(string url, string referer = null)
    with
    Code:
            public static string GetRedirectedUrl(string url)
            {
                return GetRedirectedUrl(url, null);
            }
    
    
            public static string GetRedirectedUrl(string url, string referer)

    in siteutilbase.cs.
    then build your site-util and deploy it.
    That should do the trick
     

    sax

    Portal Member
    March 26, 2010
    41
    2
    Home Country
    Slovenia Slovenia
    Hi,
    because I do not have time, I send you source code.
    Use and modify as you like :)

    SaX
     

    Attachments

    • FINAL.ZIP
      3.3 KB

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    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? :)
     

    sax

    Portal Member
    March 26, 2010
    41
    2
    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
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    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 ;)
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    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 :)
     

    Attachments

    • NOVA.rar
      2.1 KB

    Users who are viewing this thread

    Top Bottom