Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all 85201 articles
Browse latest View live

script.module.streamlink.base

$
0
0
A month ago I forked the above mentioned module from another dev that deleted almost all of his repositories, so I decided to keep maintaining it by regularly pulling from upstream repository.

So what is streamlink? Streamlink is a fork livestream in which development unfortunately seems to be dormant.

Many devs have improved it, bug fixed it and made new plugins for it.
It mainly serves PC based systems passing resolved urls into desktop programs and play them, but main source code is written in Python, which is very convenient for us.
Primarily it resolves live streams, but there are plugins that can do videos on demand playback.

So how to utilize it? Simply add this to your imports into addon.xml:

Code:
<requires>
    <import addon="xbmc.python" version="2.25.0"/>
    <import addon="script.module.streamlink.base" version="2017.09.06"/>
</requires>

Then you can add this example code somewhere in one your python modules:

Code:
import streamlink.session
# import sys

def resolve(url, quality='best'):

    try:

        session = streamlink.session.Streamlink()
        # session.set_loglevel("debug")
        # session.set_logoutput(sys.stdout)
        plugin = session.resolve_url(url)
        streams = plugin.get_streams()
        stream = repr(streams[quality])
        link = stream.partition('(\'')[2][:-3]

        return link

    except:
        pass

Note: commented lines provide debugging, uncomment them to have DEBUG messages.

Sources:

Upstream repository: https://github.com/streamlink/streamlink
Downstream packed for Kodi: https://github.com/Twilight0/script.modu...mlink.base

Repository for updates:
https://github.com/Twilight0/repo.twilig...ight0.libs

Additionally...

You can load custom plugins!

Code:
session.load_plugins(/path/to/custom/plugins)

You can install optional addon which resolves streams in iptv simple client:
(Thank you beardypig)
Repository: https://github.com/Twilight0/service.streamlink.proxy
Support thread: https://forum.kodi.tv/showthread.php?tid=320011

SMB is empty on satelites

$
0
0
My main windows PC that is running the latest kodi can see SMB shares fine including a wireless printer. I do

Videos->Files->Add Videos->Browse->SMB

And I see what I pretty much expect to.

On the computer right next to it (laptop) running the same version of Kodi I do the above and the list is entirely empty. Why?

I checked the firewall. It's totally off.

This is true of virtually every other Windows/Kodi I have (3 of them) except for the main media server.

I checked and SMB1 protocol is enabled on all these boxes.

Any ideas?

dialog info usage?

$
0
0
May someone help me understand how to use this. I would expect it launch the info window for the list item.
But when running xbmcgui.Dialog().info(). Info requires listitem... My question is how do I get the listitem from the skin to the add-on? I tried several things like filenameandpath but I don't know how to send a listitem.

Is the a way to construct a listiem from the filenameandpath?

And advice would be appreciated.

Thanks for reading

Add on installation failed

$
0
0
Ok, so I'm new to this so bare with me. So I'm having trouble getting the add ons to download. I'm able to install from from zip and go to install from repository but when I try to download anything it stays st o% and eventually says installation failed, any help would be appreciated. Oh and I'm using a Firestick with the most recent version of kodi. Thanks

MythTV 29 supported?

$
0
0
Before I upgrade my backend I'd like to be sure Kodi plugin keeps working. Looking at Wiki page it states 0.27-0.28 are supported.

Migrating WMC to TVHeadEnd :: Import recordings schedule ?

$
0
0
Hi!

Since WMC is slowly dying, and bugs here and there aren't fixed, and Win7 is already having less support.
I want to do a big switch from WMC to TVHeadEnd. In fact, I'm almost ready to do the switch. Tests so far are very good!

There's one point I'm wondering if it's possible. Can we import WMC recording schedule to TVHeadEnd.

Since I can see all my (~150) programming inside Kodi, I was wondering if this is exportable and then importable again after. Huh

While this is not a deal breaker, it would definitely ease my work on this migration! :-D

TIA for your answers or hints! :-)

