Illegal URL characters in redirected URL (1 Viewer)

oshri

Portal Member
November 29, 2010
48
0
Home Country
Israel Israel
Hi,
I'm trying to build another Israeli TV site with the generic site creator and i have a problem.
The final redirected URL name has the "|" sign in it which is an illegal URL character and should be replaced with %7C
I cant replace it because I can see it only at the end when another site redirects to it.
What should i do?

Thanks
Oshri
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    AW: Illegal URL characters in redirected URL

    Where exactly does this happen (meaning at what step or textbox in the tool can you see the wrong url)?
     

    oshri

    Portal Member
    November 29, 2010
    48
    0
    Home Country
    Israel Israel
    Just in the last dropbox (the one with the play button on the side)
    and only when i push the "get redirected URL" checkbox
     

    oshri

    Portal Member
    November 29, 2010
    48
    0
    Home Country
    Israel Israel
    I think i foun a way around the problem but now i got another problem.
    to fix the illegal characters i need to do a regex for: h.t.t.p://switch206-01.castup.net/cunet/gm.asp?ClipMediaID=6373992&ak=null&ai=206
    But i get an out of memory error.
    What could be the reason for that?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The regex engine is greedy on some expression (like .*) and you can make it run in circles thus after a while runing out of memory. Try to avoid those wildcards.
     

    oshri

    Portal Member
    November 29, 2010
    48
    0
    Home Country
    Israel Israel
    Maybe i was misunderstood,

    h.t.t.p://switch206-01.castup.net/cunet/gm.asp?ClipMediaID=6373992&ak=null&ai=206

    is in PlayListUrlResult and i get the out of memory error when i push the "create regex" button
     

    oshri

    Portal Member
    November 29, 2010
    48
    0
    Home Country
    Israel Israel
    i made some progress
    when i change http to mms it's working in VLC but not in graph studio or in media portal.

    this is the stream: mms://switch206-01.castup.net/cunet/gm.asp?clipmediaid=6373992&ak=null&ai=206

    why it's working only in vlc?

    Thanks
    Oshri
     

    oshri

    Portal Member
    November 29, 2010
    48
    0
    Home Country
    Israel Israel
    Found out what is the problem but i don't know how to fix it.
    When mms://switch206-01.castup.net/cunet/gm.asp?clipmediaid=6373992&ak=null&ai=206 is played a cookie is sent which enables the redirected video to work
    the problem is that there are illegal characters in the redirection.
    So if there was url encoding at the end the problem would be solved.
    I don't know how to proceed from here

    Thanks
    Oshri
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    I looked into your problem, but I got stuck too, because of geo-blocking. Apparently, only israelian people are allowed to watch those videos :(
    However, if cookies are the problem, you must write your own util in c# to handle that correctly.
     

    Users who are viewing this thread

    Top Bottom