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:
committed by
GitHub
parent
96474f10c6
commit
89b51c420f
@@ -91,8 +91,7 @@ class VideoInfo:
|
|||||||
|
|
||||||
def _parse(self, text):
|
def _parse(self, text):
|
||||||
result = re.search(pattern, text)
|
result = re.search(pattern, text)
|
||||||
result = result.group(1)[:-1]
|
res = json.loads(result.group(1)[:-1])
|
||||||
res = json.loads(result)
|
|
||||||
response = self._get_item(res, item_response)
|
response = self._get_item(res, item_response)
|
||||||
if response is None:
|
if response is None:
|
||||||
self._check_video_is_private(res.get("args"))
|
self._check_video_is_private(res.get("args"))
|
||||||
|
|||||||
Reference in New Issue
Block a user