forked from MarseyWorld/MarseyWorld
fix
parent
03f9a69a0d
commit
10d09f076c
|
@ -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 []
|
||||||
|
|
|
@ -104,4 +104,8 @@
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
<pre>
|
||||||
|
|
||||||
|
|
||||||
|
</pre>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue