aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/ndr.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/ndr.py')
-rw-r--r--yt_dlp/extractor/ndr.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/extractor/ndr.py b/yt_dlp/extractor/ndr.py
index ad8dbd7a7..41ea3629a 100644
--- a/yt_dlp/extractor/ndr.py
+++ b/yt_dlp/extractor/ndr.py
@@ -218,7 +218,7 @@ class NJoyIE(NDRBaseIE):
}
-class NDREmbedBaseIE(InfoExtractor):
+class NDREmbedBaseIE(InfoExtractor): # XXX: Conventionally, Concrete class names do not end in BaseIE
IE_NAME = 'ndr:embed:base'
_VALID_URL = r'(?:ndr:(?P<id_s>[\da-z]+)|https?://www\.ndr\.de/(?P<id>[\da-z]+)-ppjson\.json)'
_TESTS = [{
@@ -266,7 +266,6 @@ class NDREmbedBaseIE(InfoExtractor):
ff['vcodec'] = 'none'
ff['ext'] = ext or 'mp3'
formats.append(ff)
- self._sort_formats(formats)
config = playlist['config']
@@ -315,7 +314,7 @@ class NDREmbedBaseIE(InfoExtractor):
}
-class NDREmbedIE(NDREmbedBaseIE):
+class NDREmbedIE(NDREmbedBaseIE): # XXX: Do not subclass from concrete IE
IE_NAME = 'ndr:embed'
_VALID_URL = r'https?://(?:\w+\.)*ndr\.de/(?:[^/]+/)*(?P<id>[\da-z]+)-(?:(?:ard)?player|externalPlayer)\.html'
_TESTS = [{
@@ -413,7 +412,7 @@ class NDREmbedIE(NDREmbedBaseIE):
}]
-class NJoyEmbedIE(NDREmbedBaseIE):
+class NJoyEmbedIE(NDREmbedBaseIE): # XXX: Do not subclass from concrete IE
IE_NAME = 'njoy:embed'
_VALID_URL = r'https?://(?:www\.)?n-joy\.de/(?:[^/]+/)*(?P<id>[\da-z]+)-(?:player|externalPlayer)_[^/]+\.html'
_TESTS = [{