[cleanup] Mark some compat variables for removal (#2173)
Authored by fstirlitz, pukkandan
This commit is contained in:
parent
cfb0511d82
commit
f9934b9614
26 changed files with 121 additions and 186 deletions
|
|
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
|||
|
||||
import functools
|
||||
import json
|
||||
import uuid
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
|
|
@ -11,7 +12,6 @@ from ..utils import (
|
|||
ExtractorError,
|
||||
float_or_none,
|
||||
OnDemandPagedList,
|
||||
random_uuidv4,
|
||||
traverse_obj,
|
||||
)
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ class MildomBaseIE(InfoExtractor):
|
|||
|
||||
def _call_api(self, url, video_id, query=None, note='Downloading JSON metadata', body=None):
|
||||
if not self._GUEST_ID:
|
||||
self._GUEST_ID = f'pc-gp-{random_uuidv4()}'
|
||||
self._GUEST_ID = f'pc-gp-{str(uuid.uuid4())}'
|
||||
|
||||
content = self._download_json(
|
||||
url, video_id, note=note, data=json.dumps(body).encode() if body else None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue