Kodi Community Forum

Full Version: [RELEASE] Flix2Kodi - Just another Netflix-Addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just uploaded version 0.4.2, please check if it fixes your problems.
(2016-01-03, 15:58)schoel Wrote: [ -> ]
(2016-01-03, 13:59)schoel Wrote: [ -> ]
Code:
12:46:36 T:3828   ERROR: [plugin.video.flix2kodi] Traceback (most recent call last):
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 82, in <module>
                                                handle_request()
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 78, in handle_request
                                                general.index()
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\resources\general.py", line 22, in index
                                                generic_utility.get_string(30103) + ' - [COLOR FF8E0000]' + generic_utility.get_setting('profile_name') + '[/COLOR]',
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

Posted the above earlier. Do you need anything more than that?

Sorry haven't seen this post. please try my suggest perhaps it would help.

please try also generic_utility.get_setting('profile_name').encode('utf-8')
(2016-01-03, 16:02)logi85 Wrote: [ -> ]Just uploaded version 0.4.2, please check if it fixes your problems.
Seems to fix my issue where it wasn't playing, thanks for that!
thanks everything is good now but only problem is come back to kodi, how can i do that?
When i start play movie, the system write "'Push BACK to go back. If your browser not launches, something went wrong." Any idea?
I noticed that the error is present in the file PLAY.PY

Mac OSX 10.6.8 kodi 14.1 Browser Chrome

