youtube: return the android client

ios client just kills streams most of the time for some reason
This commit is contained in:
wukko 2024-08-02 18:44:09 +06:00
parent 650c14f2da
commit 7f12f4c2d3
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -119,7 +119,7 @@ export default async function(o) {
}
try {
info = await yt.getBasicInfo(o.id, 'IOS');
info = await yt.getBasicInfo(o.id, yt.session.logged_in ? 'ANDROID' : 'IOS');
} catch(e) {
if (e?.message === 'This video is unavailable') {
return { error: 'ErrorCouldntFetch' };