Conditional proxying

I added a new feature. When instances are not proxied, Yattee first checks the URL to make sure it is not a restricted video. Usually, music videos and sports content can only be played back by the same IP address that requested the URL in the first place. That is why some videos do not play when the proxy is disabled.

This approach has multiple advantages. First and foremost, It reduced the load on Invidious/Piped instances, since users can now directly access the videos without going through the instance, which might be severely bandwidth limited. Secondly, users don't need to manually turn on the proxy when they want to watch IP address bound content, since Yattee automatically proxies such content.

Furthermore, adding the proxy option allows mitigating some severe playback issues with invidious instances. Invidious by default returns proxied URLs for videos, and due to some bug in the Invidious proxy, scrubbing or continuing playback at a random timestamp can lead to severe wait times for the users.

This should fix numerous playback issues: #666, #626, #590, #585, #498, #457, #400
This commit is contained in:
Toni Förster
2024-05-09 20:07:55 +02:00
parent 1fe8a32fb8
commit 6eba2a45c8
39 changed files with 434 additions and 126 deletions

View File

@@ -129,7 +129,7 @@
"LIVE" = "مباشر";
/* Loading stream OSD */
"Loading streams..." = "تحميل بثوث...";
"Loading streams" = "تحميل بثوث";
"Loading..." = "تحميل...";
/* Video duration filter in search */
@@ -163,8 +163,8 @@
"Open Settings" = "فتح الإعدادات";
/* Loading stream OSD */
"Opening %@ stream..." = "فتح بث %@ ...";
"Opening audio stream..." = "فتح بث صوتي...";
"Opening %@ stream" = "فتح بث %@ ";
"Opening audio stream" = "فتح بث صوتي";
"Orientation" = "اتجاه";
"Play in PiP" = "تشغيل في الفيديو المصغر";
"Play Last" = "تشغيل الأخير";
@@ -558,7 +558,7 @@
"Are you sure you want to clear cache?" = "هل أنت متأكد من أنك تريد مسح ذاكرة التخزين المؤقت؟";
"Gesture settings control skipping interval for remote arrow buttons (for 2nd generation Siri Remote or newer). Changing system controls settings requires restart." = "التحكم في إعدادات إيماءة الفاصل الزمني للتخطي لأزرار الأسهم عن بعد (للجيل الثاني من Siri Remote أو أحدث). تغيير إعدادات نظام عناصر التحكم يتطلب إعادة بدء التشغيل.";
"Opened File" = "ملف مفتوح";
"Opening file..." = "فتح الملف...";
"Opening file" = "فتح الملف";
"Short videos: hidden" = "مقاطع الفيديو القصيرة: مخفية";
"Mark channel feed as watched" = "وضع علامة تمت المشاهدة على محتوى القناة";
"Gesture settings control skipping interval for double click on left/right side of the player. Changing system controls settings requires restart." = "التحكم في إعدادات إيماءة فترة التخطي للنقر المزدوج على الجانب الأيسر/الأيمن من المشغل. تغيير إعدادات نظام عناصر التحكم يتطلب إعادة بدء التشغيل.";