Sorry for my bad english
Code:
18:42:49 T:3924  NOTICE: -->Python Interpreter Initialized<--
18:42:51 T:3924  NOTICE: [plugin.video.flix2kodi] Loading netflix: https://www.netflix.com/ Post: None
18:42:51 T:3924   ERROR: C:\Users\Joel\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
18:42:56 T:1772  NOTICE: Thread BackgroundLoader start, auto delete: false
18:42:59 T:2600  NOTICE: Thread LanguageInvoker start, auto delete: false
18:42:59 T:2600  NOTICE: -->Python Interpreter Initialized<--
18:43:01 T:2600  NOTICE: [plugin.video.flix2kodi] Loading netflix: https://www.netflix.com/api/shakti/7ffaa772/pathEvaluator?materialize=true&model=harris Post: {"paths":[["lists","3809d14e-2536-43bf-99cb-679e10c005de_42001257",{"from":0,"to":98},["summary", "title"]]],}
18:43:01 T:2600   ERROR: C:\Users\Joel\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                              SNIMissingWarning
18:43:02 T:1568  NOTICE: Thread BackgroundLoader start, auto delete: false
18:43:03 T:184  NOTICE: Thread LanguageInvoker start, auto delete: false
18:43:04 T:184  NOTICE: -->Python Interpreter Initialized<--
18:43:05 T:3996  NOTICE: Thread BackgroundLoader start, auto delete: false
18:43:07 T:3544  NOTICE: Thread LanguageInvoker start, auto delete: false
18:43:07 T:3544  NOTICE: -->Python Interpreter Initialized<--
18:43:08 T:3552  NOTICE: Thread BackgroundLoader start, auto delete: false
18:43:10 T:1920  NOTICE: Thread LanguageInvoker start, auto delete: false
18:43:10 T:1920  NOTICE: -->Python Interpreter Initialized<--
18:43:12 T:1920 WARNING: Attempt to use invalid handle -1
18:43:12 T:3800  NOTICE: [plugin.video.flix2kodi] launching: "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\resources\scripts\launcher\windows\chrome.cmd"
18:43:12 T:3800  NOTICE: [plugin.video.flix2kodi] browser terminated
18:43:12 T:3656  NOTICE: Found 2 Lists of Devices
18:43:12 T:3656  NOTICE: Enumerated DIRECTSOUND devices:
18:43:12 T:3656  NOTICE:     Device 1
18:43:12 T:3656  NOTICE:         m_deviceName      : {DAF43326-C417-4E68-8EBA-CFE00F629DFF}
18:43:12 T:3656  NOTICE:         m_displayName     : SPDIF - Digital Audio (S/PDIF) (High Definition Audio Device)
18:43:12 T:3656  NOTICE:         m_displayNameExtra: DIRECTSOUND: Digital Audio (S/PDIF) (High Definition Audio Device)
18:43:12 T:3656  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
18:43:12 T:3656  NOTICE:         m_channels        : FL,FR
18:43:12 T:3656  NOTICE:         m_sampleRates     : 44100
18:43:12 T:3656  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_AC3,AE_FMT_DTS
18:43:12 T:3656  NOTICE:     Device 2
18:43:12 T:3656  NOTICE:         m_deviceName      : default
18:43:12 T:3656  NOTICE:         m_displayName     : default
18:43:12 T:3656  NOTICE:         m_displayNameExtra:
18:43:12 T:3656  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
18:43:12 T:3656  NOTICE:         m_channels        : FL,FR
18:43:12 T:3656  NOTICE:         m_sampleRates     : 44100
18:43:12 T:3656  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_AC3,AE_FMT_DTS
18:43:12 T:3656  NOTICE: Enumerated WASAPI devices:
18:43:12 T:3656  NOTICE:     Device 1
18:43:12 T:3656  NOTICE:         m_deviceName      : {DAF43326-C417-4E68-8EBA-CFE00F629DFF}
18:43:12 T:3656  NOTICE:         m_displayName     : SPDIF - Digital Audio (S/PDIF) (High Definition Audio Device)
18:43:12 T:3656  NOTICE:         m_displayNameExtra: WASAPI: Digital Audio (S/PDIF) (High Definition Audio Device)
18:43:12 T:3656  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
18:43:12 T:3656  NOTICE:         m_channels        : FL,FR
18:43:12 T:3656  NOTICE:         m_sampleRates     : 192000,96000,88200,48000,44100,32000
18:43:12 T:3656  NOTICE:         m_dataFormats     : AE_FMT_DTS,AE_FMT_AC3,AE_FMT_S24NE4MSB,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
18:43:12 T:3656  NOTICE:     Device 2
18:43:12 T:3656  NOTICE:         m_deviceName      : default
18:43:12 T:3656  NOTICE:         m_displayName     : default
18:43:12 T:3656  NOTICE:         m_displayNameExtra:
18:43:12 T:3656  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
18:43:12 T:3656  NOTICE:         m_channels        : FL,FR
18:43:12 T:3656  NOTICE:         m_sampleRates     : 192000,96000,88200,48000,44100,32000
18:43:12 T:3656  NOTICE:         m_dataFormats     : AE_FMT_DTS,AE_FMT_AC3,AE_FMT_S24NE4MSB,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
18:43:12 T:4008  NOTICE: Thread BackgroundLoader start, auto delete: false
18:43:19 T:1928  NOTICE: Storing total System Uptime
18:43:19 T:1928  NOTICE: Saving settings
18:43:19 T:1928  NOTICE: stop all
18:43:19 T:1928  NOTICE: stop player
18:43:19 T:1928  NOTICE: ES: Stopping event server
18:43:19 T:1928  NOTICE: stopping upnp
18:43:19 T:1492  NOTICE: ES: UDP Event server stopped
18:43:20 T:1928  NOTICE: stop sap announcement listener
18:43:20 T:1928  NOTICE: clean cached files!
18:43:20 T:1928  NOTICE: unload skin
18:43:22 T:1928  NOTICE: stopped
18:43:22 T:1928  NOTICE: destroy
18:43:22 T:1928  NOTICE: closing down remote control service
18:43:22 T:1928  NOTICE: unload sections
18:43:22 T:1928  NOTICE: special://profile/ is mapped to: special://masterprofile/
18:43:22 T:1928  NOTICE: destroy
18:43:22 T:1928 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
18:43:22 T:1928 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
18:43:22 T:1928  NOTICE: closing down remote control service
18:43:22 T:1928  NOTICE: unload sections
18:43:22 T:1928  NOTICE: application stopped...
18:43:22 T:1928   ERROR: dllFreeLibrary - Invalid hModule specified

I still get the above error with version 0.4.2.

