From: Philipp Hagemeister Date: Thu, 8 Dec 2011 19:39:56 +0000 (-0800) Subject: Merge pull request #245 from rbrito/fix-makefile X-Git-Url: http://git.jankratochvil.net/?p=youtube-dl.git;a=commitdiff_plain;h=0b3f3e1ad99bb9f3f41589a30cf81a696ddd9332;hp=66e8777769ae1408dde499701e07e2bf2c598a21 Merge pull request #245 from rbrito/fix-makefile Makefile: Don't use `echo`'s `-e` option for portability. --- diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 042b852..fe0fe98 100755 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -282,6 +282,14 @@ def _simplify_title(title): expr = re.compile(ur'[^\w\d_\-]+', flags=re.UNICODE) return expr.sub(u'_', title).strip(u'_') +def _orderedSet(iterable): + """ Remove all duplicates from the input iterable """ + res = [] + for el in iterable: + if el not in res: + res.append(el) + return res + class DownloadError(Exception): """Download Error exception. @@ -3744,6 +3752,124 @@ class MixcloudIE(InfoExtractor): except UnavailableVideoError, err: self._downloader.trouble(u'ERROR: unable to download file') +class StanfordOpenClassroomIE(InfoExtractor): + """Information extractor for Stanford's Open ClassRoom""" + + _VALID_URL = r'^(?:https?://)?openclassroom.stanford.edu(?P/?|(/MainFolder/(?:HomePage|CoursePage|VideoPage)\.php([?]course=(?P[^&]+)(&video=(?P