File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222#include "stdafx.h"
2323
24- #define ENABLE_CHECK_CONNECT 1
25-
2624#include "MainFrm.h"
2725#include <afxglobals.h>
2826#include <..\src\mfc\afximpl.h>
@@ -12314,14 +12312,11 @@ CString CMainFrame::OpenFile(OpenFileData* pOFD)
1231412312 const auto ext = GetFileExt(url).MakeLower();
1231512313
1231612314 bool ok = (ext != L".m3u" && ext != L".m3u8");
12317- #if ENABLE_CHECK_CONNECT
1231812315 if (ok) {
1231912316 ok = Content::Online::CheckConnect(url);
1232012317 }
12321- #endif
1232212318
1232312319 if (ok) {
12324- #if ENABLE_CHECK_CONNECT
1232512320 CString online_hdr;
1232612321 Content::Online::GetHeader(url, online_hdr);
1232712322 if (!online_hdr.IsEmpty()) {
@@ -12343,9 +12338,6 @@ CString CMainFrame::OpenFile(OpenFileData* pOFD)
1234312338 }
1234412339
1234512340 if (bIsHtml) {
12346- #else
12347- { {
12348- #endif
1234912341 m_bYoutubeOpening = true;
1235012342 CString ytdl_mesage;
1235112343 ytdl_mesage.Format(ResStr(IDS_CALLING_YOUTUBEDL), GetFileName(s.strYdlExePath));
@@ -12427,12 +12419,11 @@ CString CMainFrame::OpenFile(OpenFileData* pOFD)
1242712419
1242812420 HRESULT hr = S_OK;
1242912421
12430- #if ENABLE_CHECK_CONNECT
1243112422 if (!Content::Online::CheckConnect(fn)) {
1243212423 DLog(L"CMainFrame::OpenFile: Connection failed to %s", fn);
1243312424 hr = VFW_E_NOT_FOUND;
1243412425 }
12435- #endif
12426+
1243612427 CString online_hdr;
1243712428 Content::Online::GetHeader(fn, online_hdr);
1243812429 if (online_hdr.Find(L"StreamBuffRe") == -1) {
You can’t perform that action at this time.
0 commit comments