What is := in makefile?
Hi, what is := in makefile? Also, I've seen this in a makefile: SOMENAME:=$(filter-out $(ANOTHERNAME), $(SOMENAME)). Does someone know what this one is all about, when they have two variable names in the same $(...) format?
Kodi for PC IOS Football Addons IPTV M3u Sports
Kodi for PC IOS Football Addons IPTV M3u Sports
Hi, what is := in makefile? Also, I've seen this in a makefile: SOMENAME:=$(filter-out $(ANOTHERNAME), $(SOMENAME)). Does someone know what this one is all about, when they have two variable names in the same $(...) format?
Hi there many thanks an hope somebody can help a newbie to the kodi world with an answer... I've trying to view some m3u channels throughout the iptv simple client but on alot of builds they don have the tv mail n=header that link ti the channels when ...
I have a custom field "Producer" in most of my music, it seems Kodi can only scan and identify that field within the .wma and m4a file format but not the mp3 format, i just recently realized this yesterday, before i couldn't understand why when i check...
hi when i got on to file mananger from system it shows over 4 fusions, how can i delete ones i dont need? also when i try adding some repos via addons - > fusion it gives me 4 options, begin here, kodi repos, and kodi script. none of them do anythi...
Hi All not sure if anyone would be interested in it but as I've done the work thought others might want it what the mod does is try to restore the original behavior of the widgets as in MQ5, the layout info is the same as mq7 except the poster only z...
I am a new user. When ever I try to exit an ongoing program either on my Laptop or TV set the ongoing program continues to play until I exit KODI and have to start over again. It is, no doubt, a simple fix but I just don't know where to look. C[/siz...
Hi, Would it be possible to move window where you type name of the movie / series in subtitles manual search little bit down? On my 50" TV when I perform manual search window overlaps with the name so sometimes I'm not sure what I should type to searc...
i have problem with subs they dont downloaded, they saw me i need register and i am registed
Hello, I am pretty new to kodi, so this might my a stupid q. I set up kodi on my Fire TV. Now, it stacked the movies "Back to the Future Part2" and "Back to the Future Part3" which clearly are independent movies. Well, I disabled the stacking in the v...
hi, if i open the pvr-timeline-view the focus is on the first channel on actual time (whitch is fine). if i switch through my channel groups (via the "next channel group" command mapped to my remote) the focus get lost and it seems the focus is on the ...
Hi I have a Nvidia shield tv and Kodi volume keep muting the volume keep turning down even when I hit the f8 button and the + button on my Bluetooth keyboard is there a way to turn off Kodi volume and just use the Android TV volume please Kodi team fix...
Is there a way to allow the user to give movies ratings that have a tenth of a point rather than just whole numbers? I'd like to be able to give 7.5 rather than 7 or 8. Thanks!
Is there a possibility to have the logo, poster, banner and so on only in the root of each series? I would like to have fanarts and so on only for the series but not for each episode (in subdirs S01, S02, S03...). In the subdirs I want no other files ...
Hi all! For the last couple of days I've sifting through the forums, the API documentation and the source code itself to send directional controls (left, right, up, down) from an addon. The best solution I found so far is the JSON RPC API, the Input.U...
Hey Guys!
Sers Leute!
I am currently trying to get a very simple addon running with the limited code knowledge i have.
I took the Plugin chefkoch ( github.com/kodinerds/repo/blob…deo.chefkoch_de-2.0.7.zip ) as an example and rebuilt it, so it scrapes "http://www.multimedia.ethz.ch/speakers/d_arch" and gives me a list of semester child pages "class = "sub-lev3" ". When i click this links i want to get to to the list of videos in this semester. I can get until the point of choosing the semester but in the "def Listvideos" it appears to have a problem.
I think the first 3 lines are one which make problems, it tells list exceed failures in the kodi log.
content = getUrl(url)
tbody = re.search('<tbody>(.*?)</tbody>', content, re.DOTALL).group(1)
spl = tbody.split('<tr>')
for i in range(1, len(spl), 1):
entry = spl[i]
match = re.compile('<li class=\'video\'><a href=\'(.+?)\'', re.DOTALL).findall(entry)
url = match[0]
match = re.compile('<span>(.+?)<', re.DOTALL).findall(entry)
title = cleanTitle(match[0])
addLink(title, url, 'playVideo', '', '')
#!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib
import urllib2
import socket
import sys
import re
import xbmcplugin
import xbmcgui
import xbmcaddon
socket.setdefaulttimeout(30)
pluginhandle = int(sys.argv[1])
settings = xbmcaddon.Addon(id='plugin.video.architektur')
translation = settings.getLocalizedString
forceViewMode = settings.getSetting("forceViewMode") == "true"
viewMode = str(settings.getSetting("viewMode"))
baseUrl = "http://www.multimedia.ethz.ch/speakers/d_arch/"
def index():
content = getUrl(baseUrl)
spl = content.split('class="subnav-lev3"')
for i in range(1, len(spl), 1):
entry = spl[i]
match = re.compile('href="(.+?)"', re.DOTALL).findall(entry)
url = match[0]
match = re.compile('title=".+?">(.+?)<', re.DOTALL).findall(entry)
title = cleanTitle(match[0])
addDir(title, url, 'listVideos', '')
xbmcplugin.endOfDirectory(pluginhandle)
if forceViewMode:
xbmc.executebuiltin('Container.SetViewMode('+viewMode+')')
def listVideos(url):
content = getUrl(url)
tbody = re.search('<tbody>(.*?)</tbody>', content, re.DOTALL).group(1)
spl = tbody.split('<tr>')
for i in range(1, len(spl), 1):
entry = spl[i]
match = re.compile('<li class=\'video\'><a href=\'(.+?)\'', re.DOTALL).findall(entry)
url = match[0]
match = re.compile('<span>(.+?)<', re.DOTALL).findall(entry)
title = cleanTitle(match[0])
addLink(title, url, 'playVideo', '', '')
xbmcplugin.endOfDirectory(pluginhandle)
if forceViewMode:
xbmc.executebuiltin('Container.SetViewMode('+viewMode+')')
def playVideo(url):
listitem = xbmcgui.ListItem(path=url)
xbmcplugin.setResolvedUrl(pluginhandle, True, listitem)
def cleanTitle(title):
title = title.replace("<", "<").replace(">", ">").replace("&", "&").replace("'", "\\").replace(""", "\"").replace("ß", "ß").replace("–", "-")
title = title.replace("Ä", "Ä").replace("Ü", "Ü").replace("Ö", "Ö").replace("ä", "ä").replace("ü", "ü").replace("ö", "ö")
title = title.strip()
return title
def getUrl(url):
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0')
response = urllib2.urlopen(req)
link = response.read()
response.close()
return link
def parameters_string_to_dict(parameters):
''' Convert parameters encoded in a URL to a dict. '''
paramDict = {}
if parameters:
paramPairs = parameters[1:].split("&")
for paramsPair in paramPairs:
paramSplits = paramsPair.split('=')
if (len(paramSplits)) == 2:
paramDict[paramSplits[0]] = paramSplits[1]
return paramDict
def addLink(name, url, mode, iconimage, desc=""):
u = sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)
ok = True
liz = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
liz.setInfo(type="Video", infoLabels={"Title": name, "Plot": desc})
liz.setProperty('IsPlayable', 'true')
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz)
return ok
def addDir(name, url, mode, iconimage):
u = sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)
ok = True
liz = xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
liz.setInfo(type="Video", infoLabels={"Title": name})
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
return ok
params = parameters_string_to_dict(sys.argv[2])
mode = urllib.unquote_plus(params.get('mode', ''))
url = urllib.unquote_plus(params.get('url', ''))
if mode == 'listVideos':
listVideos(url)
elif mode == 'playVideo':
playVideo(url)
else:
index()