Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updating thumb urls in AddActor wasn't working due to a missing exec()

  • Loading branch information...
commit 7d27fbcc241d86cd4d13b63e748c6b6d8afc07ab 1 parent ee66d08
authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  xbmc/video/VideoDatabase.cpp
6  xbmc/video/VideoDatabase.cpp
@@ -1198,12 +1198,12 @@ int CVideoDatabase::AddActor(const CStdString& strActor, const CStdString& strTh
1198 1198
     }
1199 1199
     else
1200 1200
     {
1201  
-      const field_value value = m_pDS->fv("idActor");
1202  
-      int idActor = value.get_asInt() ;
  1201
+      int idActor = m_pDS->fv("idActor").get_asInt();
  1202
+      m_pDS->close();
1203 1203
       // update the thumb url's
1204 1204
       if (!strThumb.IsEmpty())
1205 1205
         strSQL=PrepareSQL("update actors set strThumb='%s' where idActor=%i",strThumb.c_str(),idActor);
1206  
-      m_pDS->close();
  1206
+      m_pDS->exec(strSQL.c_str());
1207 1207
       return idActor;
1208 1208
     }
1209 1209
 

0 notes on commit 7d27fbc

Please sign in to comment.
Something went wrong with that request. Please try again.