From 81c7ecf161b528ba293678e0bdbf42952cc87386 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 17 Dec 2019 20:39:20 -0800 Subject: Extraction: Make limited state videos work --- youtube/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube') diff --git a/youtube/watch.py b/youtube/watch.py index 77a4b45..092885d 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -279,7 +279,7 @@ headers = ( ) + util.mobile_ua 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 try: polymer_json = json.loads(polymer_json) -- cgit v1.2.3