Skip to content

Commit

Permalink
MythUIWebBrowser: load/save cookies to a text file
Browse files Browse the repository at this point in the history
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 committed May 5, 2013
1 parent b5e7db6 commit 92b702f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythuiwebbrowser.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ static QNetworkAccessManager *GetNetworkAccessManager(void)


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


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


bool MythWebPage::supportsExtension(Extension extension) const bool MythWebPage::supportsExtension(Extension extension) const
Expand Down

0 comments on commit 92b702f

Please sign in to comment.