From f326e05e9f027466a9914a9724364979c3321256 Mon Sep 17 00:00:00 2001 From: HobbyistDev Date: Thu, 11 Apr 2024 07:25:54 +0800 Subject: [PATCH] Add `formats` and `subtitles` in return --- yt_dlp/extractor/godresource.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/godresource.py b/yt_dlp/extractor/godresource.py index 723657270..cc9b85a96 100644 --- a/yt_dlp/extractor/godresource.py +++ b/yt_dlp/extractor/godresource.py @@ -1,7 +1,8 @@ from .common import InfoExtractor from ..utils import ( + ExtractorError, determine_ext, - merge_dicts, + str_or_none, unified_timestamp, url_or_none ) @@ -43,7 +44,6 @@ class GodResourceIE(InfoExtractor): def _real_extract(self, url): display_id = self._match_id(url) - api_data = self._download_json( f'https://api.godresource.com/api/Streams/{display_id}', display_id) @@ -61,7 +61,8 @@ class GodResourceIE(InfoExtractor): return { 'id': display_id, - **extraction_result, + 'formats': formats, + 'subtitles': subtitles, 'title': '', **traverse_obj(api_data, { 'title': ('title', {str}),