From e600a5c90817f4caac221679f6639211bba1f3a2 Mon Sep 17 00:00:00 2001 From: Aleri Kaisattera <73682764+alerikaisattera@users.noreply.github.com> Date: Sat, 22 Jan 2022 03:32:25 +0600 Subject: [PATCH] [CAM4] Add thumbnail extraction (#2425) Authored by: alerikaisattera --- yt_dlp/extractor/cam4.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/cam4.py b/yt_dlp/extractor/cam4.py index f47de9176..2a3931fd0 100644 --- a/yt_dlp/extractor/cam4.py +++ b/yt_dlp/extractor/cam4.py @@ -13,6 +13,8 @@ class CAM4IE(InfoExtractor): 'ext': 'mp4', 'title': 're:^foxynesss [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$', 'age_limit': 18, + 'live_status': 'is_live', + 'thumbnail': 'https://snapshots.xcdnpro.com/thumbnails/foxynesss', } } @@ -29,4 +31,5 @@ class CAM4IE(InfoExtractor): 'is_live': True, 'age_limit': 18, 'formats': formats, + 'thumbnail': f'https://snapshots.xcdnpro.com/thumbnails/{channel_id}', }