[jsinterp] Revert youtube-dl/youtube_dl/extractor/youtube.py

This commit is contained in:
sulyi 2018-06-09 11:24:38 +02:00
parent db44dee405
commit 105faafb48

View File

@ -12,7 +12,7 @@ import time
import traceback
from .common import InfoExtractor, SearchInfoExtractor
from ..jsinterp2 import JSInterpreter
from ..jsinterp import JSInterpreter
from ..swfinterp import SWFInterpreter
from ..compat import (
compat_chr,
@ -1165,7 +1165,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
jsi = JSInterpreter(jscode)
initial_function = jsi.extract_function(funcname)
return initial_function
return lambda s: initial_function([s])
def _parse_sig_swf(self, file_contents):
swfi = SWFInterpreter(file_contents)