• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 69
  • Next 
 
Thread Rating:
  • 8 Vote(s) - 4 Average
[RELEASE] Flix2Kodi - Just another Netflix-Addon
#1
Mod edit: logi85's code has now been forked by yamboo-efi and discussion of his fork (including a link to this github code) begins at this post:

http://forum.kodi.tv/showthread.php?tid=...pid2578127

Many thanks to logi85 and the other authors. - nickr 4 May 2017


This Addon is a fork of z-e-r-o's repo based on many others. Thank you all for that great base.

Requirements:
Windows: By default you need Chrome installed. You can modify the launchBrowser.cmd script to use another browser, if needed.
Linux: Same as Windows. It is also possible to use a custom launch script if you enable "use Chrome Launcher" setting. You also need xdotool installed. You should not run kodi in standalone-mode. You should use a desktop environment like lxde. If you cannot or don't want, have a look on FAQ (Kodibuntu). This is a modification which starts a minimal desktop manager before the browser starts.

Important! If you modify the script, please be shure that it will block until the browser is closed!

To install the addon, follow these steps:
Code:
1. download http://logi85.github.io/repository.logi85/repository.logi85-1.0.zip
2. choose "install from zip" in kodi and select the downloaded file
3. choose "install from repository"
4. choose "Logi85 Addons"
5. choose "Video-Addons"
6. select "FLix2Kodi" and choose install

If something went wrong, try to restart kodi after installing the repo (step 2)

After installation you should configure the addon (at least username and password)
Reply
#2
Changelog:

version 0.6.6 (06.09.2016)
* Fixed cookie-deletion on chrome (thx to sean)
* fixed cookie-path on openelec (thx to kingBrowser)

version 0.6.5 (22.07.2016)
* fixed api-change (encoding-escapes)
* merged alternate remote control

version 0.6.4 (11.05.2016)
* merged tmdb-fix (marcelveldt), big thx!

version 0.6.3 (11.05.2016)
* added missing italian translation
* added auto-re-login after crash
* merged super-shows (thx to badcrc)
* merged api-change fix (thx to fkmclane)

version 0.6.2 (25.04.2016)
* changed french translation
* added viewstate update-flag

version 0.6.1 (25.04.2016)
* fixed login-issue

version 0.6.0 (14.03.2016)
* changed dutch translation
* added french translation

version 0.5.9 (14.03.2016)
* fixed cookie-update-error (sql)
* hello to Israel (PR by metate)
* added support to pass search parameter from other addon
* removed youtube since plugin broken
* fixed android-support
* fixed kids-profile-support

version 0.5.8 (08.03.2016)
* changed root-list-logic
* fixed spanish translation

version 0.5.7 (11.02.2016)
* updated italian translation
* improved android support

version 0.5.6 (10.02.2016)
* added translation "login refreshed..."
* changed lot of translations
* added chromium setting
* added workaround if no locale present on login page
* added android support (?)

version 0.5.5 (03.02.2016)
* playcount now updated via json (no need for direct db-access and file-access, should also work with mysql db backend)
* added translations (spanish, italian, dutch, thx to all translators!)
* added support for 6 subtitles/languages
* pause/play will click "resume playback" if present

version 0.5.4 (31.01.2016)
* spanish translation
* switching language/subtitle support
* remote support for internet explorer
* added setting to disable lirc on playback

version 0.5.3 (26.01.2016)
* kodi lirc will now be disabled on playback
* fixed video-type-filter (wrong items in my-list)
* changed ssl behaviour (hope to fix https issues)
* new icon!! (thx 2 peppe_sr)

version 0.5.2 (20.01.2016)
* bugfix api change

version 0.5.1 (15.01.2016)
* fixed file-encoding problem (cannot update playcount)
* shutdown will now be disabled on playback
* disable library update will now work
* added custom-script example (by jwhite)

version 0.5.0 (14.01.2016)
* fixed resume-playback-loop
* fixed add/remove to/from my-list refresh
* refactored whole api-access (performance-improvements)
* added recommendations-list (dynamic lists)

version 0.4.9 (08.01.2016)
* fixed login issue

version 0.4.8 (07.01.2016)
* removed ssl verification
* added some more debugging
* fixed remotes not working (which are captured by kodi) (windows only)
* fixed viewing-activity order
* added support to add to 'my list'

version 0.4.7 (06.01.2016)
* Fixed redirect issue (long wait, then crash)
* Fixed type-handling (browse tv-shows should now work if enabled in settings or context-menu used)
* Next try on edge
* Added path for openelec (chrome profiles folder)
* MacOS?
* Added custom scripts support

version 0.4.6 (05.01.2016)
* added auto-(re)connect
* added edge-support

version 0.4.5 (04.01.2016)
* Fixed: 'Cannot update playcount'
* Hopefully fixed macos issues with keyring
* Fixed: added switch in chrome-launcher-script (windows) to call right path on 32 bit windows

version 0.4.4 (03.01.2016)
* playback now updates whole library items cause seems to be fast enough.

version 0.4.3 (03.01.2016)
* added 'remove from library'
* added workaround for mac
* playback now updates library item after finish if exists

version 0.4.2 (03.01.2016)
* added support to switch profile (just select 'Who's watching')
* delete cookies should now work
* changed launch-parameters for windows
* changed window-name for chrome (windows)

version 0.4.1 (02.01.2016)
* changed default view-ids and fanart

version 0.4 (02.01.2016)
* fixed search, added dynamic lists.

version 0.1 (30.12.2015)
* first release, big thanks to z-e-r-o (this started as a fork of his great work)
Reply
#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
#4
[placeholder3]
Reply
#5
[placeholder4]
Reply
#6
Installed, and tested! Everything is 100% like a charm! Now we get the updates automatically?
Reply
#7
i know this will work on OpenElec systems but we need a few more options in the settings to get sound working i believe
Reply
#8
First, thanks a LOT for continuing work on this addon, it's vital for people like me who are really into having everything in one place, and this addon makes Kodi almost perfect, so GREAT job, and I'm sure there's tons of people who never post (I had to sign up to do so after years of just reading/lurking and getting what I need).

On this version of the addon, running Windows 10, latest Kodi stable, the addon works perfect except My List in TV and Movies shows only a fraction of my content. My Netflix TV list probably has about 100 items, but only shows 37 shows, and with no apparent reasoning, not alphabetical, when I added etc...

I have nuked all other netflixbmc and older mutations as the last few months have churned out, and this one is installed clean, and deleting/reinstall/clearing/whatever does nothing to show all my lists. What is there works like expected and plays perfectly.

Any ideas??
Reply
#9
Thanks for all the hard work. Is Openelec also supported now (for on PI2) ?
Reply
#10
It is working for me as well now! Fantastic job Zero and Logi85!! Thanks so much for all the effort!! Rofl

Also thanks for opening a new thread, it will be much easier now for other people to find out how it works.

Since I am a simple user, and not a programmer, some (simple) things that are clear for some people are not always directly clear to me. So just to be sure and for the sake of people who don't have a working version yet:

1. Do you manually need to download the latest version of Python for this to work? I believe so, correct me if I'm wrong
2. Do you have to run kodi and/or chrome as administrator for this to work in windows? No, before I had to, but not anymore.. no idea why..
3.Do you have to install the chromelauncher addon yourself or will it now be done as an "dependency" by kodi?
4.When you are in Netflix, how can you make sure that you can control it with your (MCE/Harmony) remote? At the moment I am not able to go back to kodi (ctrl+w) without keyboard, I think the solution has something to do with adding a keyboard.xml, but I still have to do my research on this. For now I was just very happy that I managed to open a netflix video in kodi
5. Are subtitles and other audio streams supported? They do work, but I can only control them with a mouse at the moment..

(2015-12-31, 08:24)thejaffe Wrote: On this version of the addon, running Windows 10, latest Kodi stable, the addon works perfect except My List in TV and Movies shows only a fraction of my content. My Netflix TV list probably has about 100 items, but only shows 37 shows, and with no apparent reasoning, not alphabetical, when I added etc...

I seem to have the same problem... Also on W10, so maybe a windows problem.... EDIT: I deleted my whole KODI installation, reinstalled KODI and the flix2kodi addon, and now it works as expected. Apart from the search function, but this is not a big deal for me...
Reply
#11
(2015-12-31, 09:59)misa Wrote: Thanks for all the hard work. Is Openelec also supported now (for on PI2) ?

Hi Misa,

you could try if https://www.raspberrypi.org/forums/viewt...2&t=121842 works. Don't have a Pi2 so I cannot test. If this works, you could try to modify the launchbrowser.sh to launch chromium.
Reply
#12
Thanks a lot for the work on this project!

But I'm still having a problem with the new version.
The same problem as netwolfx described from the old thread:
http://forum.kodi.tv/showthread.php?tid=...pid2199883

I use Kodi 15.2 and Win7 64bit.
Reply
#13
(2015-12-31, 10:59)Cassiuss Wrote: It is working for me as well now! Fantastic job Zero and Logi85!! Thanks so much for all the effort!! Rofl

Also thanks for opening a new thread, it will be much easier now for other people to find out how it works.

Since I am a simple user, and not a programmer, some (simple) things that are clear for some people are not always directly clear to me. So just to be sure and for the sake of people who don't have a working version yet:

1. Do you manually need to download the latest version of Python for this to work? I believe so, correct me if I'm wrong
2. Do you have to run kodi and/or chrome as administrator for this to work in windows? (I can play around with this myself today, so I can answer it myself later on if nobody has a ready answer)
3.Do you have to install the chromelauncher addon yourself or will it now be done as an "dependency" by kodi?
4.When you are in Netflix, how can you make sure that you can control it with your (MCE/Harmony) remote? At the moment I am not able to go back to kodi (ctrl+w) without keyboard, I think the solution has something to do with adding a keyboard.xml, but I still have to do my research on this. For now I was just very happy that I managed to open a netflix video in kodi
5. Are subtitles and other audio streams supported? I believe not yet. (correct me if I'm wrong)

(2015-12-31, 08:24)thejaffe Wrote: On this version of the addon, running Windows 10, latest Kodi stable, the addon works perfect except My List in TV and Movies shows only a fraction of my content. My Netflix TV list probably has about 100 items, but only shows 37 shows, and with no apparent reasoning, not alphabetical, when I added etc...

I seem to have the same problem... Also on W10, so maybe a windows problem....

Hi Cassius,

1. Kodi should be bundled with a working version, just try.
2. I don't think this is necessary
3. Chromelauncher is not required. However I've added this option for openelec users. Have a look on old thread (Netflixbmc)
4. Can you control Kodi with your remote? My addon captures actions (like keypresses) on playback. So if your remote will send keys / actions to Kodi while playback it should work. You could press keys while watching and then have a look in your Kodi-Logfile. If there are entries like 'Unknown action...' I could add missing actions. If there are no entries your remote does not sent requests to kodi, probably sending to active window, which would be chrome. Perhaps there is an existing plugin which could handle your remote for your browser.
5. Currently not, but I have an open issue on this. But not with highest priority.

My-List missing items is a known issue
Reply
#14
(2015-12-31, 13:41)Snicket Wrote: Thanks a lot for the work on this project!

But I'm still having a problem with the new version.
The same problem as netwolfx described from the old thread:
http://forum.kodi.tv/showthread.php?tid=...pid2199883

I use Kodi 15.2 and Win7 64bit.

My log file:
http://pastebin.com/ZVDedS2u

Hi,

if you double-click the cmd, it stays until you close the browser?
Or will it start the browser and then quit?
Reply
#15
(2015-12-31, 13:59)logi85 Wrote: Hi,

if you double-click the cmd, it stays until you close the browser?
Or will it start the browser and then quit?

Both the browser and the cmd stay open until I close the browser.
I also tried it with Chrome Launcher had the same problem with it.
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 69
  • Next 



[RELEASE] Flix2Kodi - Just another Netflix-Addon48