2013-03-21, 01:29
Managed to work out in the end, i replaced from line 298 instead of 299, here is what is in mine from lines 297 till the break.
http://pastebin.com/5kWkxNhn Pastebin is to hopefully get the spacing correct.
http://pastebin.com/5kWkxNhn Pastebin is to hopefully get the spacing correct.
PHP Code:
for line in data.split("\n"):
index = line.find("ytplayer.config =")
if index != -1:
found = True
p1 = line.find("=", (index-3))
p2 = line.rfind(";")
if p1 <= 0 or p2 <= 0:
continue
data = line[p1 + 1:p2]
break