1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-11-14 12:07:30 +00:00

Do not actually write out pages.

This commit is contained in:
Cadence Ember 2022-01-10 13:23:04 +13:00
parent 36ae18c12f
commit 73b4fbabf7
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -170,9 +170,6 @@ def extract_channel_latest(ucid):
with requests.get("https://www.youtube.com/feeds/videos.xml?channel_id={}".format(ucid)) as r:
if r.status_code == 404:
cherrypy.response.status = 404
# write out page data for debugging
with open("channel_not_found_{}.xml".format(ucid), "wb") as f:
f.write(r.content)
return {
"error": "This channel does not exist.",
"identifier": "NOT_FOUND"