[nrk] Add more shortcut tests
authorSergey M․ <dstftw@gmail.com>
Sat, 2 Jan 2021 23:41:37 +0000 (06:41 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 2 Jan 2021 23:41:37 +0000 (06:41 +0700)
youtube_dl/extractor/nrk.py

index 9621522d43148296e0a73f0b254d032e6d5a0491..61a7c9aad1d824ae9c4b054b76feb9a7d0c227c9 100644 (file)
@@ -117,18 +117,30 @@ class NRKIE(NRKBaseIE):
         # podcast
         'url': 'nrk:l_96f4f1b0-de54-4e6a-b4f1-b0de54fe6af8',
         'only_matching': True,
+    }, {
+        'url': 'nrk:podcast/l_96f4f1b0-de54-4e6a-b4f1-b0de54fe6af8',
+        'only_matching': True,
     }, {
         # clip
         'url': 'nrk:150533',
         'only_matching': True,
     }, {
-        # episode
+        'url': 'nrk:clip/150533',
+        'only_matching': True,
+    }, {
+        # program
         'url': 'nrk:MDDP12000117',
         'only_matching': True,
+    }, {
+        'url': 'nrk:program/ENRK10100318',
+        'only_matching': True,
     }, {
         # direkte
         'url': 'nrk:nrk1',
         'only_matching': True,
+    }, {
+        'url': 'nrk:channel/nrk1',
+        'only_matching': True,
     }]
 
     def _extract_from_playback(self, video_id):