How to get a cross-origin resource sharing (CORS) post request working

I have a machine on my local lan (machineA) that has two web servers. The first is the in-built one in XBMC (on port 8080) and displays our library. The second server is a CherryPy python script...

Using an If-else within an array

I have no idea if this is possible or if there is another way of doing it but any help would be appreciated. What I'm trying to do is turn off arrays individually. So I have this: <?php $arrLayout...

Why does aplay work when pulseaudio is running and else not?

I have a ubuntu install with pulseaudio default installed. When pulseaudio is running this works: aplay -D hw:2,7 /usr/share/xbmc/sounds/Bursting\ Bubbles/nav.wav But when no pulseaudio daemon is...

How to read JSON from socket in python? (Incremental parsing of JSON)

I have a socket opened and I'd like to read some json data from it. The problem is that the json module from standard library can only parse from strings (load only reads the whole file and calls...

Matching list of files (for a tv show) with episodes for that show

I would like to implement or find a library implementing a feature similar to that in Plex where it matches video files for a show to actual episodes for that show. What I have found so...

Webkit-Transform:Scale doesn't work in HTML5 FullScreen mode (chrome only)

I'm working on a project that requires the page to scale all the elements up according to the page (for the curious: generates html from XBMC skins). Scaling working in windowed mode Scaling...

Efficiently read the average color of the screen content rendered by XBMC

I want to get the average color of the screen content when running XBMC to change the color of a TV ambient light. XBMC is running on a small HTPC with OpenGL ES 2.0 hardware (Raspberry Pi)...

Exec - run two commands

I use Debian with LXDE. I have a simple bash script that runs lxterminal -e /home/userpc/tvheadend/build.linux/tvheadend | sleep 5 | xbmc The script works well. These three commands I want to...

How to Cross Compile OMXPlayer on Ubuntu 11.10

I am trying to install omxplayer for my raspi, but as it is so slow, I wish to do it on my Ubuntu 11.10 desktop. I have followed the instructions for setting up a cross compiler as described here...

Set mouse position in software

I am using an Android Stick...

Nginx - MP4 HTTP Streaming problems

I'm currently using Nginx to serve my Mp4 files to clients via HTTP. Most of my clients are using XBMC to watch videos. Some of them are reporting errors : they can't open files. On my side, i...

raspberry only play mono sound

I installed raspbian using noobs on a fresh SD card. I have XBian with XBMC in another SD and it works so HW is Ok. The problem is that I cannot play stereo, thus I cannot play through HDMI, and I...

ZeroDivisionError: float division error in python

I'm working on my python script for xbmc media application so I can update the text label with the percent string. I have set the label text with "0%" for the start, but I have no idea how to...

mount: / not mounted or bad option

I'm running a custom Raspbmc build on my raspberry pi. On startup, I always see the message mount: / not mounted or bad option The filesystem is still mounted, but still want to know whats...

Batch command to delete all subfolders with a specific name

I have a directory as such: D:\Movies D:\Movies\MovieTitle1\backdrops\ D:\Movies\MovieTitle2\backdrops\ D:\Movies\MovieTitle3\backdrops\ D:\Movies\MovieTitle4\backdrops\ How could I have a batch...

urlib.urlretrieve and urlib2 corrupting files

I've run into a frustrating stumbling block with an XBMC extension I'm working on. In summary, if I download a file using Firefox, IE, etc then the file is valid and works fine but if I use urlib...

Properly format m3u playlist

I am using XBMC to watch IPTV, simple created playlist like this #EXTM3U #EXTINF:-1,Pink Action http://on108.setplex.net/fastv_2....ca.m3u8 #EXTINF:-1,Pink Action...

XBMC/KODI error adding addon "structure incorrect"

I'm following the KODI/XBMC hello world addon tutorial here and i downloaded the finished project from here but the problem is that i cannot edit it, as ever time I try to add a version that I...

Java - Nested JSON objects

I am trying to create a simple JAVA remote for XBMC/KODI and I think im doing ok so far (still early days) but I have hit a snag when I reached a nested JSON object. This is the original code I am...

Android - send HDMI CEC commands to TV - minix - libCEC

i'm working on a Minix NEO X8-H (Android media center, 4.4.2) and i need to send HDMI-CEC command to TV: when my App receives a call i want to change automatically the TV Source to the Minix hdmi...

xbmc/kodi python scrape data using BeautifulSoup

I want to edit a Kodi addon that use re.compile to scrape data, and make it use BeautifulSoup4 instead. The original code is like this: import urllib, urllib2, re, sys, xbmcplugin, xbmcgui link =...

Get stream URL from openload

how i m gonna do, to play openload.co links in my kodi addon, they dont work like this one here from my openload account...

Kodi jsonrpc know if an episode has been see

I trying to retrieve a list of episode of a TV Show on my Kodi jsonrpc api, it return the list of episode but only id and name instead of all attributs show in the doc...

Get class type dynamically from string for JSONDecoder.decode()

I want to decode json responses of a websocket "notification" where the type of notification is within the json response. JSON example: { "jsonrpc": "2.0", "method":...

"sudo apt update" and all I get is (target content is configured multiple times), (the repository does not have a Release file), (404 not found)

this is my first time to install linux on my system, I think there is a lot of mess here and I feel helpless from too many errors I got when trying to update my system, when use terminal with this...

Kodi ssh python script *no file or directory*

Im trying to run a python script through kodi which opens a SSH connection to my remote Raspberry Pi and runs a .sh script. However it sems like Kodi cant resolve paths very well. I have ran this...

KODI keeps crashing due to segfault

Kodi won't start due to seg fault. I'm running linux mint and I first noticed the problem after installing miniconda3 which I have since deleted but am still getting the error so it possibly isn't...

How to move a diacritical mark one letter to the left

I'm using this regular expression to remove an Arabic diacritical mark from a subtitle file, could it be modified to move the diacritical mark just one letter to the left instead of removing it?...

error "Please port gnulib freadahead.c to your platform when compiling kodi

freadahead.c: In function 'freadahead': freadahead.c:91:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then...

Kodi addons : how to correctly set an URL using xbmcplugin.addDirectoryItems and xbmcgui.ListItem?

I'm trying to update a plugin for Kodi 19 (and Python3). But! Hell! Their documentation is a mess, and when you search the internet, a lot of code is outdated. I cannot understand how correctly...

Relevant tags