//You can do this, and linkIm3 gives you the url for the image
let val2 = line.components(separatedBy: " ")
for sep in val2{
if sep.hasPrefix("tvg-logo="){
let sep2 = sep.components(separatedBy: ",")
let sep1 = sep2[0]
let indexStartOfText = sep1.index(sep1.startIndex, offsetBy: 10)
linkIm2 = String(sep1[indexStartOfText...])
let indexEndOfText = linkIm2.index(linkIm2.endIndex, offsetBy: -1)
linkIm3 = String(linkIm2[..<indexEndOfText])
}
}