Find on Page

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
mikey1234 Offline
Fan
Posts: 456
Joined: Nov 2011
Reputation: 18
Post: #11
thanks i have fixed it
Code:
eng=''
        ger=''
        fre=''
        tur=''
        if re.search('gb.png" alt="English"', link, re.IGNORECASE):
                eng= 'Found English Audio'    
        if not re.search('gb.png" alt="English"', link, re.IGNORECASE):
                eng= ''          
        if re.search('alt="German"', link, re.IGNORECASE):
                ger= 'Found German Audio'
        if not re.search('alt="German"', link, re.IGNORECASE):
                ger= ''          
        if re.search('alt="French"', link, re.IGNORECASE):
                fre= 'Found French Audio'
        if not re.search('alt="French"', link, re.IGNORECASE):
                fre= ''    
        if re.search('alt="Turkish"', link, re.IGNORECASE):
                tur= 'Found Turkish Audio'
        if not re.search('alt="Turkish"', link, re.IGNORECASE):
                tur= ''
        xbmcgui.Dialog().ok('Found These Audios',eng,ger,fre)



only problem with dialog is it only has 4 attributes what other dialog or notifications can i use to display more
find quote
mikey1234 Offline
Fan
Posts: 456
Joined: Nov 2011
Reputation: 18
Post: #12
thanks i have fixed it
Code:
eng=''
        ger=''
        fre=''
        tur=''
        if re.search('gb.png" alt="English"', link, re.IGNORECASE):
                eng= 'Found English Audio'    
        if not re.search('gb.png" alt="English"', link, re.IGNORECASE):
                eng= ''          
        if re.search('alt="German"', link, re.IGNORECASE):
                ger= 'Found German Audio'
        if not re.search('alt="German"', link, re.IGNORECASE):
                ger= ''          
        if re.search('alt="French"', link, re.IGNORECASE):
                fre= 'Found French Audio'
        if not re.search('alt="French"', link, re.IGNORECASE):
                fre= ''    
        if re.search('alt="Turkish"', link, re.IGNORECASE):
                tur= 'Found Turkish Audio'
        if not re.search('alt="Turkish"', link, re.IGNORECASE):
                tur= ''
        xbmcgui.Dialog().ok('Found These Audios',eng,ger,fre)



only problem with dialog is it only has 4 attributes what other dialog or notifications can i use to display more
find quote
Post Reply