mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 11:44:33 +01:00
[Panopto] Document classes wrt PEP 257
This commit is contained in:
parent
7d30dd3cee
commit
cbb1753395
@ -17,6 +17,7 @@ import json
|
|||||||
|
|
||||||
|
|
||||||
class PanoptoBaseIE(InfoExtractor):
|
class PanoptoBaseIE(InfoExtractor):
|
||||||
|
"""The base class with common methods for Panopto extractors."""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _match_organization(cls, url):
|
def _match_organization(cls, url):
|
||||||
@ -28,6 +29,7 @@ class PanoptoBaseIE(InfoExtractor):
|
|||||||
|
|
||||||
|
|
||||||
class PanoptoIE(PanoptoBaseIE):
|
class PanoptoIE(PanoptoBaseIE):
|
||||||
|
"""Extracts a single Panopto video including all available streams."""
|
||||||
|
|
||||||
_VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Viewer\.aspx\?id=(?P<id>[a-f0-9-]+)'
|
_VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Viewer\.aspx\?id=(?P<id>[a-f0-9-]+)'
|
||||||
|
|
||||||
@ -130,6 +132,8 @@ class PanoptoIE(PanoptoBaseIE):
|
|||||||
|
|
||||||
|
|
||||||
class PanoptoFolderIE(PanoptoBaseIE):
|
class PanoptoFolderIE(PanoptoBaseIE):
|
||||||
|
"""Recursively extracts a folder of Panopto videos, digging as far as possible into subfolders."""
|
||||||
|
|
||||||
_VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Sessions\/List\.aspx#folderID=(?:"|%22)(?P<id>[a-f0-9-]+)'
|
_VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Sessions\/List\.aspx#folderID=(?:"|%22)(?P<id>[a-f0-9-]+)'
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user