Skip to content

Commit

Permalink
Subtitute the ffmpeg download method.
Browse files Browse the repository at this point in the history
Subtitute the ffmpeg download method.
  • Loading branch information
foool authored Sep 9, 2022
1 parent fd5e313 commit 9f7892b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/you_get/extractors/iqiyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@ def download(self, **kwargs):
# For legacy main()

#Here's the change!!
download_url_ffmpeg(urls[0], self.title, 'mp4', output_dir=kwargs['output_dir'], merge=kwargs['merge'], stream=False)

# ffmpeg fails to parse.
# download_url_ffmpeg(urls[0], self.title, 'mp4', output_dir=kwargs['output_dir'], merge=kwargs['merge'], stream=False)
#Here's the way works out
urls = general_m3u8_extractor(urls[0])
# ffmpeg fail to convert the output video with mkv extension, due to sort of timestamp problem
download_urls(urls, self.title, 'mp4', 0, **kwargs)

if not kwargs['caption']:
print('Skipping captions.')
return
Expand Down

0 comments on commit 9f7892b

Please sign in to comment.