OnlineVideos 0.33 (19.09.2011) (1 Viewer)

Status
Not open for further replies.

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    AW: OnlineVideos 0.28 (13.02.2011)

    You cannot play a link to an SWF! You have to find the video behind it (flv, mp4, ...).
     

    ViktorA

    Portal Member
    August 11, 2009
    10
    0
    Home Country
    Russian Federation Russian Federation
    Re: OnlineVideos 0.28 (13.02.2011)

    On this site there are no links on .flv or .mp4 files,
    you can see this link on page with link on video:

    link_on_page_with_video


    finally i can use only this code for playing video:

    Code:
    <link rel="video_src" href="http://www.ivi.ru/video/player/?videoId=9855&autoStart=1"/>

    in windows media player -> File-> Open URL i paste http://www.ivi.ru/video/player/?videoId=9855&autoStart=1 and video normally playing.

    GenericSiteCreator_VideoList.jpg


    GenericSiteCreator_VideoURL.jpg


    But i can not open WMP from MediaPortal, video playing by internal player,
    maybe i do something wrong?
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: OnlineVideos 0.28 (13.02.2011)

    As you can see in the bottom of Windows Mediaplayer: there is a time-bar, a "HQ" logo, volume slider etc. So this is defenitely not a video-file that is playing, it's a flashplayer that is displayed in windows mediaplayer.

    You have to dig deeper to get to the url of the video-file
     

    SpudR

    Retired Team Member
  • Premium Supporter
  • July 27, 2007
    2,657
    718
    Yorkshire, UK
    Home Country
    England England
    Re: OnlineVideos 0.28 (13.02.2011)

    That file is this:
    <embed width="100%" height="100%" name="plugin" src="http://www.ivi.ru/images/da/player1.81.swf?_isB2C=1&amp;videoId=9855&amp;autoStart=0" type="application/x-shockwave-flash">
    Note the SWF bit
    NOT going to work unless you can find the original file :)
     

    ViktorA

    Portal Member
    August 11, 2009
    10
    0
    Home Country
    Russian Federation Russian Federation
    Re: OnlineVideos 0.28 (13.02.2011)

    That file is this:
    <embed width="100%" height="100%" name="plugin" src="http://www.ivi.ru/images/da/player1.81.swf?_isB2C=1&amp;videoId=9855&amp;autoStart=0" type="application/x-shockwave-flash">
    Note the SWF bit
    NOT going to work unless you can find the original file :)

    you are right, it is SWF, i can see from my firewall, that original file located there:

    Code:
    http://f5.vcp.digitalaccess.ru/flv-hi/661135a5ce8ebc2db30ddd08b99e5794

    but i don't know how to obtain link to original file ...

    may be you can help me get right way ?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Re: OnlineVideos 0.28 (13.02.2011)

    There must be some request from the website that can link the "videoId=9855" parameter to that file url. Check the requests with HTTPHeaders plugin in Firefox or some other method you prefer.
     

    ViktorA

    Portal Member
    August 11, 2009
    10
    0
    Home Country
    Russian Federation Russian Federation
    Re: OnlineVideos 0.28 (13.02.2011)

    i collected some information and post it there:

    i have basik link:

    Code:
    http://www.ivi.ru/video/player/?videoId=35794&autoStart=1

    i have decryption HTML headers:

    Code:
    http://api.digitalaccess.ru/api/json/?r=683.671388309449
    
    POST /api/json/?r=683.671388309449 HTTP/1.1
    Host: api.digitalaccess.ru
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://www.ivi.ru/images/da/player1.81.swf?_isB2C=1&
    Content-type: application/x-www-form-urlencoded
    FlashAuth: Basic Zmxhc2hfcGxheWVyOmZsYXNoX3BsYXllcg==
    Content-length: 69
    
    {"params":["35794",{"site":1}],"method":"da.content.content_watched"}
    HTTP/1.1 200 OK
    Server: nginx
    Date: Sun, 20 Feb 2011 18:01:29 GMT
    Content-Type: text/json
    Connection: keep-alive
    Content-Length: 35

    and i have found plugin for some media player (linux-based ) which can obtain right link on file:

    Code:
    #!/bin/sh
    #
    #   http://code.google.com/media-translate/
    #   Copyright (C) 2010  Serge A. Timchenko
    #
    #   This program is free software: you can redistribute it and/or modify
    #   it under the terms of the GNU General Public License as published by
    #   the Free Software Foundation, either version 3 of the License, or
    #   (at your option) any later version.
    #
    #   This program is distributed in the hope that it will be useful,
    #   but WITHOUT ANY WARRANTY; without even the implied warranty of
    #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #   GNU General Public License for more details.
    #
    #   You should have received a copy of the GNU General Public License
    #   along with this program. If not, see <http://www.gnu.org/licenses/>.
    #
    
    # Translate CGI module
    # 'ivi.ru' plug-in
    #
    # version: 1.2 10.12.2010 21:21
    #
    # http://www.ivi.ru/video/view/?id=2756
    # http://france.ivi.ru/movie.php?id=2490
    #
    # options:
    #   HD:[0|1]
    #
    # required CURL
    
    if echo "${arg_url}" | grep -q -s '\(www\.\|france\.\)*ivi\.ru/\(video/view/\|movie\.php\)?id=.*$'; then 
    
      get_opt "HD"
      [ -z "$opt" ] && opt=`sed -n '6p' $RSSCONF 2>/dev/null`
      [ -z "$opt" ] && opt=$IVI_HD
      case $opt in
        yes|Yes|YES|1)
          hdc='hi'
        ;;
        *)
          hdc='lo'
        ;;
      esac
      
      host_response=`$MSDL -q -o ${TMPFILE} -p http --useragent "${USERAGENT}" "${arg_url}" 2>&1`
      if [ -f ${TMPFILE} ]; then
        local video_id=`grep -i "'flashvars':" ${TMPFILE} | awk '{match($0, /"videoId": *([0-9]+)/, arr);print arr[1];}' | urldecode`
        rm -f $TMPFILE
        
        host_response=`$CURL -s -o "${TMPFILE}" --user-agent "${USERAGENT}" --data-ascii "{\"method\":\"da.content.get\",\"params\":[\"${video_id}\",{\"site\":1}]}" --referer "http://www.ivi.ru/images/da/skin1.64.swf?" --header "FlashAuth: Basic Zmxhc2hfcGxheWVyOmZsYXNoX3BsYXllcg=="  http://api.digitalaccess.ru/api/json/ 2>&1`
        
        if [ -f ${TMPFILE} ]; then
          stream_type='video/x-flv'
          server_type='ivi'
          stream_url=`sed "s/.*files\": \[//;s/\].*//;s/}, *{/}\n{/g" ${TMPFILE} | awk "/FLV-${hdc}/"' {match($2, /\"(.*)\".*$/, arr); print arr[1];}'`
          protocol=`echo "$stream_url" | sed -e 's/:\/\/.*$//`
          icy_name=`sed 's/.*"title": "//;s/".*//g' ${TMPFILE} | unitohtml | $XCODE -s -l | $TOUTF8`
          rm -f $TMPFILE
        fi
      fi  
      return $RC_OK
    fi
    
    return $RC_FAIL

    and i know right link on file:

    Code:
    http://c2.vcp.digitalaccess.ru/flv-hi/f3163575eac23b1ec82b5cc1ebfcf74a

    finally i must analize all this and obtain right parameters for OnlineVideos ... but i really not understand half of code of this plugin ...

    I will raise my experience

    or wait some help ...
     

    ViktorA

    Portal Member
    August 11, 2009
    10
    0
    Home Country
    Russian Federation Russian Federation
    Re: OnlineVideos 0.28 (13.02.2011)

    there are 3 RSS pages on this site, but pages contains same links as i wrote, you can see::
    Code:
    http://www.ivi.ru/rss/new
    http://www.ivi.ru/rss/best
    http://www.ivi.ru/rss/recommend

    for example:

    Code:
    <td nowrap>http://www.ivi.ru/video/view/?id=7907</td>

    or

    Code:
    <td nowrap><code>    <object id="DigitalaccessVideoPlayer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="480">
            <param name="movie" value="http://www.ivi.ru/video/player/?videoId=7907&_isB2C=1" />

    i tried all possible links in Generic Site Creator

    when i press Create Regex i can see only:
    Code:
    CWS
    L&

    in text window,

    in web window Flash player starts playing video

    i can not take direct link on mediafile

    rss_scren1.jpg

    rss_scren2.jpg


    direct link like this:

    Code:
    http://c6.vcp.digitalaccess.ru/flv-hi/74084986ce9308b217e8f96af6c36934
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,656
    3,130
    Nuenen
    Home Country
    Netherlands Netherlands
    Re: OnlineVideos 0.28 (13.02.2011)

    can you find 74084986ce9308b217e8f96af6c36934 somewhere in the webpages you get? Maybe you can try a tool like fiddler2, to find where that number comes from?
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom