1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[cleanup] Misc

Closes #5541
This commit is contained in:
pukkandan
2022-11-16 06:27:43 +05:30
parent a4894d3e25
commit 6368e2e639
75 changed files with 194 additions and 156 deletions

View File

@ -24,7 +24,7 @@ from ..utils import (
)
class NBCIE(ThePlatformIE):
class NBCIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/(?:classic-tv/)?[^/]+/video/[^/]+/(?P<id>n?\d+))'
_TESTS = [
@ -315,7 +315,7 @@ class NBCSportsStreamIE(AdobePassIE):
}
class NBCNewsIE(ThePlatformIE):
class NBCNewsIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
_VALID_URL = r'(?x)https?://(?:www\.)?(?:nbcnews|today|msnbc)\.com/([^/]+/)*(?:.*-)?(?P<id>[^/?]+)'
_EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//www\.nbcnews\.com/widget/video-embed/[^"\']+)\1']