Éric

Unable to find skip step functionality on firetv or stick

$
0
0
With jarvis during playback of videos on any addon, i was able to hit the center select button on the firetv or stick remote, to bring up the playback menu, and then i would be able to hit the up direction and it would highlight the progress bar and i would be able to skip step the video play back in the predetermined increments of 30, 1, 2, 5 etc. Is there a different method to do this or is this functionality not available with Krypton on firestick and firetv?

Cannot use override resolution

$
0
0
I just got a V88 Pro which is a cheap device which connects to a TV.

I removed the preinstalled Kodi and used the most recent Kodi from Google Play.

This box is fake 1920x1080; it's actually 1280x720 with density of 160, but it upscales to 1920x1080 when outputting. If I go to Kodi system settings/resolution, it shows me 1280x720. So far, this is expected, since it is actually rendering at that resolution and upscaling/

However, it is possible to use "wm size" and "wm density" (or an app which simulates that, such as nomone resolution changer) and then reboot to change the resolution. If I do that, it becomes real 1920x1080.

"wm size" and "wm density" shows the following:

Physical size: 1280x720
Override size: 1920x1080

Physical density: 160
Override density: 240

Although I am now at actual 1920x1080, Kodi (17.4) still sees the resolution as 1280x720. It thinks the cursor is in a different place on the screen than it really is (as if it was on a 1280x720 screen), and Kodi system settings/resolution still shows 1280x720p. 1080p calibration videos do not show up at 1080p. I want to force Kodi to think the resolution is the same resolution that is in the override resolution. Unfortunately there is no setting "use override resolution instead of physical resolution".

Also, I'm having a problem with subtitles; a file which is 4:3 and contains DVD subtitle rips plays in 4:3, but the subtitles are still stretched to fit within the whole 16:9 screen instead of appropriately scaled to the 4:3 area like the video is.

Kodi Home Screen

$
0
0
I know I am going to sound very stupid to you right now but I have the most basic of questions. I downloaded Kodi yesterday onto my amazon fire tv. While playing a movie in real movies, the video stopped and brought me back to the movie list and I got an error message telling me to check the log. I went to you tube for assistance with resolving the error. Every video tells me to go to the Kodi Home Screen. I do not know how to get to the Kodi Home Screen. I am stuck in the section of Kodi that shows a bunch of movies in a row then there's a ribbon on the bottom giving me various options such as Movies, TV, System etc. Below those topics are sub topics. For example under movies the sub topics are add ons, collections, etc. How do I get to the Home Screen from where I am? I have tried backing out and it doesn't take me anywhere. In order for me to fix the error I need to get to add ons in the home screen and I feel like an idiot because I can't find it. Thank you in advance for your assistance.

Enabling "Adjust Display Refresh Rate" only for 720p or higher

$
0
0
When playing 480p content with "Adjust Display Refresh Rate" enabled I'll sometimes notice the occasional stuttering. Is there a way to force KODI to only enable "Adjust Display Refresh Rate" for anything 720p or higher?

Server 2016 SMB share can't access files

$
0
0
Hi guys,

this week i updated my Server from 2012 to 2016 last build.
Deduplication is active on the Server.
SMB1 support is installed.
Rights are set to anyone.

Shared my Media folder as usual.

- 1st problem couldn't access with username and password, but with domain\user and password i could connect.
browsing all folders is working now
- 2nd problem can't open any media files on my share. "One ore more items failed to play"

Has anyone the same problem?


Cheers


Juergen


LOG:

https://pastebin.com/S1GKwWkH

Harmony Elite and Aopen

$
0
0
Hi folks,
So I have recently got myself an Aopen MP57 running Libreelec and was hoping I cold use my harmony elite to control it. I have tried to search the internet to see does this model have a built in IR reciever but cannot find it anywhere. Does anyone running one of these know or if I will have to buy a IR reciever ??

Thanks in advance.

No Jailbreak reqd - Install Kodi on iOS devices using Cydia Impactor

