浏览代码

youtube-util: Bug fix

pull/11/head
tech234a 3 年前
父节点
当前提交
5b9784ddbf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      youtube_channel.py

+ 2
- 2
youtube_channel.py 查看文件

@@ -68,7 +68,7 @@ def process_channel(channelid: str):
shelfintp = mysession.get("https://www.youtube.com/"+str(item))
if not """</div><div id="content" class=" content-alignment" role="main"><p class='largeText'>Sorry for the interruption. We have been receiving a large volume of requests from your network.</p>

<p>To continue with your YouTube experience, please fill out the form below.</p>""" in shelfintp.text and not shelfintp.status_code == 200:
<p>To continue with your YouTube experience, please fill out the form below.</p>""" in shelfintp.text and shelfintp.status_code == 200:
break
else:
print("Non-200 status code, waiting 30 seconds before retrying...")
@@ -113,7 +113,7 @@ def process_channel(channelid: str):
shelfintc = mysession.get("https://www.youtube.com/"+str(item))
if not """</div><div id="content" class=" content-alignment" role="main"><p class='largeText'>Sorry for the interruption. We have been receiving a large volume of requests from your network.</p>

<p>To continue with your YouTube experience, please fill out the form below.</p>""" in shelfintc.text and not shelfintc.status_code == 200:
<p>To continue with your YouTube experience, please fill out the form below.</p>""" in shelfintc.text and shelfintc.status_code == 200:
break
else:
print("Non-200 status code, waiting 30 seconds before retrying...")


正在加载...
取消
保存