update comment

This commit is contained in:
HobbyistDev 2024-02-26 20:19:46 +08:00
parent b13592aafc
commit 9dcf080549

View file

@ -295,9 +295,8 @@ def _real_extract(self, url):
next_js_data = self._search_nextjs_data(webpage, video_id)['props'] next_js_data = self._search_nextjs_data(webpage, video_id)['props']
runtime_info = next_js_data['initialState']['app']['runtimeInfo'] runtime_info = next_js_data['initialState']['app']['runtimeInfo']
# Weird thing happen if i insert technilacally geo-blocked content like # NOTE: some geo-blocked like https://www.viu.com/ott/sg/en/vod/108599/The-Beauty-Inside actually can bypassed
# like https://www.viu.com/ott/sg/en/vod/108599/The-Beauty-Inside in ID region, # on other region (like in ID)
# it still download. Maybe API not affected by geo-block?
product_detail_json = traverse_obj( product_detail_json = traverse_obj(
next_js_data, ('pageProps', 'fallback', lambda k, v: v if re.match(r'@"PRODUCT_DETAIL"[^:]+', k) else None), next_js_data, ('pageProps', 'fallback', lambda k, v: v if re.match(r'@"PRODUCT_DETAIL"[^:]+', k) else None),
get_all=False) get_all=False)