From df891ebfea3e3ccfe3be11ec8161e08c28a70b61 Mon Sep 17 00:00:00 2001 From: Abhishek Thakur Date: Thu, 29 Sep 2022 20:20:13 +0530 Subject: [PATCH] added formats --- youtube_dl/extractor/erocast.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/erocast.py b/youtube_dl/extractor/erocast.py index 6dc0ee4e8..f6aef4075 100644 --- a/youtube_dl/extractor/erocast.py +++ b/youtube_dl/extractor/erocast.py @@ -10,9 +10,8 @@ class ErocastIE(InfoExtractor): 'url': 'https://erocast.me/track/4254/intimate-morning-with-your-wife', 'info_dict': { 'id': '4254', - 'ext': 'mp3', - 'mp3': 0, - 'title':'Intimate morning with your wife' + 'formats': [{'url': "https:\/\/erocast.s3.us-east-2.wasabisys.com\/261020\/track.m3u8", 'ext': 'hls'}], + 'ext': 'mp3' # TODO more properties, either as: # * A # value @@ -26,18 +25,15 @@ class ErocastIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) json_data = self._search_regex(r'", "") - json_data = json_data[json_data.find('{') - 1:] + json_data = json_data[json_data.find('{') - 1:].replace("", "") json_data = self._parse_json(json_data, video_id) - ext="mp3" # TODO more code goes here, for example ... # title = self._html_search_regex(r'