Repository: ytdl-org/youtube-dl

Issue:
Add support for rds.ca
Hi,

Could you add support for http://www.rds.ca ? 
Thanks.

Example url:

$ youtube-dl --verbose http://www.rds.ca/vid%C3%A9os/un-voyage-positif-3.877934
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.rds.ca/vid%C3%A9os/un-voyage-positif-3.877934']
[debug] youtube-dl version 2013.10.17
[debug] Python version 3.3.2 - Linux-3.11.5-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
[generic] un-voyage-positif-3.877934: Downloading webpage
[generic] un-voyage-positif-3.877934: Extracting information
ERROR: Unsupported URL: http://www.rds.ca/vid%C3%A9os/un-voyage-positif-3.877934; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 353, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/common.py", line 117, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/generic.py", line 173, in _real_extract
    raise ExtractorError(u'Unsupported URL: %s' % url)
youtube_dl.utils.ExtractorError: Unsupported URL: http://www.rds.ca/vid%C3%A9os/un-voyage-positif-3.877934; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.



Discussion:

Resolving patch:
diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py
--- a/youtube_dl/extractor/__init__.py
+++ b/youtube_dl/extractor/__init__.py
@@ -460,6 +460,7 @@
 from .radiofrance import RadioFranceIE
 from .rai import RaiIE
 from .rbmaradio import RBMARadioIE
+from .rdsca import RDScaIE
 from .redtube import RedTubeIE
 from .restudy import RestudyIE
 from .reverbnation import ReverbNationIE
diff --git a/youtube_dl/extractor/rdsca.py b/youtube_dl/extractor/rdsca.py
new file mode 100644
--- /dev/null
+++ b/youtube_dl/extractor/rdsca.py
@@ -0,0 +1,50 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+from ..utils import (
+    parse_iso8601,
+    url_basename,
+)
+
+
+class RDScaIE(InfoExtractor):
+    IE_NAME = 'RDS.ca'
+    _VALID_URL = r'http://(?:www\.)?rds\.ca/videos/(?P<id>.*)'
+
+    _TESTS = [{
+        'url': 'http://www.rds.ca/videos/football/nfl/fowler-jr-prend-la-direction-de-jacksonville-3.1132799',
+        'info_dict': {
+            "ext": "mp4",
+            "title": "Fowler Jr. prend la direction de Jacksonville",
+            "description": "Dante Fowler Jr. est le troisième choix du repêchage 2015 de la NFL. ",
+            "timestamp": 1430397346,
+        }
+    }]
+
+    def _real_extract(self, url):
+        video_id = url_basename(url)
+
+        webpage = self._download_webpage(url, video_id)
+
+        title = self._search_regex(
+            r'<span itemprop="name"[^>]*>([^\n]*)</span>', webpage, 'video title', default=None)
+        video_url = self._search_regex(
+            r'<span itemprop="contentURL" content="([^"]+)"', webpage, 'video URL')
+        upload_date = parse_iso8601(self._search_regex(
+            r'<span itemprop="uploadDate" content="([^"]+)"', webpage, 'upload date', default=None))
+        description = self._search_regex(
+            r'<span itemprop="description"[^>]*>([^\n]*)</span>', webpage, 'description', default=None)
+        thumbnail = self._search_regex(
+            r'<span itemprop="thumbnailUrl" content="([^"]+)"', webpage, 'upload date', default=None)
+
+        return {
+            'id': video_id,
+            'title': title,
+            'description': description,
+            'thumbnail': thumbnail,
+            'timestamp': upload_date,
+            'formats': [{
+                'url': video_url,
+            }],
+        }


Test patch: