Dmax.it videoUrl help (1 Viewer)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hm - I don't see any new site in the list, did you select (only) your site before pressing publish?
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    I used the name dmax and it didn't work, maybe it's used but someone else, now I changed the name in dmax.it and it work.
    Thank you again guys!

    Ps: is there a way to say that only some categories have a sbcategories? I wrote a c# util but it is a slow solution:

    Code:
     public override int DiscoverDynamicCategories()
    		{
    			int result = base.DiscoverDynamicCategories();
     
    			if (Settings.Categories.Count > 0 && regEx_dynamicSubCategories != null)
    			{
    				for (int i = 0; i < Settings.Categories.Count; i++)
    					if (!(Settings.Categories[i] is Group))
    					{
    						string strSiteSource = GetWebData(((RssLink)Settings.Categories[i]).Url);
    						if (!strSiteSource.Contains("<div id=\"seasons\">"))
    						{
    							Settings.Categories[i].HasSubCategories = false;
    						}					   
     
    					}
    			}
    			return result;
    		}
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Well it is slow because you are doing a webrequest for every category ;)
    If you do not know from the start if a category will have subcategories or not, performance wise it is better to say every category has subcategories, then override DiscoverSubcategories, do the webrequest in there and use a single "All" subcategory for the videos in that.
     

    Users who are viewing this thread

    Top Bottom