Bläddra i källkod

Fixed error syncing album titles.

Iñigo Valentin 9 år sedan
förälder
incheckning
a538ed6cb4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/Sync.swift

+ 2 - 2
app/Sync.swift

@@ -1169,12 +1169,12 @@ class Sync{
 			//Get title_en
 			str = str.subStr(start : str.indexOf(target : ",\"")! + 1, end : str.length - 1)
 			let title_en : String = str.subStr(start : str.indexOf(target : "\"title_en\":")! + 12, end : str.indexOf(target : ",\"")! - 2)
-			row.setValue(title_es, forKey: "title_es")
+			row.setValue(title_en, forKey: "title_en")
 			
 			//Get title_eu
 			str = str.subStr(start : str.indexOf(target : ",\"")! + 1, end : str.length - 1)
 			let title_eu : String = str.subStr(start : str.indexOf(target : "\"title_eu\":")! + 12, end : str.indexOf(target : ",\"")! - 2)
-			row.setValue(title_es, forKey: "title_es")
+			row.setValue(title_eu, forKey: "title_eu")
 			
 			//Get description_es
 			str = str.subStr(start : str.indexOf(target : ",\"")! + 1, end : str.length - 1)