This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
from typing import Optional
2
2
3
3
from playwright .sync_api import sync_playwright
4
- from youtube_dl .utils import YoutubeDLError
4
+ from yt_dlp .utils import YoutubeDLError
5
5
6
6
from twitter_video_tools .monsnode_parser import MonsnodeParser
7
7
Original file line number Diff line number Diff line change 1
1
from typing import Optional
2
2
3
- import youtube_dl
3
+ import yt_dlp
4
4
5
5
from .execute_parallel import execute_parallel
6
6
@@ -9,8 +9,8 @@ class YoutubeDLWrapper: # pylint: disable=too-few-public-methods
9
9
"""A YoutubeDL wrapper class for supporting python embedded multi-processing"""
10
10
11
11
def _youtube_dl_download_video (self , link : str , youtube_dl_option : Optional [dict [str , str ]] = None ) -> None :
12
- with youtube_dl .YoutubeDL (youtube_dl_option ) as youtube_dl_downloader :
13
- youtube_dl_downloader : youtube_dl .YoutubeDL
12
+ with yt_dlp .YoutubeDL (youtube_dl_option ) as youtube_dl_downloader :
13
+ youtube_dl_downloader : yt_dlp .YoutubeDL
14
14
youtube_dl_downloader .download ([link ])
15
15
16
16
def download (self , links : list [str ], youtube_dl_option : Optional [dict [str , str ]] = None ) -> None :
You can’t perform that action at this time.
0 commit comments