Skip to content

Commit

Permalink
Fix signature decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian committed May 14, 2020
1 parent b1be244 commit cc2466b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AIMPYouTube.rc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ FONT 8, "Tahoma", 400, 0, 0
CONTROL "", IDC_YTDLTIMEOUTSPIN, UPDOWN_CLASS, UDS_ARROWKEYS | UDS_AUTOBUDDY | UDS_HOTTRACK | UDS_SETBUDDYINT, 87, 212, 11, 15, WS_EX_LEFT | WS_TABSTOP
AUTOCHECKBOX "Always use youtube-dl", IDC_YTDLFORCE, 15, 183, 250, 8, 0, WS_EX_LEFT | WS_TABSTOP
EDITTEXT IDC_YTDLPARAMS, 58, 195, 137, 14, ES_AUTOHSCROLL, WS_EX_LEFT
LTEXT "aimp_YouTube v1.6", IDC_VERSION, 30, 244, 285, 8, SS_LEFT | SS_NOTIFY, WS_EX_LEFT
LTEXT "aimp_YouTube v1.7", IDC_VERSION, 30, 244, 285, 8, SS_LEFT | SS_NOTIFY, WS_EX_LEFT
}


Expand Down
2 changes: 1 addition & 1 deletion YouTubeAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void YouTubeAPI::ResolveUrl(const std::wstring &url, const std::wstring &playlis
std::wstring YouTubeAPI::GetStreamUrl(const std::wstring &id) {
std::wstring stream_url;
if (!YouTubeDL::Force) {
std::wstring url2(L"https://www.youtube.com/get_video_info?video_id=" + id + L"&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F" + id + L"&sts=18389&html5=1");
std::wstring url2(L"https://www.youtube.com/get_video_info?video_id=" + id + L"&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F" + id + L"&html5=1");
AimpHTTP::Get(url2, [&](unsigned char *data, int size) {
if (char *streams = strstr((char *)data, "player_response=")) {
streams += 16;
Expand Down

0 comments on commit cc2466b

Please sign in to comment.