Ok i got home and tested this...
012: m.UrlGetMp3Info = m.UrlBase + "/FAN/xml/mp3Playlist.php"
013:
014: http = NewHttp(m.UrlGetMp3Info)
015: http.AddParam("token", token)
016:
017: rsp = http.Http.GetToString()
018: xml = CreateObject("roXMLElement")
019: print "GOT: " + rsp
020: print "Reason: " + http.Http.GetFailureReason()
021:
022: if not xml.Parse(rsp) then
023: print "Can't parse response"
024: ShowConnectionFailed()
025: return ""
026: end if
027:
028: if xml.GetName() <> "feed"
029: Dbg("Bad register response: ", xml.GetName())
030: ShowConnectionFailed()
031: return ""
032: end if
033:
034: if islist(xml.GetBody()) = false then
035: Dbg("No registration information available")
036: ShowConnectionFailed()
037: return ""
038: end if
039:
040: 'handle validation of response fields
041: for each e in xml.GetBody()
042: if e.GetName() = "title" then
043: title = e.GetBody()
044: end if
045: if e.GetName() = "contentType" then
046: author = e.GetBody()
047: end if
048: if e.GetName() = "synopsis" then
049: desc = e.GetBody()
050: end if
051: if e.GetName() = "streamUrl" then
052: url = e.GetBody()
053: end if
054: if e.GetName() = "image" then
055: image = e.GetBody()
056: end if
057:
058:
059:
060: song = CreateSong(title, desc, author, "mp3", url, image)
061: aa.posteritems.push(song)
062:
063: next
064:
065: return aa
066: End Function
/tmp/plugin/AFAAAAPEnNrs/pkg:/source/testMp3.brs(60): runtime error e9: Use of uninitialized variable
060: song = CreateSong(title, desc, author, "mp3", url, image)
i get the same error when i have the
"next" before or after
"song = "It doesn't say which variable but i would assume all of them are incorrect
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway