From 87b15458f391eedacbf8de41d37c2a0f864d5996 Mon Sep 17 00:00:00 2001 From: barkoder <70430094+barkoder@users.noreply.github.com> Date: Wed, 18 Jun 2025 17:18:45 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> --- yt_dlp/extractor/redditonion.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yt_dlp/extractor/redditonion.py b/yt_dlp/extractor/redditonion.py index f97efd66d..a6f82225b 100644 --- a/yt_dlp/extractor/redditonion.py +++ b/yt_dlp/extractor/redditonion.py @@ -28,7 +28,7 @@ class RedditOnionIE(InfoExtractor): 'display_id': '6rrwyj', 'title': 'That small heart attack.', 'alt_title': 'That small heart attack.', - 'thumbnail': r're:^https?://.*\.(?:jpg|png)', + 'thumbnail': r're:https?://.*\.(?:jpg|png)', 'thumbnails': 'count:4', 'timestamp': 1501941939, 'upload_date': '20170805', @@ -53,7 +53,7 @@ class RedditOnionIE(InfoExtractor): 'display_id': '90bu6w', 'title': 'Heat index was 110 degrees so we offered him a cold drink. He went fo...', 'alt_title': 'Heat index was 110 degrees so we offered him a cold drink. He went for a full body soak instead', - 'thumbnail': r're:^https?://.*\.(?:jpg|png)', + 'thumbnail': r're:https?://.*\.(?:jpg|png)', 'thumbnails': 'count:7', 'timestamp': 1532051078, 'upload_date': '20180720', @@ -74,7 +74,7 @@ class RedditOnionIE(InfoExtractor): 'display_id': 'nip71r', 'title': 'I plan to make more stickers and prints! Check them out on my Etsy! O...', 'alt_title': 'I plan to make more stickers and prints! Check them out on my Etsy! Or get them through my Patreon. Links below.', - 'thumbnail': r're:^https?://.*\.(?:jpg|png)', + 'thumbnail': r're:https?://.*\.(?:jpg|png)', 'thumbnails': 'count:5', 'timestamp': 1621709093, 'upload_date': '20210522', @@ -118,7 +118,7 @@ class RedditOnionIE(InfoExtractor): 'title': 'Cringe', 'alt_title': 'Cringe', 'uploader': 'Otaku-senpai69420', - 'thumbnail': r're:^https?://.*\.(?:jpg|png)', + 'thumbnail': r're:https?://.*\.(?:jpg|png)', 'upload_date': '20221212', 'timestamp': 1670812309, 'duration': 16, @@ -143,7 +143,7 @@ class RedditOnionIE(InfoExtractor): 'duration': 17, 'upload_date': '20230328', 'timestamp': 1680012043, - 'thumbnail': r're:^https?://.*\.(?:jpg|png)', + 'thumbnail': r're:https?://.*\.(?:jpg|png)', 'age_limit': 0, 'comment_count': int, 'dislike_count': int,