2013-10-13, 02:38
So Apparently this works in Gotham but I cannot get it to work properly in Frodo. Is this just a bad string in frodo or a fix in gotham?
import urllib
user_agent = "|User-Agent=" + urllib.quote("AppleCoreMedia/1.0.0.8C148 (iPad; U; CPU OS 4_2_1 like Mac OS X; en_us)")
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=getFeedUrl(feed.url) + user_agent, listitem=list_item)
It doesnt seem to be using that as the user-agent. If that is incorrect code for frodo can someone help me with how to correct it please.
import urllib
user_agent = "|User-Agent=" + urllib.quote("AppleCoreMedia/1.0.0.8C148 (iPad; U; CPU OS 4_2_1 like Mac OS X; en_us)")
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=getFeedUrl(feed.url) + user_agent, listitem=list_item)
It doesnt seem to be using that as the user-agent. If that is incorrect code for frodo can someone help me with how to correct it please.