[RELEASE] Flix2Kodi - Just another Netflix-Addon
#3
FAQ:

- How to force update?

Options -> Settings -> Addons -> Install from Repository -> select Logi85 Addons -> context menu -> search for updates

- What about library?

If you want to add something to kodi-library, first add the right path to video-sources. Under Linux this will be something like: /home/[user]/.kodi/userdata/addon_data/plugin.video.flix2kodi/library/movies/ /home/[user]/.kodi/userdata/addon_data/plugin.video.flix2kodi/library/tv/ Under Windows like: C:\Users\myuser\AppData\Roaming\Kodi... After adding the path, you have to set the scrapper to movies or series. Then you can add items to library in the plugin and they will appear in your library.


- Kodibuntu (and other Linux distrubutions) without window-manager?

sirhcjw posted the following lines:
(2015-12-30, 23:08)sirhcjw Wrote: All working like a charm for me now thanks for all the hard work.

Anyone on kodibuntu to get this working in full screen just install blackbox window manager and official chrome browser

Then make these changes to the launchBrowser.sh script on my instalation the path is

.kodi/addons/plugin.video.netflix/resources/launchBrowser.sh

Code:
#!/bin/bash

# copy from https://github.com/andrewleech/plugin.video.netflixbmc/blob/master/browser.sh

# Managed to resolve the issues with, but will leave this here anyway, as its a good fallback
CHROME_STARTED=`ps -ef | grep google-chrome | grep -v "grep" | wc -l`
if [ $CHROME_STARTED -gt 0 ]; then
        exit 1;
fi

# lets find out if xdotool actually exist before we try to call it
command -v xdotool >/dev/null 2>&1
XDOTOOL=$?

url=$1

# start window manager to make fullscreen work
/usr/bin/blackbox &

# move mouse pointer to bottom right of screen
if [ $XDOTOOL -eq 0 ]; then
        # no point sleeping if xdotool is not installed.
        #sleep 5
        xdotool mousemove 9999 9999 click 1
else
        echo "xdotool is not installed, can't remove cursor"
fi

# notice no ampersand to keep google chrome in front so remote works
/usr/bin/google-chrome --start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run --kiosk "$url"

# kill window manager so we exit back to kodi
killall blackbox >/dev/null 2>&1

- I get the error "Error Contents: osrandom engine already registered" in logfile

I'm using Ubuntu and had this error right now. Following steps will help:

Code:
sudo apt-get install pip
sudo apt-get remove python-cryptography
sudo apt-get autoremove
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
sudo pip install cryptographic
Thx to https://github.com/beenje/script.module.requests/issues/8

- I get the error "ImportError: No module named Crypto.Cipher"

Check if crypto module installed.
On Ubuntu you could install it with:
Code:
sudo apt-get install python-crypto

- No sound in chrome (Linux only)

perhaps default audio configuration is missing.
try to paste the following lines into /home/[username]/.asoundrc
Code:
pcm_slave.hdmi {
        pcm "hdmi:CARD=HDMI,DEV=0"
}

pcm.!default {
        type plug
        slave hdmi
}
Note: aplay -L will list all available audio-devices. perhaps you have to modify the pcm "" line
You can also add the device to chromelauncher settings, if you use chromelauncher.

- Custom scripts

If you need to modify default behaviour, you cann create a folder called "custom" in the addon_data folder for the plugin ( something like /home/kodi/.kodi/userdata/addon_data/plugin.video.flix2kodi )

In the folder you can create 3 files:
before_playback.cmd (or on linux before_playback.sh)
after_playback.cmd (or on linux after_playback.sh)
playback.cmd (or on linux playback.sh)
If flix2kodi finds one of them, it will call them. If a custom playback script exists, it is called instead of the default.

Please do not modify the shell scripts anymore cause they will be overwritten by update.
If you use this custom directory, they will be persistent.

Please note: the playback-script has to block until playback finished, cause flix2kodi will update playcounts after playback.

- Fixing kodibuntu tearing with composing window manager

Jeremy White Wrote:I suggest adding this line to the /usr/bin/kodi-standalone and then starting openbox:

compton --backend glx --paint-on-overlay --glx-no-stencil --vsync opengl-swc --shadow-exclude "! name~=''" -b &
openbox &

APP=Kodi
prefix="/usr"

Note : There is probably a better place to put this as it will be overwritten by the next kodi update.
Reply


Messages In This Thread
RE: [RELEASE] Flix2Kodi - Just another Netflix-Addon - by logi85 - 2015-12-30, 23:17
No access to TV show data - by seriousjohn - 2016-11-03, 19:01
Flix2kodi <crashed> - by Garri - 2016-01-08, 19:29


Logout Mark Read Team Forum Stats Members Help
[RELEASE] Flix2Kodi - Just another Netflix-Addon8
This forum uses Lukasz Tkacz MyBB addons.