Sorry, I live in England, so I have no means of testing solutions for using this code from outside the UK.
This code should produce the same command line for downloading the target tv show, whether it is run from inside the UK or elsewhere.
The problem will be the rtmp connection, not the command line. The BBC tests the connection, to learn whether it is being originated from an ip address in the UK. They reject a connection if it is from an ip address outside the UK.
There are various ways for you to overcome this. I can only speak in general terms, because I can't test these solutions.
Geo-spoofing is a trick which allows you, situated in a foreign country, to appear to be originating a connection from within the UK. Look up geo-spoofing or ip-spoofing on Google for details.
There is a software program called Tor which allows you to connect your computer to a node inside the UK, which acts as a relay, so that your computer appears to be co-located with the node (i.e. if the node is in the UK, then you too appear to be in the UK).
https://www.torproject.org/download/download.html.en
Also look at
http://sourceforge.net/projects/tork...d?source=files
Also search 'Anonymous web proxy'. This will lead you to e.g.
http://hidemyass.com/ or
http://apcyberax.co.uk/iwfchecker/ or
http://server14.kproxy.com/
There are in fact many software solutions, but the problem they solve is that your connection request is originating from outside the UK. There is nothing wrong with the command line built by my code - it will work, provided you can mask the fact that you are running it from a computer that is outside the UK.