Avoid changing the type of result.

However, if this argument is used elsewhere in the code it should be corrected.
This commit is contained in:
Etian Daniel Alavardo Mtz
2020-08-20 22:39:32 -05:00
committed by GitHub
parent 96474f10c6
commit 89b51c420f

View File

@@ -91,8 +91,7 @@ class VideoInfo:
def _parse(self, text):
result = re.search(pattern, text)
result = result.group(1)[:-1]
res = json.loads(result)
res = json.loads(result.group(1)[:-1])
response = self._get_item(res, item_response)
if response is None:
self._check_video_is_private(res.get("args"))