|
|
@ -5,6 +5,8 @@
|
|
|
|
module YoutubeAPI
|
|
|
|
module YoutubeAPI
|
|
|
|
extend self
|
|
|
|
extend self
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ANDROID_APP_VERSION = "17.29.35"
|
|
|
|
|
|
|
|
|
|
|
|
# Enumerate used to select one of the clients supported by the API
|
|
|
|
# Enumerate used to select one of the clients supported by the API
|
|
|
|
enum ClientType
|
|
|
|
enum ClientType
|
|
|
|
Web
|
|
|
|
Web
|
|
|
@ -45,19 +47,19 @@ module YoutubeAPI
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ClientType::Android => {
|
|
|
|
ClientType::Android => {
|
|
|
|
name: "ANDROID",
|
|
|
|
name: "ANDROID",
|
|
|
|
version: "16.20",
|
|
|
|
version: ANDROID_APP_VERSION,
|
|
|
|
api_key: "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w",
|
|
|
|
api_key: "AIzaSyA8eiZmM1FaDVjRy-df2KTyQ_vz_yYM39w",
|
|
|
|
screen: "", # ??
|
|
|
|
screen: "", # ??
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ClientType::AndroidEmbeddedPlayer => {
|
|
|
|
ClientType::AndroidEmbeddedPlayer => {
|
|
|
|
name: "ANDROID_EMBEDDED_PLAYER", # 55
|
|
|
|
name: "ANDROID_EMBEDDED_PLAYER", # 55
|
|
|
|
version: "16.20",
|
|
|
|
version: ANDROID_APP_VERSION,
|
|
|
|
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
|
|
|
|
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
|
|
|
|
screen: "", # None?
|
|
|
|
screen: "", # None?
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ClientType::AndroidScreenEmbed => {
|
|
|
|
ClientType::AndroidScreenEmbed => {
|
|
|
|
name: "ANDROID", # 3
|
|
|
|
name: "ANDROID", # 3
|
|
|
|
version: "16.20",
|
|
|
|
version: ANDROID_APP_VERSION,
|
|
|
|
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
|
|
|
|
api_key: "AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8",
|
|
|
|
screen: "EMBED",
|
|
|
|
screen: "EMBED",
|
|
|
|
},
|
|
|
|
},
|
|
|
|