Change this loop to return specific set of channels

I am by no means a coder, but I need to adjust this bit of code to not return all the channels, but only.

The loop below returns 72 channels (names) currently from the url but I only want to return 6, from channel 30 to channel 36. How can I edit that for loop below to make that happen?

Code:
def Channels(murls):
    setCookie()
    i=1
    link = OPENURL('URLFORWEBSITE',cookie='NAME')
    link = cleanHex(link)
    link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('  ','')  
    addLink2('[I][COLOR red]Refresh Links[/COLOR][/I]  (Click Here if Vidoes are not playing)','url',555,artpath+'empty.png',fanart)
    if '<a href="#" class="user-name">'+user+'</a>' in link:
        matchlist=re.compile('<li>([^<]+)</li><ul class="inner-ul">(.+?)</ul></a>').findall(link)
        for name,urls in matchlist:
            addPlay(name,urls,411,art+str(i)+'.png')
            i=i+1

Thanks in advance.

PlexMan

pvr cache settings in advancedsettings

Hi, Can someone explain why the pvr cache settings are dropped in Kodi 17? I used to work with this settings: Code: <advancedsettings> <pvr> <minvideocachelevel>20</minvideocachelevel> <minaudiocachelevel>10</minaudio...

Can’t seem to connect to mythbackend

I am pulling my hair out... For some reason I can't get the pvr.addon to connect to my backend. My IP address is set (192.168.1.5), the Security PIN is 0000, the IPv6 setting is ::1, the ports are all the same... Where can I get a log to see what the ...

Kodi doesn’t see my music files

I have a windows 10 system using Jarvis 16.1. When I add a source I see all the folders ie.. flac, hi-rez etc. All the album titles are there but inside the album folder there is nothing ? I have all kinds of music files from dsd to flac to mp3. All my...

CPythonInvoker(46): Script invoked without an addon

Hi there, I am havin issues with my keyboard and Kodi.When I start playing a movie, after some minutes the keyboard stops responding so It becomes impossible to control Kodi...I checked the log file and this is what I founf 20:40:15 T:3004 WARNING: C...

Planning for Game Scraping

Just wanted to start this thread and propose what game infolabels could / should be supported in Kodi? I know that Retroplayer and Kodi currently doesn't have the ability to scrape info / metadata / artwork for games yet, but I'd like to get the ball ...

TV Show scraping behaving very strange.

The attached shot should show it all. I haven't used TMM for a while so installed it on my new PC and it picked up all my previously scraped series fine. I then added a new series in a folder - named EXACTLY the same as all the other shows via Filebot....

Cheapest 4K box?

What's currently the best box I can get for less than $100?

I will only use it for Kodi, playing TV/blueray rips. Need 4K support. 3D, HDR, HD Audio not necessary.

Are there any boxes that supports 4K Netflix? If so I'm interested, if not I'll just play netflix from my phone.

Disable Chapters in .ISO files?

Hi Folks, Bit of an odd question here. Is there any way to disable Chapter break detection for .ISO files in Kodi? Currently running Jarvis 16.1. I'm currently running into an issue where I encounter a brief, yet annoying, audio buzz during chapter b...

Kodi on Dumb Samsung TV

I am using an Amazon fire tv with Kodi. When viewing movies and TV thru Kodi the brightness & contrast is very poor. This also occurs on the list screens for movies. The brightness and contrast outside of Kodi is fine. How do I set this within...