[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2
(2015-12-08, 05:48)horstepipe Wrote: so guys we have the original plugin which is able to start a movie via chrome fine,
and we have zero's plugin which can browse movies and series and add them to the database, but can't start a video with Chrome, am I right?
Hopefully somebody is able to merge those two addons to a working one :-)

No problemo. Just replace your addon.py with this:
Code:
from __future__ import unicode_literals

from resources import connect
from resources import delete
from resources import general
from resources import library
from resources import list
from resources import play
from resources import profiles
from resources import queue
from resources import search
from resources import utility
import os
utility.log('\n\nStart of plugin')

while (utility.get_setting('username') or utility.get_setting('password')) == '':
    utility.open_setting()

if len(utility.get_setting('country')) == 0 and len(utility.get_setting('language').split('-')) > 1:
    utility.set_setting('country', utility.get_setting('language').split('-')[1])

utility.prepare_folders()
connect.new_session()

parameters = utility.parameters_to_dictionary(sys.argv[2])
name = utility.get_parameter(parameters, 'name')
url = utility.get_parameter(parameters, 'url')
mode = utility.get_parameter(parameters, 'mode')
thumb = utility.get_parameter(parameters, 'thumb')
video_type = utility.get_parameter(parameters, 'type')
season = utility.get_parameter(parameters, 'season')
series_id = utility.get_parameter(parameters, 'series_id')
run_as_widget = utility.get_parameter(parameters, 'widget') == 'true'

if mode == 'main':
    general.main(video_type)
elif mode == 'list_videos':
    list.videos(url, video_type, run_as_widget)
elif mode == 'list_seasons':
    list.seasons(name, url, thumb)
elif mode == 'list_episodes':
    list.episodes(series_id, url)
elif mode == 'list_genres':
    list.genres(video_type)
elif mode == 'list_viewing_activity':
    list.view_activity(video_type, run_as_widget)
elif mode == 'add_to_queue':
    queue.add(url)
elif mode == 'remove_from_queue':
    queue.remove(url)
elif mode == 'add_movie_to_library':
    library.movie(url, name)
elif mode == 'add_series_to_library':
    library.series(series_id, name, url)
elif mode == 'play_trailer':
    play.trailer(url, video_type)
elif mode == 'update_displayed_profile':
    profiles.update_displayed()
elif mode == 'search':
    search.netflix(video_type)
elif mode == 'delete_cookies':
    delete.cookies()
elif mode == 'delete_cache':
    delete.cache()
elif mode == 'reset_addon':
    delete.addon()
elif mode == 'play_video_main':
    os.system('"C:\Program Files (x86)\Internet Explorer\iexplore.exe" -k https://www.netflix.com/watch/%s' % url)
elif mode == 'play_video':
    os.system('"C:\Program Files (x86)\Internet Explorer\iexplore.exe" -k https://www.netflix.com/watch/%s' % url)
else:
    general.index()

The script above was modified by me to use internet explorer under windows. Replace it with the path and command line options for kiosk mode for chrome if you want to use chrome. I think i saw an example of that for linux in a post above somewhere.
Reply


Messages In This Thread
Who's Watching is empty? - by RiverBend - 2015-01-08, 18:55
Full-screen mode - by oakertood - 2015-03-29, 01:08
25% - by Mattlock - 2015-07-06, 03:56
Additional/Original Browser Option? - by durv - 2015-09-07, 05:07
[RELEASE] NetfliXBMC - EMPTY LISTS - by Nibar - 2015-12-08, 03:38
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 2 - by helgenet - 2015-12-08, 11:25
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - Thread 217