Skip to content
Permalink
Browse files

MythUIWebBrowser: load/save cookies to a text file

This fixes the annoyance of many UK based websites now asking you to accept
their cookie policy when you visit them.
  • Loading branch information
Paul Harrison
Paul Harrison committed May 5, 2013
1 parent b5e7db6 commit 92b702fe1e0481d9d9ba51f90f606ad6fd611a90
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythui/mythuiwebbrowser.cpp
@@ -107,6 +107,7 @@ static QNetworkAccessManager *GetNetworkAccessManager(void)

networkManager = new MythNetworkAccessManager();
LOG(VB_GENERAL, LOG_DEBUG, "Copying DLManager's Cookie Jar");
GetMythDownloadManager()->loadCookieJar(GetConfDir() + "/MythBrowser/cookiejar.txt");
networkManager->setCookieJar(GetMythDownloadManager()->copyCookieJar());

atexit(DestroyNetworkAccessManager);
@@ -271,6 +272,7 @@ MythWebPage::~MythWebPage()
{
LOG(VB_GENERAL, LOG_DEBUG, "Refreshing DLManager's Cookie Jar");
GetMythDownloadManager()->refreshCookieJar(networkManager->cookieJar());
GetMythDownloadManager()->saveCookieJar(GetConfDir() + "/MythBrowser/cookiejar.txt");
}

bool MythWebPage::supportsExtension(Extension extension) const

0 comments on commit 92b702f

Please sign in to comment.
You can’t perform that action at this time.