@@ -100,7 +100,7 @@ SResult SESSION::CSession::Initialize(std::string manifestUrl)
100
100
101
101
CURL::HTTPResponse manifestResp;
102
102
if (!CURL::DownloadFile (manifestUrl, manifestHeaders, {" etag" , " last-modified" }, manifestResp))
103
- return SResult::Error (" Cannot download the manifest file. " );
103
+ return SResult::Error (GUI::GetLocalizedString ( 30307 ) );
104
104
105
105
// The download speed with small file sizes is not accurate, we should download at least 512Kb
106
106
// to have a sufficient acceptable value to calculate the bandwidth,
@@ -115,12 +115,18 @@ SResult SESSION::CSession::Initialize(std::string manifestUrl)
115
115
116
116
m_adaptiveTree = PLAYLIST_FACTORY::CreateAdaptiveTree (manifestResp);
117
117
if (!m_adaptiveTree)
118
- return SResult::Error (" Unable to determine type of manifest file." );
118
+ {
119
+ LOG::LogF (LOGERROR, " Unable to determine type of manifest file." );
120
+ return SResult::Error (GUI::GetLocalizedString (30308 ));
121
+ }
119
122
120
123
m_adaptiveTree->Configure (m_reprChooser, kodiProps.GetManifestUpdParams ());
121
124
122
125
if (!m_adaptiveTree->Open (manifestResp.effectiveUrl , manifestResp.headers , manifestResp.data ))
123
- return SResult::Error (" Cannot parse the manifest file." );
126
+ {
127
+ LOG::LogF (LOGERROR, " Cannot parse the manifest file." );
128
+ return SResult::Error (GUI::GetLocalizedString (30308 ));
129
+ }
124
130
125
131
m_adaptiveTree->PostOpen ();
126
132
m_reprChooser->PostInit ();
@@ -349,7 +355,7 @@ void SESSION::CSession::InitializePeriod()
349
355
{
350
356
LOG::LogF (LOGERROR,
351
357
" No stream can be played, common causes: resolution limits or HDCP problem" );
352
- GUI::ErrorDialog (" No stream can be played " );
358
+ GUI::ErrorDialog (GUI::GetLocalizedString ( 30309 ) );
353
359
}
354
360
}
355
361
0 commit comments