Add YouTube sign in error fix URL

This commit is contained in:
Natsumi
2025-04-23 22:23:05 +10:00
parent 7aa1f20350
commit 1e3d19cfbc
+8
View File
@@ -621,6 +621,8 @@ namespace VRCX
// 2024.07.31 22:28:47 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources. // 2024.07.31 22:28:47 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.
// 2024.07.31 23:04:15 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources. // 2024.07.31 23:04:15 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.
const string youtubeBotError = "Sign in to confirm youre not a bot";
const string youtubeBotErrorFixUrl = "\n[VRCX]: We've made a program to help with this error, you can try it out here: https://github.com/EllyVR/VRCVideoCacher";
if (line.Contains("[Video Playback] ERROR: ")) if (line.Contains("[Video Playback] ERROR: "))
{ {
@@ -629,6 +631,9 @@ namespace VRCX
return true; return true;
logContext.LastVideoError = data; logContext.LastVideoError = data;
if (data.Contains(youtubeBotError))
data += youtubeBotErrorFixUrl;
AppendLog(new[] AppendLog(new[]
{ {
fileInfo.Name, fileInfo.Name,
@@ -647,6 +652,9 @@ namespace VRCX
return true; return true;
logContext.LastVideoError = data; logContext.LastVideoError = data;
if (data.Contains(youtubeBotError))
data += youtubeBotErrorFixUrl;
AppendLog(new[] AppendLog(new[]
{ {
fileInfo.Name, fileInfo.Name,