OnlineVideos 0.33 (19.09.2011) (25 Viewers)

Status
Not open for further replies.

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hm just checked and it's still working.
     

    Samaras

    Portal Member
    November 17, 2009
    12
    0
    47
    Colorado
    Home Country
    United States of America United States of America
    Is there anyway we can get all of revision3's shows? I like the new LandLineTV and WebZeros, which are not available with this plugin, also is there any way to get ******** to work? it does not work for me, it comes up with a codec error saying ......blahblahblah.html, so obvisouly it is trying to open a html file, has anyone found a fix for this?

    :D
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Is there anyway we can get all of revision3's shows? I like the new LandLineTV and WebZeros, which are not available with this plugin, also is there any way to get ******** to work? it does not work for me, it comes up with a codec error saying ......blahblahblah.html, so obvisouly it is trying to open a html file, has anyone found a fix for this?

    :D

    If you install 0.15 both these thing will work. Check the first post regularly ....
     

    Samaras

    Portal Member
    November 17, 2009
    12
    0
    47
    Colorado
    Home Country
    United States of America United States of America
    Is there anyway we can get all of revision3's shows? I like the new LandLineTV and WebZeros, which are not available with this plugin, also is there any way to get ******** to work? it does not work for me, it comes up with a codec error saying ......blahblahblah.html, so obvisouly it is trying to open a html file, has anyone found a fix for this?

    :D

    If you install 0.15 both these thing will work. Check the first post regularly ....


    Thanks ill do this
     

    DaBaSe

    MP Donator
  • Premium Supporter
  • November 4, 2009
    101
    7
    Home Country
    Germany Germany
    Hi Offbyone,

    some news before, i had ask you about some ESL-VODs. I will try to integrate it by myself. It is possible to make my own channel with rss feeds? Is there a manual for me?

    Can you give me some Info`s

    thx
    Dabase
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    No manual yet written. It's best to look at how other sites that are similar in the way to yours are done. Maybe you can use the generic site if the ESL-VOD has rss feeds for their content. Then no coding is required.
     

    Marky909

    Portal Member
    November 4, 2009
    12
    0
    Home Country
    Netherlands Netherlands
    Is it possible to add this Turbonick channel? I have some sort of python script for it, but i can't figure it out myself.
    See below

    chn_class.Channel.InitialiseVariables(self)
    self.guid = "8D4EBAE8-F3C6-11DD-92EE-F2FE55D89593"
    self.icon = "nickelodeonicon.png"
    self.iconLarge = "nickelodeonlarge.png"
    self.noImage = "nickelodeonimage.png"
    self.channelName = "Nickelodeon TurboNick"
    self.maxXotVersion = "3.2.0"
    self.channelDescription = "TurboNick afleveringen van Nickelodeon"
    self.moduleName = "chn_nickelodeon.py"
    self.mainListUri = "http://www.nickelodeon.nl/turbonick"
    self.baseUrl = "http://www.nickelodeon.nl"
    self.onUpDownUpdateEnabled = True
    self.sortOrder = 11

    self.contextMenuItems = []
    self.contextMenuItems.append(contextmenu.ContextMenuItem("Play using Mplayer", "CtMnPlayMplayer", itemTypes="video", completeStatus=True))
    self.contextMenuItems.append(contextmenu.ContextMenuItem("Play using DVDPlayer", "CtMnPlayDVDPlayer", itemTypes="video", completeStatus=True))

    self.requiresLogon = False

    self.episodeItemRegex = '<span[^>]+class="list_title"[^>]+>\W+<a[^>]+href="(/turbonick/programma/[^"]+)" title="([^"]+)">' # used for the ParseMainList
    self.videoItemRegex = '<a[^>]+href="(/turbonick/bekijk/[^"]+)"[^>+]title="([^"]+)">\W+<img[^>]+src="([^"]+)"[^>]+/>\W+</a>' # used for the CreateVideoItem
    # self.folderItemRegex = '<a href="\.([^"]*/)(cat/)(\d+)"( style="color:\s*white;"\s*)*>([^>]+)</a><br' # used for the CreateFolderItem
    self.mediaUrlRegex = '<param name="src" value="([^"]+)" />' # used for the UpdateVideoItem
    return True

    #==============================================================================
    # ContextMenu functions
    #==============================================================================
    def CtMnPlayMplayer(self, selectedIndex):
    item = self.listItems[selectedIndex]
    self.PlayVideoItem(item, "mplayer")

    def CtMnPlayDVDPlayer(self, selectedIndex):
    item = self.listItems[selectedIndex]
    self.PlayVideoItem(item,"dvdplayer")

    #==============================================================================
    def CreateEpisodeItem(self, resultSet):
    """
    Accepts an arraylist of results. It returns an item.
    """
    logFile.debug('starting CreateEpisodeItem for %s', self.channelName)

    item = mediaitem.MediaItem(resultSet[1], "%s%s" % (self.baseUrl, resultSet[0]))
    item.icon = self.icon
    item.complete = True
    return item

    #=============================================================================
    def CreateVideoItem(self, resultSet):
    """
    Accepts an arraylist of results. It returns an item.
    """
    logFile.debug('starting CreateVideoItem for %s', self.channelName)

    item = mediaitem.MediaItem(resultSet[1], "%s%s" % (self.baseUrl, resultSet[0]))

    item.thumbUrl = resultSet[2]
    item.icon = self.icon
    item.type = 'video'
    item.complete = False
    return item

    #=============================================================================
    def UpdateVideoItem(self, item):
    """
    Accepts an item. It returns an updated item. Usually retrieves the MediaURL
    and the Thumb! It should return a completed item.
    """
    logFile.info('starting UpdateVideoItem for %s (%s)', item.name, self.channelName)

    if item.thumbUrl != "":
    item.thumb = self.CacheThumb(item.thumbUrl)
    else:
    item.thumb = self.noImage

    data = uriHandler.Open(item.url, pb=False)

    info = common.DoRegexFindAll("var voteUrl = '/scripts/global/vote.php\?type=video&id=(\d+)';\W+var voteAvg\W*(\d+)", data)
    if len(info) < 1:
    logFile.error("Cannot find info and ID information")
    return item
    else:
    info = info[0]

    # get the rank
    item.rating = int(info[1])

    # get the RTMP url
    rtmpInfoUrl = "%s/feeds/turbonick/mediaGen.php?id=%s" % (self.baseUrl, info[0])
    rtmpData = uriHandler.Open(rtmpInfoUrl, pb=False)
    rtmpUrls = common.DoRegexFindAll("<src>(rtmp[^<]+)</src>" ,rtmpData)

    for rtmpUrl in rtmpUrls:
    item.AppendMediaListItem(rtmpUrl)

    item.complete = True
    logFile.debug("Media url: %s", item)
    return item
     

    krook1

    Portal Member
    July 27, 2007
    9
    0
    Home Country
    United States of America United States of America
    Re: OnlineVideos 0.15.0 07/12/2009

    I have a few mms links that I have configured as Channels. The site that provides these feeds, changes the mms link periodically. The new link can be obtained from a web page. Is it possible to scan a particular page for a "regular expression" and then use that to form a mms link??

    I know I may be asking for too much, but thought there may be other sites which do the same thing.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Re: OnlineVideos 0.15.0 07/12/2009

    I am working on another generic util (or may extend the current generic one) so that you can specify a regex to find links. Most other sites are made this way currently anyway.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom