mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2026-03-24 21:31:36 +00:00
Fix search; use youtube-dlc
This commit is contained in:
parent
be1b1bc3a9
commit
ba88c53857
5 changed files with 10 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import requests
|
||||
import traceback
|
||||
import youtube_dl
|
||||
import youtube_dlc
|
||||
from tools.converters import *
|
||||
from tools.extractors import extract_yt_initial_data
|
||||
from cachetools import TTLCache
|
||||
|
|
@ -13,7 +13,7 @@ ytdl_opts = {
|
|||
"playlist_items": "1-100",
|
||||
"extract_flat": "in_playlist"
|
||||
}
|
||||
ytdl = youtube_dl.YoutubeDL(ytdl_opts)
|
||||
ytdl = youtube_dlc.YoutubeDL(ytdl_opts)
|
||||
|
||||
def extract_search(q):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue