Sida 2 av 3 FörstaFörsta 123 SistaSista
Visar resultat 31 till 60 av 62

Diskussion: TvGuide i XBMC...

  1. #31
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    Ktd??
    Kan du hjälpa mig oxå o få igång en TV guide ???

    17-09-2004 19:47:30 -->Python Initialized<--
    17-09-2004 19:47:30
    17-09-2004 19:47:30 Traceback (most recent call last):
    17-09-2004 19:47:30 File "Q:\scripts\tv.guide.py", line 5, in ?
    17-09-2004 19:47:30
    17-09-2004 19:47:30 from re import search, DOTALL
    17-09-2004 19:47:30 ImportError
    17-09-2004 19:47:30 :
    17-09-2004 19:47:30 No module named re
    17-09-2004 19:47:30

    Få detta vet ej vad jag skall göra, andvänder detta script tv.guide.py
    som jag hittade på länken längst upp...

  2. #32
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Klistra in hela din tv.guide.py

    *EDIT*
    Jag hoppas du har python mappen inlaggd i din XBMC mapp...

  3. #33
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    Den är där...
    Kan vi ta det på ICQ ???

  4. #34
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    Men här kommer filen:

    # Python XMLTV "listing.xml" TVGuide script by cruent 2004
    # Version update 0.2: Added FTP support and sorted channels

    import time, xbmcgui, xbmc
    from re import search, DOTALL
    from ftplib import FTP
    from string import split, replace
    from textwrap import fill
    from os.path import getsize

    # WANT SORTED CHANNELS
    sorted = "false"

    # GET ACTIONCODES FROM KEYMAP.XML
    ACTION_MOVE_LEFT = 1
    ACTION_MOVE_RIGHT = 2
    ACTION_MOVE_UP = 3
    ACTION_MOVE_DOWN = 4
    ACTION_SELECT_ITEM = 7
    ACTION_PARENT_DIRECTORY = 9
    ACTION_PREVIOUS_MENU = 10

    # THE PATH TO IMAGES
    background = "q:\\tvguide\\background.png"
    timebar = "q:\\tvguide\\timebar.png"
    blackbar = "q:\\tvguide\\blackbar.png"
    titlebox = "q:\\tvguide\\titlebox.png"
    descbox = "q:\\tvguide\\descbox.png"

    # PATH TO LISTING XML FILE
    listing = "q:\\tvguide\\listing.xml"

    # THE DATA LISTING
    chanList = []
    showList = {}

    # THE CONTROL ID'S
    theChans = []
    theShows = []
    theInfos = []

    class CListing:
    def GetFile(self):
    ip = "192.168.0.2" #MODIFY IP FOR YOUR NEEDS
    port = "21" #MODIFY PORT FOR YOUR NEEDS
    username = "xbox" #MODIFY USERNAME FOR YOUR NEEDS
    password = "tvguide" #MODIFY PASSWORD FOR YOUR NEEDS

    try:
    fsize = getsize(listing)
    except:
    fsize = 0

    upload = "yes"

    try:
    ftp = FTP()
    ftp.connect(ip, port)
    ftp.login(username,password)
    files = []
    ftp.dir(".",files.append)
    for file in files:
    temp = string.split(file, None, 8)
    xml = string.lower(temp[8])
    if(xml == 'listing.xml'):
    if(int(fsize) == int(temp[4])):
    upload = "no"

    if(upload == "yes"):
    print "upload"
    ftp.retrbinary('RETR listing.XML', open(listing, 'wb').write)
    ftp.quit()
    except:
    print "Failed to FTP listing.xml"

    try:
    file = open(listing,"r")
    data = file.read()
    file.close()
    return data
    except:
    print "Failed to Open listing.xml"
    return ""

    def ProcessXML(self):
    listing = self.GetFile()
    channels = split(listing, '<channel ')
    shows = split(listing, '<programme ')

    # STORE CHANNEL LIST
    no_first = 1
    for channel in channels:
    if no_first != 1:
    self.ParseXML(channel, 'id')
    no_first = 0

    # STORE SHOW LIST
    no_first = 1
    for show in shows:
    if no_first != 1:
    self.ParseXML(show, 'start')
    no_first = 0

    def ParseXML(self, line, tag):
    if(tag == "id"):
    self.id = 0
    self.display = ""
    channels = search('' + tag + '=".*</channel>', line, DOTALL)
    try:
    if channels.group(0):
    id = search('' + tag + '="(.*?)"',channels.group(0))
    try:
    if id.group(1):
    self.id = id.group(1)
    except:
    self.id = ""

    display = search('<display-name>(.*?)</display-name>',channels.group(0))
    try:
    if display.group(1):
    self.display = display.group(1)
    except:
    self.display = "display error"

    showList[self.id] = {}
    chanList.append([self.id,self.display])
    except:
    return ""

    if(tag == "start"):
    self.starttime = 0
    self.endtime = 0
    self.id = ""
    self.title = ""
    self.desc_buffer = ""
    self.duration = 0

    starttime = search('start="(.*?)"', line)
    try:
    if starttime.group(1):
    self.starttime = starttime.group(1)
    except:
    self.starttime = ""

    channel = search('channel="(.*?)"', line)
    try:
    if channel.group(1):
    self.id = channel.group(1)
    except:
    self.id = ""

    endtime = search('stop="(.*?)"', line)
    try:
    if endtime.group(1):
    self.endtime = endtime.group(1)
    except:
    self.endtime = ""

    self.duration = self.CalculateDuration(self.starttime, self.endtime)

    title = search('<title.*?>(.*?)</title>', line)
    try:
    if title.group(1):
    self.title = title.group(1)
    except:
    self.title = "title error"

    # sub = ""
    # subtitle = search('<title>(.*?)</title>', line)
    # try:
    # if subtitle.group(1):
    # sub = subtitle.group(1)
    # self.desc_buffer = "%s%s\n" % (self.desc_buffer, sub)
    # except:
    # sub = ""

    desc = ""
    descrip = search('<desc.*?>(.*?)</desc>', line)
    try:
    if descrip.group(1):
    desc = descrip.group(1)
    self.desc_buffer = "%s%s" % (self.desc_buffer, fill(desc,540/10))
    except:
    desc = ""

    epnum = ""
    episode = search('<episode-num.*?>(.*?)</episode-num>', line)
    try:
    if episode.group(1):
    epnum = episode.group(1)
    self.desc_buffer = "%s (%s)" % (self.desc_buffer, epnum)
    except:
    epnum = ""

    self.title = replace(self.title,'Æ','æ')
    self.title = replace(self.title,'&amp;','&')
    self.desc_buffer = replace(self.desc_buffer,'Æ','æ')
    self.desc_buffer = replace(self.desc_buffer,'&amp;','&')
    showList[self.id][self.starttime] = {'title' : self.title, 'description' : self.desc_buffer, 'duration' : self.duration}

    def CalculateDuration(self, starttime, endtime):
    if(starttime == "" or endtime == ""):
    return 60

    start = search('\d\d\d\d\d\d\d\d\d\d\d\d', starttime)
    end = search('\d\d\d\d\d\d\d\d\d\d\d\d', endtime)
    starting = time.strptime(start.group(0),"%Y%m%d%H%M")
    ending = time.strptime(end.group(0),"%Y%m%d%H%M")

    secs = 0
    secs = time.mktime(ending) - time.mktime(starting)
    return int(secs/60.0)

    class CTVTime:
    showtime = 0
    def __init__(self, stime):
    try:
    start = search('\d\d\d\d\d\d\d\d\d\d\d\d', stime)
    self.showtime = time.mktime(time.strptime(start.group(0),"%Y%m%d%H %M"))
    except:
    self.showtime = 0

    def AddHalfHour(self, amount):
    self.showtime += (1800 * amount) # ADDS 30MINS PER AMOUNT

    def GetTimeBar(self):
    time1 = self.showtime
    time2 = self.showtime + (1800 * 1)
    time3 = self.showtime + (1800 * 2)

    asctime1 = time.asctime(time.localtime(time1))
    asctime2 = time.asctime(time.localtime(time2))
    asctime3 = time.asctime(time.localtime(time3))

    timetitle1 = search('(\w+)\s(\w+)\s(\d+)\s(\d+:\d+)', asctime1)
    timetitle2 = search('(\d+:\d+)', asctime2)
    timetitle3 = search('(\d+:\d+)', asctime3)

    timetitle = timetitle1.group(1)+" "+timetitle1.group(2)+" "+timetitle1.group(3)+" "+timetitle1.group(4)+" "+timetitle2.group(1)+" "+timetitle3.group(1)
    return timetitle

    def RoundDownHalfHour(self):
    currenttime = time.localtime(self.showtime)
    if(currenttime.tm_min < 30):
    leftover = currenttime.tm_min * 60 + currenttime.tm_sec # SETS TM_MIN = 00
    else:
    leftover = currenttime.tm_min * 60 + currenttime.tm_sec - 1800 # SETS TM_MIN = 30
    self.showtime = self.showtime - leftover

    def SetToSystemTime(self):
    self.showtime = time.mktime(time.localtime(time.time()))

    def GetCurrentTime(self):
    return int(self.showtime)

    class CTVGuide(xbmcgui.Window):
    def __init__(self):
    self.processXML = CListing()
    self.processXML.ProcessXML()
    del self.processXML

    self.currentTime = CTVTime(0)
    self.currentTime.SetToSystemTime()
    self.currentTime.RoundDownHalfHour()
    screenx = self.getWidth()
    screeny = self.getHeight()

    # THE CHANNEL NUMBER
    self.channum = 0
    self.sortedchanList = []
    for id, display in chanList:
    self.sortedchanList.append(display)

    if (sorted == "true"):
    self.sortedchanList.sort()

    # CONTROLS
    self.theXOffset = 35
    self.theYOffset= 55
    self.font = 'font14'
    self.fontcolor = '0xFFFFFFFF'

    self.addControl(xbmcgui.ControlImage(0,0,screenx,s creeny, background))
    self.addControl(xbmcgui.ControlImage(self.theXOffs et,25,125+(180*3),30,timebar))

    self.strCaptionWday = xbmcgui.ControlLabel(self.theXOffset+3, 25+3, 200, 200, '', self.font, self.fontcolor )
    self.strCaptionMon = xbmcgui.ControlLabel(self.theXOffset+3+40, 25+3, 200, 200, '', self.font, self.fontcolor )
    self.strCaptionDay = xbmcgui.ControlLabel(self.theXOffset+3+40+40, 25+3, 200, 200, '', self.font, self.fontcolor )
    self.strCaptionTime1 = xbmcgui.ControlLabel(self.theXOffset+3+125, 25+3, 200, 200, '', self.font, self.fontcolor )
    self.strCaptionTime2 = xbmcgui.ControlLabel(self.theXOffset+3+125+180, 25+3, 200, 200, '', self.font, self.fontcolor )
    self.strCaptionTime3 = xbmcgui.ControlLabel(self.theXOffset+3+125+180+180 , 25+3, 200, 200, '', self.font, self.fontcolor )
    self.addControl(self.strCaptionWday)
    self.addControl(self.strCaptionMon)
    self.addControl(self.strCaptionDay)
    self.addControl(self.strCaptionTime1)
    self.addControl(self.strCaptionTime2)
    self.addControl(self.strCaptionTime3)

    # OTHER CONTROLS / LABELS
    self.UpdateTimeTitle()
    self.CreateChannels()
    self.CreateShows()

    def UpdateTimeTitle(self):
    current = self.currentTime.GetTimeBar()
    title = search('(\w+)\s(\w+)\s(\d+)\s(\d+:\d+)\s(\d+:\d+)\ s(\d+:\d+)', current)
    self.strCaptionWday.setLabel(title.group(1))
    self.strCaptionMon.setLabel(title.group(2))
    self.strCaptionDay.setLabel(title.group(3))
    self.strCaptionTime1.setLabel(title.group(4))
    self.strCaptionTime2.setLabel(title.group(5))
    self.strCaptionTime3.setLabel(title.group(6))

    def CreateChannels(self):
    self.ClearChannels()
    y = self.theYOffset
    print self.sortedchanList
    for display in self.sortedchanList[0+self.channum:10+self.channum]:
    theChans.append(xbmcgui.ControlImage(self.theXOffs et, y, 125, 50, titlebox))
    theChans.append(xbmcgui.ControlLabel(self.theXOffs et+3, y+2, 125, 60, fill(display,125/10), self.font, self.fontcolor ))
    y += 50
    for theChan in theChans:
    self.addControl(theChan)

    def CreateShows(self):
    self.ClearShows()
    starttime = self.currentTime.GetCurrentTime()
    endtime = starttime + (1800*3)
    y = self.theYOffset

    for display1 in self.sortedchanList[0+self.channum:10+self.channum]:
    for channel, display2 in chanList:
    if (display1 == display2):
    xoffset = 160
    showtimes = showList[channel].keys()
    showtimes.sort()
    for show in showtimes:
    showstr = search('(\d\d\d\d\d\d\d\d\d\d\d\d)', show)
    times = int(time.mktime(time.strptime(showstr.group(0),"%Y %m%d%H%M")))
    if(times > endtime):
    break
    elif(times < starttime and times+(int(showList[channel][show]['duration'])*60) > starttime and times+(int(showList[channel][show]['duration'])*60) <= endtime):
    total = ((((times+int(showList[channel][show]['duration'])*60-starttime)/60)*6)/10)
    if (total < 1):
    total = 1
    title = fill(showList[channel][show]['title'],total)
    title = title.split("\n")[0:2]
    title = "\n".join(title)
    theShows.append(xbmcgui.ControlImage((xoffset+((st arttime-starttime)/60)*6), y, ((times+int(showList[channel][show]['duration'])*60-starttime)/60)*6, 50, titlebox))
    theShows.append(xbmcgui.ControlImage((xoffset+((st arttime-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlImage((xoffset+((st arttime-starttime)/60)*6)+(((times+int(showList[channel][show]['duration'])*60-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlLabel((xoffset+((st arttime-starttime)/60)*6)+3, y+2, 1, 60, title, self.font, self.fontcolor))
    elif(times >= starttime and times+(int(showList[channel][show]['duration'])*60) <= endtime):
    total = (((showList[channel][show]['duration'])*6)/10)
    if (total < 1):
    total = 1
    title = fill(showList[channel][show]['title'],total)
    title = title.split("\n")[0:2]
    title = "\n".join(title)
    theShows.append(xbmcgui.ControlImage((xoffset+((ti mes-starttime)/60)*6), y, (showList[channel][show]['duration'])*6, 50, titlebox))
    theShows.append(xbmcgui.ControlImage((xoffset+((ti mes-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlImage((xoffset+((ti mes-starttime)/60)*6)+((showList[channel][show]['duration'])*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlLabel((xoffset+((ti mes-starttime)/60)*6)+3, y+2, 1, 60, title, self.font, self.fontcolor))
    elif(times < endtime and times+(int(showList[channel][show]['duration'])*60) > endtime and times >= starttime):
    total = ((((endtime-times)/60)*6)/10)
    if (total < 1):
    total = 1
    title = fill(showList[channel][show]['title'],total)
    title = title.split("\n")[0:2]
    title = "\n".join(title)
    theShows.append(xbmcgui.ControlImage((xoffset+((ti mes-starttime)/60)*6), y, ((endtime-times)/60)*6, 50, titlebox))
    theShows.append(xbmcgui.ControlImage((xoffset+((ti mes-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlImage((xoffset+((en dtime-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlLabel((xoffset+((ti mes-starttime)/60)*6)+3, y+2, 1, 60, title, self.font, self.fontcolor))
    break
    elif(times < starttime and times+(int(showList[channel][show]['duration'])*60) > endtime):
    total = ((((endtime-starttime)/60)*6)/10)
    if (total < 1):
    total = 1
    title = fill(showList[channel][show]['title'],total)
    title = title.split("\n")[0:2]
    title = "\n".join(title)
    theShows.append(xbmcgui.ControlImage((xoffset+((st arttime-starttime)/60)*6), y, ((endtime-starttime)/60)*6, 50, titlebox))
    theShows.append(xbmcgui.ControlImage((xoffset+((st arttime-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlImage((xoffset+((en dtime-starttime)/60)*6)-2, y, 2, 50, blackbar))
    theShows.append(xbmcgui.ControlLabel((xoffset+((st arttime-starttime)/60)*6)+3, y+2, 1, 60, title, self.font, self.fontcolor))
    break
    else:
    continue
    y += 50
    for theShow in theShows:
    self.addControl(theShow)

    def CreateInfo(self):
    y = self.theYOffset
    xoffset = 160
    curtime = self.currentTime.GetCurrentTime()
    for channel, display in chanList:
    if (display == self.sortedchanList[self.channum]):
    showtimes = showList[channel].keys()
    showtimes.sort()
    for show in showtimes:
    showstr = search('(\d\d\d\d\d\d\d\d\d\d\d\d)', show)
    times = int(time.mktime(time.strptime(showstr.group(0),"%Y %m%d%H%M")))
    if(curtime >= times and curtime < times+(int(showList[channel][show]['duration'])*60)):
    start = time.asctime(time.localtime(times))
    times = times+(int(showList[channel][show]['duration'])*60)
    end = time.asctime(time.localtime(times))
    start = search('(\d+:\d+)', start)
    end = search('(\d+:\d+)', end)
    description = showList[channel][show]['description']
    description = description.split("\n")[0:17]
    description = "\n".join(description)
    info = "%s\n%s - %s (%s min)\n%s" % (showList[channel][show]['title'], start.group(1), end.group(1), showList[channel][show]['duration'], description)
    theInfos.append(xbmcgui.ControlImage(xoffset, y+50, 540, 450, descbox))
    theInfos.append(xbmcgui.ControlImage(xoffset, y+50, 540, 450, descbox))
    theInfos.append(xbmcgui.ControlImage(xoffset, y+50, 540, 450, descbox))
    theInfos.append(xbmcgui.ControlImage(xoffset, y+50, 540, 450, descbox))
    theInfos.append(xbmcgui.ControlLabel(xoffset+3, y+50+2, 540, 450, info, self.font, self.fontcolor ))
    for theInfo in theInfos:
    self.addControl(theInfo)

    def ClearChannels(self):
    for theChan in theChans:
    self.removeControl(theChan)
    while(len(theChans) != 0):
    theChans.pop()

    def ClearShows(self):
    for theShow in theShows:
    self.removeControl(theShow)
    while(len(theShows) != 0):
    theShows.pop()

    def ClearInfos(self):
    for theInfo in theInfos:
    self.removeControl(theInfo)
    while(len(theInfos) != 0):
    theInfos.pop()

    def onAction(self, action):
    if action == ACTION_PREVIOUS_MENU:
    self.close()

    if action == ACTION_MOVE_LEFT:
    xbmcgui.lock()
    try:
    self.ClearInfos()
    except:
    pass
    try:
    self.currentTime.AddHalfHour(-1)
    self.UpdateTimeTitle()
    self.CreateShows()
    except:
    pass
    xbmcgui.unlock()

    if action == ACTION_MOVE_RIGHT:
    xbmcgui.lock()
    try:
    self.ClearInfos()
    except:
    pass
    try:
    self.currentTime.AddHalfHour(1)
    self.UpdateTimeTitle()
    self.CreateShows()
    except:
    pass
    xbmcgui.unlock()

    if action == ACTION_MOVE_UP:
    xbmcgui.lock()
    try:
    self.ClearInfos()
    except:
    pass
    try:
    if self.channum > 0 and self.channum <= len(chanList)-1:
    self.channum = self.channum - 1
    self.CreateChannels()
    self.CreateShows()
    except:
    pass
    xbmcgui.unlock()

    if action == ACTION_MOVE_DOWN:
    xbmcgui.lock()
    try:
    self.ClearInfos()
    except:
    pass
    try:
    if self.channum >= 0 and self.channum < len(chanList)-1:
    self.channum = self.channum + 1
    self.CreateChannels()
    self.CreateShows()
    except:
    pass
    xbmcgui.unlock()

    if action == ACTION_SELECT_ITEM:
    xbmcgui.lock()
    try:
    self.CreateInfo()
    except:
    try:
    self.ClearInfos()
    except:
    pass
    xbmcgui.unlock()

    if action == ACTION_PARENT_DIRECTORY:
    xbmcgui.lock()
    try:
    self.ClearInfos()
    except:
    pass
    try:
    self.currentTime.SetToSystemTime()
    self.currentTime.RoundDownHalfHour()
    self.UpdateTimeTitle()
    self.CreateShows()
    except:
    pass
    xbmcgui.unlock()

    # MAIN PROGRAM START HERE
    tvguide = CTVGuide()
    tvguide.doModal()
    del tvguide


    "Är nybörjare på detta" =(

  5. #35
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Ta bort allt mellan
    def GetFile(self):
    och
    try:
    file = open(listing,"r")
    din py fil borde börja med
    # Python XMLTV "listing.xml" TVGuide script by cruent 2004
    # Version update 0.2: Added FTP support and sorted channels

    import time, xbmcgui, xbmc
    from re import search, DOTALL
    from ftplib import FTP
    from string import split, replace
    from textwrap import fill
    from os.path import getsize

    # WANT SORTED CHANNELS
    sorted = "false"

    # GET ACTIONCODES FROM KEYMAP.XML
    ACTION_MOVE_LEFT = 1
    ACTION_MOVE_RIGHT = 2
    ACTION_MOVE_UP = 3
    ACTION_MOVE_DOWN = 4
    ACTION_SELECT_ITEM = 7
    ACTION_PARENT_DIRECTORY = 9
    ACTION_PREVIOUS_MENU = 10

    # THE PATH TO IMAGES
    background = "q:\\tvguide\\background.png"
    timebar = "q:\\tvguide\\timebar.png"
    blackbar = "q:\\tvguide\\blackbar.png"
    titlebox = "q:\\tvguide\\titlebox.png"
    descbox = "q:\\tvguide\\descbox.png"

    # PATH TO LISTING XML FILE
    listing = "q:\\tvguide\\listing.xml"

    # THE DATA LISTING
    chanList = []
    showList = {}

    # THE CONTROL ID'S
    theChans = []
    theShows = []
    theInfos = []

    class CListing:
    def GetFile(self):
    try:
    file = open(listing,"r")
    data = file.read()
    sen. Tänk på att det är VIKTIGT att behålla alla tabbar och mellanslag i python språket...

  6. #36
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    jag har också ett problem. tvguiden funkar men jag kan inte hämta listing från min dator. så här ser min listing.xml.py ut

    # I took this script from XBMC´s example and modifyed it to suit me...
    #
    # Remember to change all 4 lines where I wrote "# Change" after!
    #
    # //ktd

    adres = '192.168.0.1' # Change
    remotedir = 'c:\o2grabber\' # Change
    remotefile = 'listing.xml'
    localfile = 'Q:\\tvguide\\listing.xml'
    username = 'Macke' # Change
    userpass = 'NLRAW' # Change

    import sys, socket, xbmc, xbmcgui
    from ftplib import FTP

    class writer:
    def __init__(self):
    self.size = 0
    self.copied = 0;
    def write(self, data):
    f.write(data)
    self.copied = self.copied + len(data)
    dialog.update((self.copied * 100)/ self.size)

    pwriter = writer()

    dialog = xbmcgui.DialogProgress()

    ftp = FTP(adres) # connect to host, default port

    ftp.login(username,userpass) # default, i.e.: user anonymous, passwd user@hostname

    ftp.cwd(remotedir)
    pwriter.size = ftp.size(remotefile)
    f = open(localfile, "wb")

    dialog.create("downloading", remotefile)
    ftp.retrbinary('RETR ' + remotefile, pwriter.write, 8192)

    f.close()
    dialog.close()
    ftp.quit()
    vet inte riktigt vad jag ska skriva i adres och det. snälla hjälp.

    //macke
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  7. #37
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    Ktd??
    Kan du adda mig på ICQnr: "847586"

    Får det inte till att fungera....

  8. #38
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    Macke
    Har du tid o hjälpa mig ??

  9. #39
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    kan försöka. vad vill du ha hjälp med?
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  10. #40
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Citat Original inlägg av mackeswissman
    vet inte riktigt vad jag ska skriva i adres och det. snälla hjälp.
    Skämtar du? I pyfilen har jag ju skrivit # Remember to change all 4 lines where I wrote "# Change" after!

    På alla rader som har # Change ska du ändra så det passar dig & ditt nätverk...

  11. #41
    Registrerade
    Sep 2004
    Inlägg
    21
    Respekt
    0
    ktd
    Kunde du adda mig på Icq ???
    Om du har tid att hjälpa mig...

    När jag startar scriptet så blinkar running till o sen händer ingenting.....

    =(

  12. #42
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Har du tagit bort raderna i början på tv.guide.py som man ska? Kolla inlägg 35 i den här tråden...

  13. #43
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    så dum e jag inte ( även om det verkar så ). Men jag hgar skrivit in min ipadress och lösen till ftpservern men när jag använder scriptet så står det en massa skit som tex socket error. E kanske inte så lätt o fatta, så hur tar man screenshoots i xmbc och var hamnar dom?

    //macke
    Last edited by mackeswissman; 2004-09-20 at 16:47.
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  14. #44
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Lättast att se vart felet ligger är ju att kolla loggen i din ftpserver!!!

  15. #45
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    har kollat den men förstår inte den.

    -->Python Initialized<--
    sys:1eprecationWarning: Non-ASCII character ´\xb4´in file
    Q:\scripts\listing.xml.py on line 1.but no encoding declared;see
    http://www.python.org/peps/pep-0263.html. for details
    Traceback (most recent call last):
    File "Q:\scripts\listing.xml.py", line 34 in ?
    ftp.cwd(remotedir)
    File Q:\python\python23.zlib\ftplib.py, line 494, in cwd
    File Q:\python\python23.zlib\ftplib.py, line 246, in voidcmd
    File Q:\python\python23.zlib\ftplib.py, line 221, voidresp
    File Q:\python\python23.zlib\ftplib.py, line 214, in getresp
    ftplib.error perm:550 "/c:/o2grabber": No such directory

    Ser du felet?
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  16. #46
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    har ändrat directoryt till o2grabber så nu står invalid syntax.
    fattar noll.
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  17. #47
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Inte där! Logfilen på din ftpserver på datorn!!!!!!!!!!!

  18. #48
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    det står att jag loggat in men att /c:/o2grabber inte är ett direktiv.
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  19. #49
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Logga in på din egen ftp och kolla sökvägen till listing.xml...

  20. #50
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    har gjort det och så hät står det:
    21:11:32 : 192.168.0.2 [18] > new user connected
    21:11:32 : 192.168.0.2 [18] > USER Macke
    21:11:32 : 192.168.0.2 [18] > 331 Password required for Macke.
    21:11:32 Macke: 192.168.0.2 [18] > user Macke logging in
    21:11:32 Macke: 192.168.0.2 [18] > TYPE A
    21:11:32 Macke: 192.168.0.2 [18] > 200 Type set to A.
    21:11:32 Macke: 192.168.0.2 [18] > PASV
    21:11:33 Macke: 192.168.0.2 [18] > 227 Entering Passive Mode (192,168,0,1,0,3).
    21:11:33 Macke: 192.168.0.2 [18] > LIST .
    21:11:33 Macke: 192.168.0.2 [18] > 150 Opening data connection for file list of "/."
    21:11:33 Macke: 192.168.0.2 [18] > 226 Transfer complete.
    21:11:33 Macke: 192.168.0.2 [18] > user disconnected
    fattar inte vad som e fel. i xbmc står det invalid syntax när jag försöker.
    min ftp server funkar kanon så det måste vara fel på xbmc.

    skumt.
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  21. #51
    Registrerade
    Jun 2004
    Inlägg
    1
    Respekt
    0
    ftplib.error perm:550 "/c:/o2grabber": No such directory

    Lite ny på det här men
    c:/ ???
    c:\

    Kan det va så enkelt...

  22. #52
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Som jag sa i mitt inlägg nr 49... Logga in på din egen ftp och kolla sökvägen till listing.xml...
    Tex så är min sökväg till listing.xml
    /g/temp/listing.xml
    Är du säker på att du ska ha c:? bara c verkar mer logiskt.
    Sen som CalleH sa så borde du använd / och inte \...
    Men som sagt... LOGGA IN PÅ DIN EGEN FTP SÅ SER DU!!!

  23. #53
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    funkar inte.Så här står det iallafall, överst står det Non-ASCII character ´/xb4´ in file listings.xml.py on line 1.

    sen verkar det som visa filer hamnar i kö. sen kommer socket error


    har loggat in på min ftp server och allt står rätt till. allt verkar ju stämma om man kollar på ftploggen (se tidigare inlägg ).

    //macke
    Last edited by mackeswissman; 2004-09-21 at 17:34.
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  24. #54
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Nä det verkar inte stämma enligt din ftpservers log iom att den inte kopierar filen. Har du listing.xml i rooten på ftpservern?
    [QUOTE]21:11:33 Macke: 192.168.0.2 [18] > 150 Opening data connection for file list of "/."Är det där listing.xml ligger?

  25. #55
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    måste vara fel på min xbmc build. provade att göra om listings.xml.py filen till en bat fil och sen körde jag den. då funkade den. istället för opening data connection for file list of "/" stod det o
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  26. #56
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    måste vara fel på min xbmc build. provade att göra om listings.xml.py filen till en bat fil och sen körde jag den. då funkade den. istället för opening data connection for file list of "/" stod det opening data connection for file list of "/o2grabber". ska prova att ladda ner en ny build.

    jag återkommer

    //macke
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  27. #57
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    funkar nu
    hur fixar man en knapp som funkar?? skulle bli tacksam om du kunde förklara ( fattade inte din förra förklaring ).

    tack för du hjälpte med ktd

    //macke
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  28. #58
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Nu för tiden behöver man inte lägga till knappar i huvudmenyn...

    Det är snyggare att ha den i submenyn!!!


  29. #59
    Registrerade
    Sep 2004
    Inlägg
    139
    Respekt
    21
    hur gör man det??
    HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2 HALO 2

  30. #60
    Registrerade
    Dec 2000
    Från
    Sthlm
    Inlägg
    2 386
    Respekt
    29
    Öppna DialogSubMenu.xml där står det beskrivet...

Sida 2 av 3 FörstaFörsta 123 SistaSista

Liknande diskussioner

  1. Guide till streaming i XBMC
    By fArGo_sWe in forum XBOX Media Player / Media Center
    Inlägg: 97
    Senaste inlägg: 2010-07-27, 19:09
  2. Xbmc tvguide?
    By maqen in forum XBOX Media Player / Media Center
    Inlägg: 4
    Senaste inlägg: 2004-04-20, 15:21
  3. XBMP Tvguide problem
    By maqen in forum XBOX Media Player / Media Center
    Inlägg: 0
    Senaste inlägg: 2004-02-08, 13:12
  4. Xbmc 29/10, 30/10
    By GertLind in forum XBOX Media Player / Media Center
    Inlägg: 3
    Senaste inlägg: 2003-11-02, 20:13
  5. Hjälp med TVGuide
    By nelson24 in forum XBOX Media Player / Media Center
    Inlägg: 4
    Senaste inlägg: 2003-10-26, 11:13

Bookmarks

Behörigheter

  • Du får inte starta nya diskussioner
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •