feat: 支持指定编码优先级 (#32)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2024-01-20 15:16:48 +08:00
committed by GitHub
parent 641cc3f48b
commit d467750d4f
4 changed files with 144 additions and 147 deletions

View File

@@ -297,7 +297,7 @@ async def process_favorite_item(
detector = video.VideoDownloadURLDataDetecter(
await v.get_download_url(page_index=0)
)
streams = detector.detect_best_streams()
streams = detector.detect_best_streams(codecs=settings.codec)
if detector.check_flv_stream():
await download_content(
streams[0].url, fav_item.tmp_video_path