fix error when getting no content in channel response

This commit is contained in:
James Taylor
2018-07-03 18:06:53 -07:00
parent c6dad90d05
commit dcdf02737a
5 changed files with 14 additions and 7 deletions

View File

@@ -132,8 +132,8 @@ def get_videos_ajax(playlist_id, page):
}
print("Sending playlist ajax request")
content = common.fetch_url(url, headers)
with open('playlist_debug', 'wb') as f:
f.write(content)
'''with open('debug/playlist_debug', 'wb') as f:
f.write(content)'''
content = content[4:]
print("Finished recieving playlist response")