Example #1
0
                    x = 1
                    tweets4 = api.GetHomeTimeline(since_id=sinceid4)
                    debug("TWEE :")
                    search = ""
            if x == 0:
                tweets = []
            if search:
                debug("Search: " + search)
        except Exception as e:
            debug("Tweets Holen Fehlerhaft")
            debug(e)
            continue
        textarray = []
        idarray = []
        imagearray = []
        tweets = tweets1 + tweets2 + tweets3 + tweets4
        textarray, idarray, imagearray, sinceid1 = lesetext(
            blacklist, tweets1, textarray, idarray, imagearray, sinceid1)
        textarray, idarray, imagearray, sinceid2 = lesetext(
            blacklist, tweets2, textarray, idarray, imagearray, sinceid2)
        textarray, idarray, imagearray, sinceid3 = lesetext(
            blacklist, tweets3, textarray, idarray, imagearray, sinceid3)
        textarray, idarray, imagearray, sinceid4 = lesetext(
            blacklist, tweets4, textarray, idarray, imagearray, sinceid4)
        if len(textarray) > 0:
            for i in range(len(textarray)):
                popupwindow.savemessage(__addon__, textarray[i], imagearray[i],
                                        greyout, lesezeit, xmessage, ymessage,
                                        breitemessage, hoehemessage,
                                        breitebild, hoehebild, font, fontcolor)
Example #2
0
                if cimg:
                        cimg = cimg.replace('&','&') #workaround for bug in feedparser                   
                #debug("Content:" + inhalt)
                debug("-----------------")
                debug("Datum"+ sdate)
                debug("-----------------")
                debug("Immage"+ cimg)
                debug("-----------------")
                if not bild=="true":
                    cimg=""
                if title not in schown:
                    #savemessage(title,cimg,greyout,lesezeit) 
                    titlelist.append(title)
                    cimglist.append(cimg)
                    greyoutlist.append(greyout)
                    lesezeitlist.append(lesezeit) 
                    #Donnerstag, 4. August 2016 16:07                           
                    dt = parser.parse(sdate)                    
                    day_string = dt.strftime('%Y-%m-%d %H:%M')                    
                    timelist.append(day_string)
                    timelist,titlelist,cimglist,lesezeitlist,greyoutlist = (list(x) for x in zip(*sorted(zip(timelist,titlelist,cimglist,lesezeitlist,greyoutlist))))
        for i in range(len(titlelist)):  
                   if not titlelist[i] in schown:
                      popupwindow.savemessage(__addon__,titlelist[i],cimglist[i],greyoutlist[i],lesezeitlist[i],xmessage,ymessage,breitemessage,hoehemessage,breitebild,hoehebild,font,fontcolor)             
                      schown.append(title)                   
      if monitor.waitForAbort(60):
        break            
      
           
      
Example #3
0
                if cimg:
                        cimg = cimg.replace('&','&') #workaround for bug in feedparser                   
                #debug("Content:" + inhalt)
                debug("-----------------")
                debug("Datum"+ sdate)
                debug("-----------------")
                debug("Immage"+ cimg)
                debug("-----------------")
                if not bild=="true":
                    cimg=""
                if title not in schown:
                    #savemessage(title,cimg,greyout,lesezeit) 
                    titlelist.append(title)
                    cimglist.append(cimg)
                    greyoutlist.append(greyout)
                    lesezeitlist.append(lesezeit) 
                    #Donnerstag, 4. August 2016 16:07                           
                    dt = parser.parse(sdate)                    
                    day_string = dt.strftime('%Y-%m-%d %H:%M')                    
                    timelist.append(day_string)
                    timelist,titlelist,cimglist,lesezeitlist,greyoutlist = (list(x) for x in zip(*sorted(zip(timelist,titlelist,cimglist,lesezeitlist,greyoutlist))))
        for i in range(len(titlelist)):  
                   if not titlelist[i] in schown:
                      popupwindow.savemessage(__addon__,titlelist[i],cimglist[i],greyoutlist[i],lesezeitlist[i],xmessage,ymessage,breitemessage,hoehemessage,breitebild,hoehebild,font,fontcolor)             
                      schown.append(titlelist[i])                   
      if monitor.waitForAbort(60):
        break            
      
           
      
Example #4
0
               tweets2=api.GetSearch(searchh,since_id=sinceid2,lang=country,result_type="recent")
               debug("Search: "+ searchh)
         if ratetag>=70:
          ratetag=0
          if Timeline_s=="true":
              debug("Hole Timeline")
              x=1
              tweets4 = api.GetHomeTimeline(since_id=sinceid4)             
              debug("TWEE :")
              search=""
         if x==0:
              tweets=[]
         if search:
            debug ("Search: " +search)
      except Exception as e:
          debug("Tweets Holen Fehlerhaft")    
          debug(e)          
          continue
      textarray=[]
      idarray=[]
      imagearray=[]
      tweets=tweets1+tweets2+tweets3+tweets4       
      textarray,idarray,imagearray,sinceid1=lesetext(blacklist,tweets1,textarray,idarray,imagearray,sinceid1)      
      textarray,idarray,imagearray,sinceid2=lesetext(blacklist,tweets2,textarray,idarray,imagearray,sinceid2)      
      textarray,idarray,imagearray,sinceid3=lesetext(blacklist,tweets3,textarray,idarray,imagearray,sinceid3)      
      textarray,idarray,imagearray,sinceid4=lesetext(blacklist,tweets4,textarray,idarray,imagearray,sinceid4)                                                            
      if len(textarray) >0:          
          for i in range(len(textarray)):              
              popupwindow.savemessage(__addon__,textarray[i],imagearray[i],greyout,lesezeit,xmessage,ymessage,breitemessage,hoehemessage,breitebild,hoehebild,font,fontcolor)                  
      
Example #5
0
                debug("Spiel Zeit"+ str(minute_now[nr]))
                debug("Spiel minute"+ str(minute))
            if not Meldung=="" and ( int(minute)>int(minute_now[nr]) or oldmessages=="true" ):              
              titlelist.append(Meldung)
              cimglist1.append(foto1)              
              cimglist2.append(foto2)              
              greyoutlist.append(greyout)
              lesezeitlist.append(lesezeit) 
              ins.append(inn)
              auss.append(aus)    
              anzal_meldungen.append(anzal_meldung)                           
              timelist.append(lsv[nr]+int(minute)*60)                    
              ids.append(id)
        #Sind Meldungen da
        if len(timelist)>0 :
          # Sortieren Meldungen
          timelist,anzal_meldungen,titlelist,cimglist1,cimglist2,lesezeitlist,greyoutlist,ids,ins,auss = (list(x) for x in zip(*sorted(zip(timelist,anzal_meldungen,titlelist,cimglist1,cimglist2,lesezeitlist,greyoutlist,ids,ins,auss))))                      
          for i in range(len(titlelist)):  
            #Meldungen die schon Da waren nicht mehr zeigen          
            if not ids[i] in  schown:
                debug("Zeit ist : "+str(timelist[i]))                
                popupwindow.savemessage(__addon__,titlelist[i],cimglist1[i],greyoutlist[i],lesezeitlist[i],xmessage,ymessage,breitemessage,hoehemessage,breitebild1,hoehebild1,font,fontcolor,-1,-1,cimglist2[i],-1,-1,breitebild2,hoehebild2)             
                schown.append(ids[i])    
                if len(schown)>anzahlmeldungen:
                    schown.pop(0)                
      if monitor.waitForAbort(60):
        break