Repository: youtube-dl
Issue: [bbc.co.uk] bug: Downloading Audio Described version now grabs Original version
Labels: geo-restricted

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.05.01*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.05.01**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones

### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*

---

### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:

Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
Partial log:
$ youtube-dl --verbose --abort-on-unavailable-fragment -f bestaudio http://www.bbc.co.uk/iplayer/episode/p048h1s0/ad/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--abort-on-unavailable-fragment', '-f', 'bestaudio', 'http://www.bbc.co.uk/iplayer/episode/p048h1s0/ad/']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2017.05.01
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] p048h1s0: Downloading video page
[bbc.co.uk] p048h1s0: Downloading playlist JSON
[bbc.co.uk] p04cb0dw: Downloading media selection XML
...
<end of log>
```

---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: http://www.bbc.co.uk/iplayer/episode/p048h1s0/ad/
- Single video: http://www.bbc.co.uk/iplayer/episode/p04c1bs4/ad/class-series-1-2-the-coach-with-the-dragon-tattoo
- Referenced series: http://www.bbc.co.uk/iplayer/episodes/p048h1bz

Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

---

### Description of your *issue*, suggested solution and other information

The problem: When passing the Audio Described URL of a BBC iPlayer programme, youtube-dl _now_ grabs the normal/Original version instead. I assume this started happening when the BBC took down the XML feeds.

Opening the [playlist JSON](http://www.bbc.co.uk/programmes/p048h1s0.json) in a web browser (Firefox 53.0), the "Dubbed Audio Described" VPID is p04nzc8r, so the last line should have read:
`[bbc.co.uk] p04nzc8r: Downloading media selection XML`
and not
`[bbc.co.uk] p04cb0dw: Downloading media selection XML`
which is the PID for the "Original version."

How to fix: I'm not sure. I changed the user agent of my web browser to mirror what youtube-dl uses, but the JSON output is still different from when I ran youtube-dl with --write-pages.

In any case, when running youtube-dl with an iPlayer URL for an audio Described page, it should grab the "Dubbed Audio Described" version from the playlist JSON.