$
0
0
The simple way to install Kodi 17.3 ... on iPhone / iPad devices running iOS 10** and earlier:

** actually there was a 64bit Kodi .ipa package in the Kodi 17.3.zip so iOS 11+ will probably also work.

How to install Kodi on an iPhone or iPad using Cydia Impactor (click)

This Webpage will also be helpful: (steps 1 & 2)
http://www.iphonehacks.com/2017/07/fix-p...-10-2.html

Also make sure you unzip the Kodi 17.3 .zip so you get a org.xbmc.kodi-ios_17.3-0_iphoneos-arm.ipa file

WARNING !

Generate an App specific Password by logging into:
https://appleid.apple.com/#!&page=signin

Do NOT use your actual AppleID Password - Security risks are very high if you do.
Yes I have a healthy Paranoia ! ;-)

W.

Brightness (Backlight) Change value on PyXBMCt Framework Rpi 7" screen

$
0
0
Hello everyone, I have been trying to integrate my code with the PyXBMC framework, only it is an incomplete work, since the function is not integrated for the change of brightness in it.

.Py Code of the working method.
Code:
import os

        
        
os.system("sudo cat /sys/class/backlight/rpi_backlight/brightness > brightness.txt" )

with open('brightness.txt') as f:
    for i in xrange(1):
        value = f.readline().rstrip()

        if 255 == int(value):
            os.system("echo 25 | sudo tee /sys/class/backlight/rpi_backlight/brightness")
        elif 25 == int(value):
            os.system("echo 50 | sudo tee /sys/class/backlight/rpi_backlight/brightness")
        elif 50 == int(value):
            os.system("echo 100 | sudo tee /sys/class/backlight/rpi_backlight/brightness")
        elif 100 == int(value):
            os.system("echo 150 | sudo tee /sys/class/backlight/rpi_backlight/brightness")
        else:
            os.system("echo 255 | sudo tee /sys/class/backlight/rpi_backlight/brightness")


The new Gui (PyXBMCt Framework) without operation for changing brightness.
Code:
# Import necessary modules
import xbmc
import pyxbmct
import os


class Brt(pyxbmct.AddonDialogWindow):          
            
# Create a window instance.
    def __init__(self, title=''):
        """Class constructor"""
        # Call the base class' constructor.
        super(Brt, self).__init__(title)
        # Set width, height and the grid parameters
        self.setGeometry(700, 400, 5, 3)
        # Call set controls method
        self.set_controls()
        # Connect Backspace button to close our addon.
        self.connect(pyxbmct.ACTION_NAV_BACK, self.close)

        

    def set_controls(self):
        """Set up UI controls"""
        # Image control
        image=pyxbmct.Image('/home/pi/.kodi/addons/script.rpi-backlight/images/bk.jpg', aspectRatio=1)
        self.placeControl(image, 0, 0, rowspan=3, columnspan=3)
        # Text label
        label = pyxbmct.Label('Brightness', alignment=pyxbmct.ALIGN_CENTER)
        self.placeControl(label, 3,0)
        # RadioButton Label
        radiobutton_label = pyxbmct.Label('Back Light', alignment=pyxbmct.ALIGN_CENTER)
        self.placeControl(radiobutton_label, 3, 2)
        # RadioButton
        self.radiobutton = pyxbmct.RadioButton ('On', _alignment=2,font ='font30')
        self.placeControl(self.radiobutton, 4, 2)
        self.connect (self.radiobutton, self.radio_update)
        # Close button
        self.close_button = pyxbmct.Button('Close',shadowColor='0xffffffff',textColor='0xffffffff', noFocusTexture='/home/pi/.kodi/addons/script.rpi-backlight/images/bt.png', focusTexture='/home/pi/.kodi/addons/script.rpi-backlight/images/bt2.png' )
        self.placeControl(self.close_button, 5, 1)
        # Connect close button
        self.connect(self.close_button, self.close)
        # Slider value label
        SLIDER_INIT_VALUE = 255
        self.slider_value = pyxbmct.Label(str(SLIDER_INIT_VALUE), alignment=pyxbmct.ALIGN_CENTER,font ='font30')
        self.placeControl(self.slider_value, 4, 0)
        # Label
        slider_caption = pyxbmct.Label('Changue Value', alignment=pyxbmct.ALIGN_CENTER)
        self.placeControl(slider_caption, 3, 1)
        # Slider
        self.slider = pyxbmct.Slider()
        self.placeControl(self.slider, 4, 1, pad_y=10)
        self.slider.setPercent(SLIDER_INIT_VALUE)
        self.connectEventList([pyxbmct.ACTION_MOVE_LEFT,
                               pyxbmct.ACTION_MOVE_RIGHT,
                               pyxbmct.ACTION_MOUSE_DRAG,
                               pyxbmct.ACTION_MOUSE_LEFT_CLICK],
                              self.slider_update)

    def radio_update(self):
        # Update radiobutton caption on toggle
        if self.radiobutton.isSelected():
            self.radiobutton.setLabel('Off')
        else:
            self.radiobutton.setLabel('On')                

    def slider_update(self):
        # Update slider value label when the slider nib moves
        try:
            if self.getFocus() == self.slider:
                self.slider_value.setLabel('{:.1F}'.format(self.slider.getPercent()))
        except (RuntimeError, SystemError):
            pass    
        
        
