mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-30 06:05:13 +00:00
[extractor/common] Fix json_ld type checks (#5145)
Closes #5144, #5143 Authored by: Grub4K
This commit is contained in:
@@ -2463,6 +2463,21 @@ class GenericIE(InfoExtractor):
|
||||
'duration': 111.0,
|
||||
}
|
||||
},
|
||||
{
|
||||
'note': 'JSON LD with unexpected data type',
|
||||
'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/',
|
||||
'info_dict': {
|
||||
'id': 'porsche-911-gt3-rs-rij-impressie-2',
|
||||
'ext': 'mp4',
|
||||
'title': 'Test: Porsche 911 GT3 RS',
|
||||
'description': 'Je ziet het niet, maar het is er wel. Downforce, hebben we het dan over. En in de nieuwe Porsche 911 GT3 RS is er zelfs heel veel downforce.',
|
||||
'timestamp': 1664920902,
|
||||
'upload_date': '20221004',
|
||||
'thumbnail': r're:^https://media.autoweek.nl/m/.+\.jpg$',
|
||||
'age_limit': 0,
|
||||
'direct': True,
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
def report_following_redirect(self, new_url):
|
||||
|
||||
Reference in New Issue
Block a user