Merge branch 'master' of github.com:iv-org/invidious

このコミットが含まれているのは:
守矢諏訪子 2022-04-02 00:13:03 +09:00
コミット 1736137471
3個のファイルの変更13行の追加6行の削除

ファイルの表示

@ -31,7 +31,7 @@
  
<a href="https://instances.invidious.io/">Instances list</a>
&nbsp;&nbsp;
<a href="https://docs.invidious.io/FAQ/">FAQ</a>
<a href="https://docs.invidious.io/faq/">FAQ</a>
&nbsp;&nbsp;
<a href="https://docs.invidious.io/">Documentation</a>
&nbsp;&nbsp;
@ -88,7 +88,7 @@
**Technical features**
- Embedded video support
- [Developer API](https://docs.invidious.io/API/)
- [Developer API](https://docs.invidious.io/api/)
- Does not use official YouTube APIs
- No Contributor License Agreement (CLA)
@ -101,7 +101,7 @@
**Hosting invidious:**
- [Follow the installation instructions](https://docs.invidious.io/Installation/)
- [Follow the installation instructions](https://docs.invidious.io/installation/)
## Documentation
@ -119,7 +119,7 @@ embedded youtube videos on other websites with invidious.
The documentation contains a list of browser extensions that we recommended to use along with Invidious.
You can read more here: https://docs.invidious.io/Extensions/
You can read more here: https://docs.invidious.io/applications/
## Contribute

ファイルの表示

@ -585,7 +585,7 @@ struct Video
def allowed_regions
info
.dig("microformat", "playerMicroformatRenderer", "availableCountries")
.dig?("microformat", "playerMicroformatRenderer", "availableCountries")
.try &.as_a.map &.as_s || [] of String
end
@ -876,7 +876,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
client_config = YoutubeAPI::ClientConfig.new(proxy_region: proxy_region)
if context_screen == "embed"
client_config.client_type = YoutubeAPI::ClientType::WebScreenEmbed
client_config.client_type = YoutubeAPI::ClientType::TvHtml5ScreenEmbed
end
player_response = YoutubeAPI.player(video_id: video_id, params: "", client_config: client_config)

ファイルの表示

@ -14,6 +14,7 @@ module YoutubeAPI
Android
AndroidEmbeddedPlayer
AndroidScreenEmbed
TvHtml5ScreenEmbed
end
# List of hard-coded values used by the different clients
@ -60,6 +61,12 @@ module YoutubeAPI
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
screen: "EMBED",
},
ClientType::TvHtml5ScreenEmbed => {
name: "TVHTML5_SIMPLY_EMBEDDED_PLAYER",
version: "2.0",
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
screen: "EMBED",
},
}
####################################################################