File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,18 @@ bool CAtagOne::StopHardware()
117
117
std::string GetFirstDeviceID (const std::string &shtml)
118
118
{
119
119
std::string sResult = shtml;
120
- // <tr onclick="javascript:changeDeviceAndRedirect('/Home/Index/{0}','6808-1401-3109_15-30-001-544');">
121
- size_t tpos = sResult .find (" javascript:changeDeviceAndRedirect(" );
120
+ // Evsdd - Updated string due to webpage change
121
+ // Original format: <tr onclick="javascript:changeDeviceAndRedirect('/Home/Index/{0}','6808-1401-3109_15-30-001-544');">
122
+ // New format: "/Home/Index/6808-1401-3109_15-30-001-544"
123
+ size_t tpos = sResult .find (" /Home/Index" );
122
124
if (tpos == std::string::npos)
123
125
return " " ;
124
126
sResult = sResult .substr (tpos);
125
- tpos = sResult .find (" ,' " );
127
+ tpos = sResult .find (" x/ " );
126
128
if (tpos == std::string::npos)
127
129
return " " ;
128
130
sResult = sResult .substr (tpos + 2 );
129
- tpos = sResult .find (" '); " );
131
+ tpos = sResult .find (" \" " );
130
132
if (tpos == std::string::npos)
131
133
return " " ;
132
134
sResult = sResult .substr (0 , tpos);
You can’t perform that action at this time.
0 commit comments