No Url Error 150 It+is+restricted+from+playback+on+certain+sites (1 Viewer)

mbiker

MP Donator
  • Premium Supporter
  • February 2, 2013
    7
    1
    43
    Home Country
    United Kingdom United Kingdom
    Hi,

    I've installed the latest OnlineVideos 1.5.0.0 plugin and I'm getting a lot of 150 errors on youtube. An example is here:

    status=fail&reason=This+video+contains+content+from+WMG.+It+is+restricted+from+playback+on+certain+sites.%3Cbr%2F%3E%3Cu%3E%3Ca+href%3D%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkXYiU_JCYtU%26feature%3Dplayer_embedded%27+target%3D%27_blank%27%3EWatch+on+YouTube%3C%2Fa%3E%3C%2Fu%3E&errorcode=150&storyboard_spec=http%3A%2F%2Fi4.ytimg.com%2Fsb%2FkXYiU_JCYtU%2Fstoryboard3_L%24L%2F%24N.jpg%7C48%2327%23100%2310%2310%230%23default%23FQ2rGE9ToJOBgYH6ePdFKO8sg78%7C60%2345%2395%2310%2310%232000%23M%24M%232D6GRVuTIOpROgu8wl48w8wlyTg%7C120%2390%2395%235%235%232000%23M%24M%23iyDXvLnoz39BlaquUMKxjvhm1DQ&errordetail=0

    Is there anything I can do to play those videos? It seems to happen on the commercial ones which seem to be restricted from embedding :/
     

    mbiker

    MP Donator
  • Premium Supporter
  • February 2, 2013
    7
    1
    43
    Home Country
    United Kingdom United Kingdom
    Could you help me please? Or just point me in the right direction?

    Is there a way to filter out those videos if it's not possible to play them?
     

    StarWup

    Portal Pro
    April 7, 2011
    113
    5
    Home Country
    Germany Germany
    As you may have guessed ;-) this is because the video conatins the corents from Warner Music Group (WMG). The WMG company policy does not allow this youtube video to be played in your personal blog/website/embeddedwhatsever. Embed restrictions are set by the content owner. One aspect of the logic that determines if a video is playable or not depends on the document having a referrer. In the case where you type the address in directly, there is no referrer and the embed policies in this case decide that the video is not playable. You can probably embed these videos elsewhere and they will play.

    The URL structure with the word "watch" in it is Youtube's public facing web page, which includes a lot more than the video ... it includes all the other content you see on the page as well. In essence, it's a pointer that resolves to an HTML page, and you can't have an HTML page as the source of an embed element.
    The URL structure that is proper (i.e. the one that works) is not a pointer to an HTML page but a pointer that resolves directly to the player itself, and thus can serve as the source of an embed element. Here's a link to another forum's user question whose answer includes a C# code block that takes a regular YouTube URL (in any of its forms) as an input, does a regex match, and returns just the Youtube ID -- should be pretty simple to modify it for your needs ... thus you can still continue to have your users paste in the whole video URL:
    http://stackoverflow.com/questions/...to-get-video-id-from-youtube-and-vimeo-by-url

    Cheers,
    Jens
     

    mbiker

    MP Donator
  • Premium Supporter
  • February 2, 2013
    7
    1
    43
    Home Country
    United Kingdom United Kingdom
    Hi StarWup,

    Thank you very much for your reply.

    I understand video restrictions but could you please tell me why do you mention about a pointer to an HTML page? The content I've attached is an exact copy&paste from the file that OnlineVideos is getting (I know about this from the log file).

    Should not a default OnlineVideos installation already be doing regex etc. and all necessary stuff for youtube to get the right content?
     

    StarWup

    Portal Pro
    April 7, 2011
    113
    5
    Home Country
    Germany Germany
    This has to be answered by the programmer, offbyone. Maybe he'll look into this sooner or later...
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    In the logs you attached, I can only see successfully played clips. Can you tell me a search string I should enter to find a restricted video?
     

    Users who are viewing this thread

    Top Bottom