master
Aevann1 2022-09-25 08:18:03 +02:00
parent 03f9a69a0d
commit 10d09f076c
2 changed files with 5 additions and 0 deletions

View File

@ -546,6 +546,7 @@ if SITE == 'pcmemes.net':
if not id.startswith('UC'): if not id.startswith('UC'):
req = requests.get(f'https://www.googleapis.com/youtube/v3/channels?key={YOUTUBE_KEY}&forUsername={id}&part=id', timeout=5, proxies=proxies).json() req = requests.get(f'https://www.googleapis.com/youtube/v3/channels?key={YOUTUBE_KEY}&forUsername={id}&part=id', timeout=5, proxies=proxies).json()
print(req, flush=True)
id = req['items']['id'] id = req['items']['id']
live = cache.get('live') or [] live = cache.get('live') or []

View File

@ -104,4 +104,8 @@
</form> </form>
{% endif %} {% endif %}
</div> </div>
<pre>
</pre>
{% endblock %} {% endblock %}