Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dvbviewer] Use utf-8 encoding to get and set the timers

  • Loading branch information...
commit e661174ceb32030234390d9fcb5e2907f81cd1d5 1 parent f0ccdcb
@A600 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 addons/pvr.dvbviewer/src/DvbData.cpp
View
8 addons/pvr.dvbviewer/src/DvbData.cpp
@@ -609,7 +609,7 @@ PVR_ERROR Dvb::GetTimers(ADDON_HANDLE handle)
std::vector<DvbTimer> Dvb::LoadTimers()
{
CStdString url;
- url.Format("%s%s", m_strURL.c_str(), "api/timerlist.html");
+ url.Format("%s%s", m_strURL.c_str(), "api/timerlist.html?utf8");
CStdString strXML;
strXML = GetHttpXML(url);
@@ -740,13 +740,13 @@ void Dvb::GenerateTimer(const PVR_TIMER &timer, bool bNewTimer)
int iChannelId = m_channels.at(timer.iClientChannelUid-1).iChannelId;
CStdString strTmp;
if (bNewTimer)
- strTmp.Format("api/timeradd.html?ch=%d&dor=%d&enable=1&start=%d&stop=%d&prio=%d&days=%s&title=%s", iChannelId, dor, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
+ strTmp.Format("api/timeradd.html?ch=%d&dor=%d&enable=1&start=%d&stop=%d&prio=%d&days=%s&title=%s&encoding=255", iChannelId, dor, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
else
{
int enabled = 1;
if (timer.state == PVR_TIMER_STATE_CANCELLED)
enabled = 0;
- strTmp.Format("api/timeredit.html?id=%d&ch=%d&dor=%d&enable=%d&start=%d&stop=%d&prio=%d&days=%s&title=%s", GetTimerID(timer), iChannelId, dor, enabled, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
+ strTmp.Format("api/timeredit.html?id=%d&ch=%d&dor=%d&enable=%d&start=%d&stop=%d&prio=%d&days=%s&title=%s&encoding=255", GetTimerID(timer), iChannelId, dor, enabled, start, stop, timer.iPriority, strWeek, URLEncodeInline(timer.strTitle));
}
SendSimpleCommand(strTmp);
@@ -789,7 +789,7 @@ PVR_ERROR Dvb::GetRecordings(ADDON_HANDLE handle)
m_recordings.clear();
CStdString url;
- url.Format("%s%s", m_strURL.c_str(), "api/recordings.html?utf8=");
+ url.Format("%s%s", m_strURL.c_str(), "api/recordings.html?utf8");
CStdString strXML;
strXML = GetHttpXML(url);
Please sign in to comment.
Something went wrong with that request. Please try again.