1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-19 14:38:53 +00:00
This commit is contained in:
c-basalt
2024-08-11 16:35:33 -04:00
parent 567fb56a1c
commit b58d59ec78
5 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import math
from yt_dlp.jsinterp.jsinterp import JS_Undefined, JSInterpreter
from yt_dlp.jsinterp.native import JS_Undefined, JSInterpreter
class NaN:

View File

@@ -15,7 +15,7 @@ import urllib.request
from test.helper import FakeYDL, is_download_test
from yt_dlp.extractor import YoutubeIE
from yt_dlp.jsinterp import JSInterpreter
from yt_dlp.jsinterp import NativeJSI
_SIG_TESTS = [
(
@@ -243,7 +243,7 @@ def signature(jscode, sig_input):
def n_sig(jscode, sig_input):
funcname = YoutubeIE(FakeYDL())._extract_n_function_name(jscode)
return JSInterpreter(jscode).call_function(funcname, sig_input)
return NativeJSI(jscode).call_function(funcname, sig_input)
make_sig_test = t_factory(