mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
fix file ext
This commit is contained in:
parent
f9c47b9343
commit
56ae6a975b
1 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
|
||||||
float_or_none,
|
float_or_none,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
strip_or_none,
|
strip_or_none,
|
||||||
|
@ -15,7 +14,7 @@ class NZOnScreenIE(InfoExtractor):
|
||||||
'url': 'https://www.nzonscreen.com/title/shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982',
|
'url': 'https://www.nzonscreen.com/title/shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '726ed6585c6bfb30',
|
'id': '726ed6585c6bfb30',
|
||||||
'ext': 'm3u8',
|
'ext': 'mp4',
|
||||||
'format_id': 'hd',
|
'format_id': 'hd',
|
||||||
'display_id': 'shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982',
|
'display_id': 'shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982',
|
||||||
'title': 'Monte Video - "Shoop Shoop, Diddy Wop"',
|
'title': 'Monte Video - "Shoop Shoop, Diddy Wop"',
|
||||||
|
@ -29,7 +28,7 @@ class NZOnScreenIE(InfoExtractor):
|
||||||
'url': 'https://www.nzonscreen.com/title/shes-a-mod-1964?collection=best-of-the-60s',
|
'url': 'https://www.nzonscreen.com/title/shes-a-mod-1964?collection=best-of-the-60s',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '3dbe709ff03c36f1',
|
'id': '3dbe709ff03c36f1',
|
||||||
'ext': 'm3u8',
|
'ext': 'mp4',
|
||||||
'format_id': 'hd',
|
'format_id': 'hd',
|
||||||
'display_id': 'shes-a-mod-1964',
|
'display_id': 'shes-a-mod-1964',
|
||||||
'title': 'Ray Columbus - \'She\'s A Mod\'',
|
'title': 'Ray Columbus - \'She\'s A Mod\'',
|
||||||
|
@ -43,7 +42,7 @@ class NZOnScreenIE(InfoExtractor):
|
||||||
'url': 'https://www.nzonscreen.com/title/puha-and-pakeha-1968/overview',
|
'url': 'https://www.nzonscreen.com/title/puha-and-pakeha-1968/overview',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'f86342544385ad8a',
|
'id': 'f86342544385ad8a',
|
||||||
'ext': 'm3u8',
|
'ext': 'mp4',
|
||||||
'format_id': 'hd',
|
'format_id': 'hd',
|
||||||
'display_id': 'puha-and-pakeha-1968',
|
'display_id': 'puha-and-pakeha-1968',
|
||||||
'title': 'Looking At New Zealand - Puha and Pakeha',
|
'title': 'Looking At New Zealand - Puha and Pakeha',
|
||||||
|
@ -68,7 +67,7 @@ class NZOnScreenIE(InfoExtractor):
|
||||||
yield {
|
yield {
|
||||||
'url': url,
|
'url': url,
|
||||||
'format_id': id_,
|
'format_id': id_,
|
||||||
'ext': determine_ext(url),
|
'ext': 'mp4',
|
||||||
'quality': quality,
|
'quality': quality,
|
||||||
'height': int_or_none(playlist.get('height')) if id_ == 'hd' else None,
|
'height': int_or_none(playlist.get('height')) if id_ == 'hd' else None,
|
||||||
'width': int_or_none(playlist.get('width')) if id_ == 'hd' else None,
|
'width': int_or_none(playlist.get('width')) if id_ == 'hd' else None,
|
||||||
|
|
Loading…
Reference in a new issue