We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ERROR: Unable to extract video data
## Please follow the guide below

- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)
- Use the *Preview* tab to see what your issue will actually look like

---

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.04.03*. 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 **2018.04.03**

### Before submitting an *issue* make sure you have:
- [X] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [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
- [X] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### 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 the `-v` flag to **your command line** you run youtube-dl with (`youtube-dl -v <your command line>`), copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):

```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.fxnetworks.com/video/1199474243732']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.03
[debug] Python version 2.7.13 (CPython) - Linux-4.4.114-42-default-x86_64-with-SuSE-42.3-x86_64
[debug] exe versions: ffmpeg 3.4.1, ffprobe 3.4.1, rtmpdump 2.4
[debug] Proxy map: {}
[FXNetworks] 1199474243732: Downloading webpage
ERROR: Unable to extract video data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 785, in extract_info
    ie_result = ie.extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 440, in extract
    ie_result = self._real_extract(url)
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/fxnetworks.py", line 44, in _real_extract
    r'(<a.+?rel="http://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
  File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 808, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract video data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
```

---

### 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: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

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

Explanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.
If work on your *issue* requires account credentials please provide them or explain how one can obtain them.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `youtube_dl/extractor/fxnetworks.py`
Content:
```
1 # coding: utf-8
2 from __future__ import unicode_literals
3 
4 from .adobepass import AdobePassIE
5 from ..utils import (
6     extract_attributes,
7     int_or_none,
8     parse_age_limit,
9     smuggle_url,
10     update_url_query,
11 )
12 
13 
14 class FXNetworksIE(AdobePassIE):
15     _VALID_URL = r'https?://(?:www\.)?(?:fxnetworks|simpsonsworld)\.com/video/(?P<id>\d+)'
16     _TESTS = [{
17         'url': 'http://www.fxnetworks.com/video/1032565827847',
18         'md5': '8d99b97b4aa7a202f55b6ed47ea7e703',
19         'info_dict': {
20             'id': 'dRzwHC_MMqIv',
21             'ext': 'mp4',
22             'title': 'First Look: Better Things - Season 2',
23             'description': 'Because real life is like a fart. Watch this FIRST LOOK to see what inspired the new season of Better Things.',
24             'age_limit': 14,
25             'uploader': 'NEWA-FNG-FX',
26             'upload_date': '20170825',
27             'timestamp': 1503686274,
28             'episode_number': 0,
29             'season_number': 2,
30             'series': 'Better Things',
31         },
32         'add_ie': ['ThePlatform'],
33     }, {
34         'url': 'http://www.simpsonsworld.com/video/716094019682',
35         'only_matching': True,
36     }]
37 
38     def _real_extract(self, url):
39         video_id = self._match_id(url)
40         webpage = self._download_webpage(url, video_id)
41         if 'The content you are trying to access is not available in your region.' in webpage:
42             self.raise_geo_restricted()
43         video_data = extract_attributes(self._search_regex(
44             r'(<a.+?rel="http://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
45         player_type = self._search_regex(r'playerType\s*=\s*[\'"]([^\'"]+)', webpage, 'player type', default=None)
46         release_url = video_data['rel']
47         title = video_data['data-title']
48         rating = video_data.get('data-rating')
49         query = {
50             'mbr': 'true',
51         }
52         if player_type == 'movies':
53             query.update({
54                 'manifest': 'm3u',
55             })
56         else:
57             query.update({
58                 'switch': 'http',
59             })
60         if video_data.get('data-req-auth') == '1':
61             resource = self._get_mvpd_resource(
62                 video_data['data-channel'], title,
63                 video_data.get('data-guid'), rating)
64             query['auth'] = self._extract_mvpd_auth(url, video_id, 'fx', resource)
65 
66         return {
67             '_type': 'url_transparent',
68             'id': video_id,
69             'title': title,
70             'url': smuggle_url(update_url_query(release_url, query), {'force_smil_url': True}),
71             'series': video_data.get('data-show-title'),
72             'episode_number': int_or_none(video_data.get('data-episode')),
73             'season_number': int_or_none(video_data.get('data-season')),
74             'thumbnail': video_data.get('data-large-thumb'),
75             'age_limit': parse_age_limit(rating),
76             'ie_key': 'ThePlatform',
77         }
78
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/youtube_dl/extractor/fxnetworks.py b/youtube_dl/extractor/fxnetworks.py
--- a/youtube_dl/extractor/fxnetworks.py
+++ b/youtube_dl/extractor/fxnetworks.py
@@ -41,7 +41,7 @@
         if 'The content you are trying to access is not available in your region.' in webpage:
             self.raise_geo_restricted()
         video_data = extract_attributes(self._search_regex(
-            r'(<a.+?rel="http://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
+            r'(<a.+?rel="https?://link\.theplatform\.com/s/.+?</a>)', webpage, 'video data'))
         player_type = self._search_regex(r'playerType\s*=\s*[\'"]([^\'"]+)', webpage, 'player type', default=None)
         release_url = video_data['rel']
         title = video_data['data-title']

{"golden_diff": "diff --git a/youtube_dl/extractor/fxnetworks.py b/youtube_dl/extractor/fxnetworks.py\n--- a/youtube_dl/extractor/fxnetworks.py\n+++ b/youtube_dl/extractor/fxnetworks.py\n@@ -41,7 +41,7 @@\n         if 'The content you are trying to access is not available in your region.' in webpage:\n             self.raise_geo_restricted()\n         video_data = extract_attributes(self._search_regex(\n-            r'(<a.+?rel=\"http://link\\.theplatform\\.com/s/.+?</a>)', webpage, 'video data'))\n+            r'(<a.+?rel=\"https?://link\\.theplatform\\.com/s/.+?</a>)', webpage, 'video data'))\n         player_type = self._search_regex(r'playerType\\s*=\\s*[\\'\"]([^\\'\"]+)', webpage, 'player type', default=None)\n         release_url = video_data['rel']\n         title = video_data['data-title']\n", "issue": "ERROR: Unable to extract video data\n## Please follow the guide below\r\n\r\n- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly\r\n- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)\r\n- Use the *Preview* tab to see what your issue will actually look like\r\n\r\n---\r\n\r\n### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.04.03*. 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.\r\n- [X] I've **verified** and **I assure** that I'm running youtube-dl **2018.04.03**\r\n\r\n### Before submitting an *issue* make sure you have:\r\n- [X] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections\r\n- [X] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones\r\n- [X] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser\r\n\r\n### What is the purpose of your *issue*?\r\n- [X] Bug report (encountered problems with youtube-dl)\r\n- [ ] Site support request (request for adding support for a new site)\r\n- [ ] Feature request (request for a new functionality)\r\n- [ ] Question\r\n- [ ] Other\r\n\r\n---\r\n\r\n### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*\r\n\r\n---\r\n\r\n### 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:\r\n\r\nAdd the `-v` flag to **your command line** you run youtube-dl with (`youtube-dl -v <your command line>`), copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):\r\n\r\n```\r\n[debug] System config: []\r\n[debug] User config: []\r\n[debug] Custom config: []\r\n[debug] Command-line args: [u'-v', u'http://www.fxnetworks.com/video/1199474243732']\r\n[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8\r\n[debug] youtube-dl version 2018.04.03\r\n[debug] Python version 2.7.13 (CPython) - Linux-4.4.114-42-default-x86_64-with-SuSE-42.3-x86_64\r\n[debug] exe versions: ffmpeg 3.4.1, ffprobe 3.4.1, rtmpdump 2.4\r\n[debug] Proxy map: {}\r\n[FXNetworks] 1199474243732: Downloading webpage\r\nERROR: Unable to extract video data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.\r\nTraceback (most recent call last):\r\n  File \"/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py\", line 785, in extract_info\r\n    ie_result = ie.extract(url)\r\n  File \"/home/user/bin/youtube-dl/youtube_dl/extractor/common.py\", line 440, in extract\r\n    ie_result = self._real_extract(url)\r\n  File \"/home/user/bin/youtube-dl/youtube_dl/extractor/fxnetworks.py\", line 44, in _real_extract\r\n    r'(<a.+?rel=\"http://link\\.theplatform\\.com/s/.+?</a>)', webpage, 'video data'))\r\n  File \"/home/user/bin/youtube-dl/youtube_dl/extractor/common.py\", line 808, in _search_regex\r\n    raise RegexNotFoundError('Unable to extract %s' % _name)\r\nRegexNotFoundError: Unable to extract video data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.\r\n```\r\n\r\n---\r\n\r\n### 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**):\r\n- Single video: https://www.youtube.com/watch?v=BaW_jenozKc\r\n- Single video: https://youtu.be/BaW_jenozKc\r\n- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc\r\n\r\nNote 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.\r\n\r\n---\r\n\r\n### Description of your *issue*, suggested solution and other information\r\n\r\nExplanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.\r\nIf work on your *issue* requires account credentials please provide them or explain how one can obtain them.\r\n\n", "before_files": [{"content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nfrom .adobepass import AdobePassIE\nfrom ..utils import (\n    extract_attributes,\n    int_or_none,\n    parse_age_limit,\n    smuggle_url,\n    update_url_query,\n)\n\n\nclass FXNetworksIE(AdobePassIE):\n    _VALID_URL = r'https?://(?:www\\.)?(?:fxnetworks|simpsonsworld)\\.com/video/(?P<id>\\d+)'\n    _TESTS = [{\n        'url': 'http://www.fxnetworks.com/video/1032565827847',\n        'md5': '8d99b97b4aa7a202f55b6ed47ea7e703',\n        'info_dict': {\n            'id': 'dRzwHC_MMqIv',\n            'ext': 'mp4',\n            'title': 'First Look: Better Things - Season 2',\n            'description': 'Because real life is like a fart. Watch this FIRST LOOK to see what inspired the new season of Better Things.',\n            'age_limit': 14,\n            'uploader': 'NEWA-FNG-FX',\n            'upload_date': '20170825',\n            'timestamp': 1503686274,\n            'episode_number': 0,\n            'season_number': 2,\n            'series': 'Better Things',\n        },\n        'add_ie': ['ThePlatform'],\n    }, {\n        'url': 'http://www.simpsonsworld.com/video/716094019682',\n        'only_matching': True,\n    }]\n\n    def _real_extract(self, url):\n        video_id = self._match_id(url)\n        webpage = self._download_webpage(url, video_id)\n        if 'The content you are trying to access is not available in your region.' in webpage:\n            self.raise_geo_restricted()\n        video_data = extract_attributes(self._search_regex(\n            r'(<a.+?rel=\"http://link\\.theplatform\\.com/s/.+?</a>)', webpage, 'video data'))\n        player_type = self._search_regex(r'playerType\\s*=\\s*[\\'\"]([^\\'\"]+)', webpage, 'player type', default=None)\n        release_url = video_data['rel']\n        title = video_data['data-title']\n        rating = video_data.get('data-rating')\n        query = {\n            'mbr': 'true',\n        }\n        if player_type == 'movies':\n            query.update({\n                'manifest': 'm3u',\n            })\n        else:\n            query.update({\n                'switch': 'http',\n            })\n        if video_data.get('data-req-auth') == '1':\n            resource = self._get_mvpd_resource(\n                video_data['data-channel'], title,\n                video_data.get('data-guid'), rating)\n            query['auth'] = self._extract_mvpd_auth(url, video_id, 'fx', resource)\n\n        return {\n            '_type': 'url_transparent',\n            'id': video_id,\n            'title': title,\n            'url': smuggle_url(update_url_query(release_url, query), {'force_smil_url': True}),\n            'series': video_data.get('data-show-title'),\n            'episode_number': int_or_none(video_data.get('data-episode')),\n            'season_number': int_or_none(video_data.get('data-season')),\n            'thumbnail': video_data.get('data-large-thumb'),\n            'age_limit': parse_age_limit(rating),\n            'ie_key': 'ThePlatform',\n        }\n", "path": "youtube_dl/extractor/fxnetworks.py"}], "after_files": [{"content": "# coding: utf-8\nfrom __future__ import unicode_literals\n\nfrom .adobepass import AdobePassIE\nfrom ..utils import (\n    extract_attributes,\n    int_or_none,\n    parse_age_limit,\n    smuggle_url,\n    update_url_query,\n)\n\n\nclass FXNetworksIE(AdobePassIE):\n    _VALID_URL = r'https?://(?:www\\.)?(?:fxnetworks|simpsonsworld)\\.com/video/(?P<id>\\d+)'\n    _TESTS = [{\n        'url': 'http://www.fxnetworks.com/video/1032565827847',\n        'md5': '8d99b97b4aa7a202f55b6ed47ea7e703',\n        'info_dict': {\n            'id': 'dRzwHC_MMqIv',\n            'ext': 'mp4',\n            'title': 'First Look: Better Things - Season 2',\n            'description': 'Because real life is like a fart. Watch this FIRST LOOK to see what inspired the new season of Better Things.',\n            'age_limit': 14,\n            'uploader': 'NEWA-FNG-FX',\n            'upload_date': '20170825',\n            'timestamp': 1503686274,\n            'episode_number': 0,\n            'season_number': 2,\n            'series': 'Better Things',\n        },\n        'add_ie': ['ThePlatform'],\n    }, {\n        'url': 'http://www.simpsonsworld.com/video/716094019682',\n        'only_matching': True,\n    }]\n\n    def _real_extract(self, url):\n        video_id = self._match_id(url)\n        webpage = self._download_webpage(url, video_id)\n        if 'The content you are trying to access is not available in your region.' in webpage:\n            self.raise_geo_restricted()\n        video_data = extract_attributes(self._search_regex(\n            r'(<a.+?rel=\"https?://link\\.theplatform\\.com/s/.+?</a>)', webpage, 'video data'))\n        player_type = self._search_regex(r'playerType\\s*=\\s*[\\'\"]([^\\'\"]+)', webpage, 'player type', default=None)\n        release_url = video_data['rel']\n        title = video_data['data-title']\n        rating = video_data.get('data-rating')\n        query = {\n            'mbr': 'true',\n        }\n        if player_type == 'movies':\n            query.update({\n                'manifest': 'm3u',\n            })\n        else:\n            query.update({\n                'switch': 'http',\n            })\n        if video_data.get('data-req-auth') == '1':\n            resource = self._get_mvpd_resource(\n                video_data['data-channel'], title,\n                video_data.get('data-guid'), rating)\n            query['auth'] = self._extract_mvpd_auth(url, video_id, 'fx', resource)\n\n        return {\n            '_type': 'url_transparent',\n            'id': video_id,\n            'title': title,\n            'url': smuggle_url(update_url_query(release_url, query), {'force_smil_url': True}),\n            'series': video_data.get('data-show-title'),\n            'episode_number': int_or_none(video_data.get('data-episode')),\n            'season_number': int_or_none(video_data.get('data-season')),\n            'thumbnail': video_data.get('data-large-thumb'),\n            'age_limit': parse_age_limit(rating),\n            'ie_key': 'ThePlatform',\n        }\n", "path": "youtube_dl/extractor/fxnetworks.py"}]}