From cbb1753395979dbde1f7488f1bec76de0fc6b6d3 Mon Sep 17 00:00:00 2001 From: Kevin Mark Date: Thu, 6 Jul 2017 20:11:49 -0400 Subject: [PATCH] [Panopto] Document classes wrt PEP 257 --- youtube_dl/extractor/panopto.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/panopto.py b/youtube_dl/extractor/panopto.py index 56d65805f..0165f292c 100644 --- a/youtube_dl/extractor/panopto.py +++ b/youtube_dl/extractor/panopto.py @@ -17,6 +17,7 @@ import json class PanoptoBaseIE(InfoExtractor): + """The base class with common methods for Panopto extractors.""" @classmethod def _match_organization(cls, url): @@ -28,6 +29,7 @@ class PanoptoBaseIE(InfoExtractor): class PanoptoIE(PanoptoBaseIE): + """Extracts a single Panopto video including all available streams.""" _VALID_URL = r'^https?:\/\/(?P[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Viewer\.aspx\?id=(?P[a-f0-9-]+)' @@ -130,6 +132,8 @@ class PanoptoIE(PanoptoBaseIE): class PanoptoFolderIE(PanoptoBaseIE): + """Recursively extracts a folder of Panopto videos, digging as far as possible into subfolders.""" + _VALID_URL = r'^https?:\/\/(?P[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Sessions\/List\.aspx#folderID=(?:"|%22)(?P[a-f0-9-]+)' def _real_extract(self, url):