on master help sign in
[fix] remove debug code
4c631acAdam Tauber
searx/engines/youtube_noapi.py−2
@@ -70,8 +70,6 @@ def response(resp):
70def parse_next_page_response(response_text):
70def parse_next_page_response(response_text):
71 results = []
71 results = []
72 result_json = loads(response_text)
72 result_json = loads(response_text)
73− with open("/tmp/x", "w") as f:
74− f.write(response_text)
75 for section in (result_json['onResponseReceivedCommands'][0]
73 for section in (result_json['onResponseReceivedCommands'][0]
76 .get('appendContinuationItemsAction')['continuationItems'][0]
74 .get('appendContinuationItemsAction')['continuationItems'][0]
77 .get('itemSectionRenderer')['contents']):
75 .get('itemSectionRenderer')['contents']):