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

@@ -152,7 +152,7 @@
"Loading..." = "加载中...";
/* Loading stream OSD */
"Loading streams..." = "加载流中...";
"Loading streams" = "加载流中";
"Locations" = "地址";
"Lock portrait mode" = "锁定竖屏模式";
@@ -191,8 +191,8 @@
"Open Settings" = "打开设置";
/* Loading stream OSD */
"Opening %@ stream..." = "正在打开 %@ 的流...";
"Opening audio stream..." = "正在打开音频流...";
"Opening %@ stream" = "正在打开 %@ 的流";
"Opening audio stream" = "正在打开音频流";
"Orientation" = "方向";
/* SponsorBlock category name */
@@ -530,7 +530,7 @@
"Show scroll to top button in comments" = "在评论中显示“滚动到顶部”按钮";
"Opened File" = "打开的文件";
"File Extension" = "文件扩展";
"Opening file..." = "打开文件中...";
"Opening file" = "打开文件中";
"Single tap gesture" = "单击手势";
"Right click channel thumbnail to open context menu with more actions" = "右键单击频道缩略图以打开具有更多操作的上下文菜单";
"Show unwatched feed badges" = "显示未观看的 Feed 标志";