Code:
18:50:22 T:2180   ERROR: [plugin.video.flix2kodi] Traceback (most recent call last):
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 82, in <module>
                                                handle_request()
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 78, in handle_request
                                                general.index()
                                              File "C:\Users\Joel\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\resources\general.py", line 22, in index
                                                generic_utility.get_string(30103) + ' - [COLOR FF8E0000]' + generic_utility.get_setting('profile_name').encode('utf-8') + '[/COLOR]',
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
The encode suggestion did not help.
Just downloaded, installed on a W10 machine with Chrome and Kodi 15.2, works perfectly. Using ALT-F4 for Chrome to close and it returns to Kodi Thanks!
cwh
@schoel

Just change within the file general.py to:

generic_utility.decode(generic_utility.get_setting('profile_name'))

If this not helps please post the according profile name from Netflix website.

@logi85
I changed the plugin to Unicode. Using str() and so on just make it worse. Try to encode as early as possible and decode before printing it. Some functions don't need a decode because they can handle Unicode very well.
Profile switching works with this release, tnx!
(2016-01-03, 19:45)candl69 Wrote: [ -> ]When i start play movie, the system write "'Push BACK to go back. If your browser not launches, something went wrong." Any idea?
I noticed that the error is present in the file PLAY.PY

Mac OSX 10.6.8 kodi 14.1 Browser Chrome

Sorry for my bad english

hi, please provide logfile-content.
(2016-01-03, 21:48)-zero- Wrote: [ -> ]@schoel

Just change within the file general.py to:

generic_utility.decode(generic_utility.get_setting('profile_name'))

If this not helps please post the according profile name from Netflix website.

@logi85
I changed the plugin to Unicode. Using str() and so on just make it worse. Try to encode as early as possible and decode before printing it. Some functions don't need a decode because they can handle Unicode very well.

@schoel please give me a feedback if it works for you so I can add the change.

@-zero- yes, it is worse.. especially that the kodi-api doesn't support unicode...
just uploaded 0.4.3.

If you want to try the 'seen' feature on library, you have to remove and add it again since the filenames are different.
@logi85 - thanks for this add-on!

I just tested again and it looks good.

two questions: how do I start netflix video in full screen? how can I control netflix via my standard kodi remote?
(2016-01-04, 01:23)bry- Wrote: [ -> ]@logi85 - thanks for this add-on!

I just tested again and it looks good.

two questions: how do I start netflix video in full screen? how can I control netflix via my standard kodi remote?

which OS do you use? which browser? if you use ubuntu with window-manager and chrome or windows 8.1 with chrome it should run out of the box.
When i try to add a movie to My List (not my Library, this feature is working well), I receve an error that flix2kodi has crashed, and ask me to refresh my login.

This the log:

Code:
22:45:08 T:2772   ERROR: POParser: warning, unhandled escape character. Problematic entry:
                                            msgctxt "#32090"
                                            msgid "Are you sure you want to reset the permanent cache ? \nWarning: This will delete all contents of the folder "
                                            msgstr "Tem certeza de que deseja redefinir o cache permanente? \ nAviso: Isto irá apagar todo o conteúdo da pasta "
22:45:14 T:4072   ERROR: Previous line repeats 1 times.
22:45:14 T:4072  NOTICE: [plugin.video.flix2kodi] parameters: ?mode=add_to_queue&url=70259170
22:45:14 T:4072   ERROR: [plugin.video.flix2kodi] Traceback (most recent call last):
                                              File "C:\Users\MediaCenter\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 86, in <module>
                                                handle_request()
                                              File "C:\Users\MediaCenter\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\addon.py", line 48, in handle_request
                                                queue.add(url)
                                              File "C:\Users\MediaCenter\AppData\Roaming\Kodi\addons\plugin.video.flix2kodi\resources\queue.py", line 12, in add
                                                post_data = generic_utility.my_list % generic_utility.get_setting('authorization_url')
                                            AttributeError: 'module' object has no attribute 'my_list'

Using Win10 with Chrome.

Other features is 100% ok