aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/playlist.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-07-03 18:06:53 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-07-03 18:06:53 -0700
commitdcdf02737a7e44dff238b5ad8c23ee422c270d7a (patch)
treec0a1ca3cf20f1572e051c14f1125ff480f2334f7 /youtube/playlist.py
parentc6dad90d05b09fa7c4c35bb91b84ddc69aa0ecdc (diff)
downloadyt-local-dcdf02737a7e44dff238b5ad8c23ee422c270d7a.tar.lz
yt-local-dcdf02737a7e44dff238b5ad8c23ee422c270d7a.tar.xz
yt-local-dcdf02737a7e44dff238b5ad8c23ee422c270d7a.zip
fix error when getting no content in channel response
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r--youtube/playlist.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py
index 592d1b4..19f825f 100644
--- a/youtube/playlist.py
+++ b/youtube/playlist.py
@@ -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")