1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[Panopto] No need to escape /

This commit is contained in:
Kevin Mark 2017-07-08 15:05:45 -04:00
parent b313bc69f8
commit 7063d53129

View File

@ -32,7 +32,7 @@ class PanoptoBaseIE(InfoExtractor):
class PanoptoIE(PanoptoBaseIE): class PanoptoIE(PanoptoBaseIE):
"""Extracts a single Panopto video including all available streams.""" """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-]+)'
_TESTS = [ _TESTS = [
{ {
'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=26b3ae9e-4a48-4dcc-96ba-0befba08a0fb', 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=26b3ae9e-4a48-4dcc-96ba-0befba08a0fb',
@ -196,7 +196,7 @@ class PanoptoIE(PanoptoBaseIE):
class PanoptoFolderIE(PanoptoBaseIE): class PanoptoFolderIE(PanoptoBaseIE):
"""Recursively extracts a folder of Panopto videos, digging as far as possible into subfolders.""" """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-]+)'
_TESTS = [ _TESTS = [
{ {
'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%222a0546e0-c6c0-4ab1-bc79-5c0b0e801c4f%22', 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%222a0546e0-c6c0-4ab1-bc79-5c0b0e801c4f%22',