# Animation window
    def setAnimation(self, control):
        # Set fade animation for all add-on window controls
        control.setAnimations([('WindowOpen', 'effect=fade start=0 end=200 time=100',),
                                ('WindowClose', 'effect=fade start=100 end=0 time=500',)])

                                
# Show the created window.
if __name__ == '__main__':
    dialog = Brt("Brightness Control")
    dialog.doModal()
    del dialog

Ref Gui

watch gallery

Turning the Pi On and Off

$
0
0
I just saw a video where they said you could turn the Pi Off using Kodi (but could not turn the Pi back on via Kodi).

To turn it back on they suggested getting a power supply with a switch (click it twice) to reboot instead of having to unplug and re-plug the micro usb connector.

Would this work, and would it be a safe way to turn the Pi on and off without causing any problems ?

Was thinking of getting the RemotePi but thought this might be a simpler way of doing things.





Estuary PVR Sideblade

$
0
0
I've noticed that the PVR sideblade in Estuary is not activated like most other skins when pressing the back button from the EPG screen, ie pressing the back button takes you directly to the home menu, when most other skins activates the sideblade first, then the home screen when the back button is pressed again.

Does anybody know how to fix this, as I find it really annoying, particularly if you want to change the channel group located on the sideblade. Have tried using the same code as Nox and Madnox which executes the above behaviour, but doesn't seem to work for Estuary for some reason....

Kodi 17 Video stutter,no sound

add on installation.

$
0
0
Installing 17.4 on windows 7 for the first time and when clicking on Install from zip file I get the message."For security reasons installations of add ons from unknown sources is disabled". What is my next step?.

"Now Playing" screen a little... bland

$
0
0
Hi Guys, is there any way I could make the "Now Playing" screen for Music a little bit more interesting? For me, it just shows a bar with the current artist / title during the start of the title, afterwards it's totally black, until the next item in the playlist starts... Maybe show some meta-info, artist pictures, genre-specific animations / slideshows, anything...?



[Image: now_playing_1.png]

4K Conundrum: Give in to a disc player?

$
0
0
Have resisted 4K discs and disc players to date, but with all the rave reviews for 'Blade Runner' (one of my all-time faves), thinking of caving in. Hate thought of going back to discs, losing Kodi and a nice interface for instant content playback, management.

Curious if many Kodi media player fans here have already invested in 4K disc players and physical 4K discs? Or, are you guys going the VUDU route as I see some doing for HDR, Dolby Vision and/or ATMOS? Or, are you still holding out for AnyDVD UHD?
Viewing all 85201 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>