Extraction: Make limited state videos work
This commit is contained in:
parent
40de1b74ed
commit
81c7ecf161
@ -279,7 +279,7 @@ headers = (
|
|||||||
) + util.mobile_ua
|
) + util.mobile_ua
|
||||||
|
|
||||||
def extract_info(video_id):
|
def extract_info(video_id):
|
||||||
polymer_json = util.fetch_url('https://m.youtube.com/watch?v=' + video_id + '&pbj=1', headers=headers, debug_name='watch').decode('utf-8')
|
polymer_json = util.fetch_url('https://m.youtube.com/watch?v=' + video_id + '&pbj=1&bpctr=9999999999', headers=headers, debug_name='watch').decode('utf-8')
|
||||||
# TODO: Decide whether this should be done in yt_data_extract.extract_watch_info
|
# TODO: Decide whether this should be done in yt_data_extract.extract_watch_info
|
||||||
try:
|
try:
|
||||||
polymer_json = json.loads(polymer_json)
|
polymer_json = json.loads(polymer_json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user