diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 7e0ba04c000..1f83acf7cbf 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -3,11 +3,13 @@ from __future__ import unicode_literals import collections +import hashlib import itertools import json import os.path import random import re +import time import traceback from .common import InfoExtractor, SearchInfoExtractor @@ -290,6 +292,33 @@ def _real_initialize(self): _YT_INITIAL_PLAYER_RESPONSE_RE = r'ytInitialPlayerResponse\s*=\s*({.+?})\s*;' _YT_INITIAL_BOUNDARY_RE = r'(?:var\s+meta|