2014-01-27, 09:48
I try to add User-Agent when playing on XBMC and I found this topic
http://forum.xbmc.org/showthread.php?tid=14643
I found "sphere" tell that you can use
then trying to use this on my XBMC swift2 plugin
it doesn't work so I try to encode the USER_AGENT
it doesn't work again.
this is all of my try
Can anyone help me to do the right thing please?
http://forum.xbmc.org/showthread.php?tid=14643
I found "sphere" tell that you can use
Code:
|User-Agent=Foo%20Bar
Code:
USER_AGENT = "AppleCoreMedia/1.0.0.10A523 (iPad; U; CPU OS 6_0_1 like Mac OS X; en_us)"
play_url += '?|User-Agent=%s' % USER_AGENT
Code:
USER_AGENT = "AppleCoreMedia%2f1.0.0.10A523%20%28iPad%3B%20U%3B%20CPU%20OS%206_0_1%20like%20Mac%20OS%20X%3B%20en_us%29"
this is all of my try
Code:
USER_AGENT = "AppleCoreMedia/1.0.0.10A523 (iPad; U; CPU OS 6_0_1 like Mac OS X; en_us)"
play_url += '?|User-Agent=%s' % USER_AGENT
Code:
USER_AGENT = "AppleCoreMedia/1.0.0.10A523 (iPad; U; CPU OS 6_0_1 like Mac OS X; en_us)"
play_url += '|User-Agent=%s' % USER_AGENT
Code:
USER_AGENT = "AppleCoreMedia%2f1.0.0.10A523%20%28iPad%3B%20U%3B%20CPU%20OS%206_0_1%20like%20Mac%20OS%20X%3B%20en_us%29"
play_url += '?|User-Agent=%s' % USER_AGENT
Code:
USER_AGENT = "AppleCoreMedia%2f1.0.0.10A523%20%28iPad%3B%20U%3B%20CPU%20OS%206_0_1%20like%20Mac%20OS%20X%3B%20en_us%29"
play_url += '|User-Agent=%s' % USER_AGENT
Can anyone help me to do the right thing please?