OnlineVideos JSON parsing | Page 5

Discussion in 'OnlineVideos' started by howudodat, December 6, 2015.

  1. howudodat

    howudodat Portal Pro

    Joined:
    February 20, 2007
    Messages:
    75
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    United States of America United States of America
    1. The language is not configured in the site config, there's already over a hundred languages on the site, so the languages is actually the first level of the categories. hence the need to clear the cache. I cant find a way to make a site config entry as a list, even less likely multiple selection list. And in the case of our family, we want multiple languages shown as the top level as we speak English, French, Haitian Creole, Swahilli and are working on Lingala. (STRIKEOUT: I find that when I change languages (top level category) it doesn't re-query the subcategory. /STRIKEOUT for some reason I just tested this again and it is re-querying now...not sure what I changed, if it pops up again, I'll let you know.)
    2. That's what I figured, however the site has a combination of audio and video, any thought of making that an option in online videos, for sites that offer up both videos and music?
    3. Got it.
    4. Yes, I can turn them off with "L". For videos, Subtitles mode selection is set to "Subtitles will only display forced subtitles". I dont believe they are forced.
    When I toggle them, they are listed as: ENG [CORE MEDIA SUBTITLE (TX3G)] 1/1
    And a new question:
    5. Any way to make a certain channel be a shortcut on the home screen?


     
    Last edited: June 9, 2016
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. 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
    Getting a list of entries in the context menu would be possible with an enum. But if you need to query the website for the entries, then you need to create a custom context menu (for an example see
    SiteUtilProject: offbyone, class YouTubeV3Util, method: GetContextMenuEntries)
    But the context menu does not allow multi-selection - so far this was not needed :)
    You can simply create a string field and therefore allow the user to manually enter a comma separated list that you manually parse in your code.
    If you want to always be called to create categories again, never set the CategoriesDiscovered to true.This goes for subcategories as well.

    Allowing OnlineVideos to play audio only files would be a pretty big task, as there is a lot of things to change and consider for that.I don't have the time for this at the moment.

    If you want your site as shortcut on the MediaPortal Home screen you need to edit the skin or use a "BasicHomeEditor" that comes with some skins. It is possible as OnlineVideos can be called with a startup parameter.
     
    • Informative Informative x 1
  4. howudodat

    howudodat Portal Pro

    Joined:
    February 20, 2007
    Messages:
    75
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    United States of America United States of America
    ok, for now I am leaving the languages in the main level of categories. I have 2 config options one true/false to show all languages and the other a string of languages to filter on.
    I have filtered out audio for the moment
    Now there are two remaining issues:
    1. subtitles, any way to force them off?
    2. There is a section that just does streaming (streams a video, then another then another). Not sure how I'll attack this one yet.
     
  5. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    752
    Location:
    Nuenen
    Ratings:
    +1,115 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Just out of curiosity, which site is it?
     
  6. howudodat

    howudodat Portal Pro

    Joined:
    February 20, 2007
    Messages:
    75
    Likes Received:
    2
    Ratings:
    +2 / 0
    Home Country:
    United States of America United States of America
    the site is tv.jw.org

    so for streaming the data is basically a list of files, current file, current time, all in json. It would seem to me the steps (if possible) would be:
    Code (Text):
    1. foreach video in videolist
    2.     add video to playlist
    3. set playlist to auto repeat
    4. start playing #1, seek to current time
    I have no idea how to make this happen.
     
  7. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,796
    Likes Received:
    752
    Location:
    Nuenen
    Ratings:
    +1,115 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    You can create multipart videos (example: see southpark), it will present itself as one video in the list.
    An alternative is using the submenu (F9) to select "Play all"
    The only thing missing is the repeat...
     
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!