feat(route): youtube music charts (#11979)

* feat(route): youtube music charts

* docs: fix example
This commit is contained in:
Tony
2023-02-28 00:48:16 -11:00
committed by GitHub
parent 9c5261de7d
commit 992ab44a3a
6 changed files with 215 additions and 5 deletions
+50
View File
@@ -551,3 +551,53 @@ YouTube provides official RSS feeds for channels, for instance <https://www.yout
### Subscriptions
<RouteEn author="TonyRL" path="/youtube/subscriptions/:embed?" example="/youtube/subscriptions" :paramsDesc="['Default to embed the video, set to any value to disable embedding']" selfhost="1" radar="1" rssbud="1"/>
### Music Charts
<RouteEn author="TonyRL" path="/youtube/charts/:category?/:country?/:embed?" example="/youtube/charts" :paramsDesc="['Chart, see table below, default to `TopVideos`', 'Country Code, see table below, default to global', 'Default to embed the video, set to any value to disable embedding']" radar="1" rssbud="1">
::: details Chart
| Top artists | Top songs | Top music videos | Trending |
| ----------- | --------- | ---------------- | -------- |
| TopArtists | TopSongs | TopVideos | TrendingVideos |
:::
::: details Country Code
| Argentina | Australia | Austria | Belgium | Bolivia | Brazil | Canada |
| --------- | --------- | ------- | ------- | ------- | ------ | ------ |
| ar | au | at | be | bo | br | ca |
| Chile | Colombia | Costa Rica | Czechia | Denmark | Dominican Republic | Ecuador |
| ----- | -------- | ---------- | ------- | ------- | ------------------ | ------- |
| cl | co | cr | cz | dk | do | ec |
| Egypt | El Salvador | Estonia | Finland | France | Germany | Guatemala |
| ----- | ----------- | ------- | ------- | ------ | ------- | --------- |
| eg | sv | ee | fi | fr | de | gt |
| Honduras | Hungary | Iceland | India | Indonesia | Ireland | Israel | Italy |
| -------- | ------- | ------- | ----- | --------- | ------- | ------ | ----- |
| hn | hu | is | in | id | ie | il | it |
| Japan | Kenya | Luxembourg | Mexico | Netherlands | New Zealand | Nicaragua |
| ----- | ----- | ---------- | ------ | ----------- | ----------- | --------- |
| jp | ke | lu | mx | nl | nz | ni |
| Nigeria | Norway | Panama | Paraguay | Peru | Poland | Portugal | Romania |
| ------- | ------ | ------ | -------- | ---- | ------ | -------- | ------- |
| ng | no | pa | py | pe | pl | pt | ro |
| Russia | Saudi Arabia | Serbia | South Africa | South Korea | Spain | Sweden | Switzerland |
| ----- | ------------- | ------ | ------------ | ----------- | ----- | ------ | ----------- |
| ru | sa | rs | za | kr | es | se | ch |
| Tanzania | Turkey | Uganda | Ukraine | United Arab Emirates | United Kingdom | United States |
| -------- | ------ | ------ | ------- | -------------------- | -------------- | ------------- |
| tz | tr | ug | ua | ae | gb | us |
| Uruguay | Zimbabwe |
| ------- | -------- |
| uy | zw |
:::
</RouteEn>