Giter Club home page Giter Club logo

cast.bundle's People

Contributors

d8ahazard avatar ukdtom avatar vamaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cast.bundle's Issues

Chooses incorrect IP for server

The cast plugin is choosing the incorrect IP to give the chromecast. I have two interfaces on my server, but the wrong one is being chosen. I didn't see somewhere I could configure or steer it so I hardcoded the correct IP and it works. Some sort of config to override if the automatic discovery fails might be nice.

Not showing all cast devices

Installed cast.bundle with webtools and works great on Google mini speaker it won't recognize video Chromecast. Any help?

Cast plugin not found (but I can see my raspberry in device)

Hello,

I have installed phlex on a new xampp instance on dedicated server, even after adding the plugin "cast bundle" to the plugins folder of my server plex , i still have the error : "Cast Plugin not found" ;

I want to use Phlex with my raspberry, with OS Rasplex. Phlex can detect my rasplex but if I type for example :

  • Play Black Panther

Phlex answer ok I play Black Panther (I see the title of the film with the year) but nothing is happening on my rasplex.

Can you help me please ?

Link Google Account - File not found.

Whenever attempting to Link Google Account I'm getting "File not found." when the webaddress resolves.

Is this possibly a bug or is there any way to get past this? Didn't see any previous posts with the same issue.

Cast Plugin Out of Date

I continually get he message Cast plugin out of date, please update. I have the newest version as I just updated it, but continue to get the message...

Also, just today it stopped seeing all my cast devices with the exception of Chome when I have a Plex instance open in them.

windows 10 This extension does not respond. ...

hello,

Flex Tv is host on a debian Jessie docker,
Flex is host on a windows 10

I can see some chrome cast in device but not all connected.
when I force scan I have This extension does not respond. ... and in the log somes error ...

here a part of log

`2018-11-18 11:46:35,595 (326c) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: ecd6004 (Tue Oct 30 09:36:00 UTC 2018)
2018-11-18 11:46:35,596 (326c) : DEBUG (core:361) - Using the elevated policy
2018-11-18 11:46:35,596 (326c) : DEBUG (core:450) - Starting runtime component.
2018-11-18 11:46:35,599 (326c) : DEBUG (core:450) - Starting caching component.
2018-11-18 11:46:35,599 (326c) : DEBUG (core:450) - Starting data component.
2018-11-18 11:46:35,599 (326c) : DEBUG (core:450) - Starting networking component.
2018-11-18 11:46:35,601 (326c) : DEBUG (networking:284) - Loaded HTTP cookies
2018-11-18 11:46:35,601 (326c) : DEBUG (networking:452) - Setting the default network timeout to 20.0
2018-11-18 11:46:35,601 (326c) : DEBUG (core:450) - Starting localization component.
2018-11-18 11:46:35,601 (326c) : INFO (localization:409) - Setting the default locale to en-us
2018-11-18 11:46:35,602 (326c) : DEBUG (core:450) - Starting messaging component.
2018-11-18 11:46:35,602 (326c) : DEBUG (core:450) - Starting debugging component.
2018-11-18 11:46:35,602 (326c) : DEBUG (core:450) - Starting services component.
2018-11-18 11:46:35,604 (1504) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.Cast'
2018-11-18 11:46:35,604 (326c) : DEBUG (core:450) - Starting myplex component.
2018-11-18 11:46:35,605 (326c) : DEBUG (core:450) - Starting notifications component.
2018-11-18 11:46:35,706 (326c) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.Cast in namespace 'metadata'
2018-11-18 11:46:35,710 (326c) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2018-11-18 11:46:35,747 (135c) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2018-11-18 11:46:35,747 (326c) : DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2018-11-18 11:46:35,749 (135c) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2018-11-18 11:46:35,749 (326c) : DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2018-11-18 11:46:35,750 (290c) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2018-11-18 11:46:35,750 (326c) : DEBUG (core:150) - Finished starting framework core
2018-11-18 11:46:35,750 (326c) : DEBUG (core:560) - Loading plug-in code
2018-11-18 11:46:35,773 (290c) : DEBUG (core:538) - Machine identifier is 5c2621548bcbb5f8a1f2845548867861b5be0575
2018-11-18 11:46:35,773 (290c) : DEBUG (core:539) - Server version is 1.13.9.5456-ecd600442
2018-11-18 11:46:36,033 (135c) : DEBUG (services:362) - Loaded services
2018-11-18 11:46:36,042 (1e6c) : DEBUG (services:438) - No shared code to load
2018-11-18 11:46:36,089 (326c) : DEBUG (core:566) - Finished loading plug-in code
2018-11-18 11:46:36,601 (326c) : DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/chromecast')
2018-11-18 11:46:36,604 (326c) : DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/applications/Cast')
2018-11-18 11:46:36,605 (326c) : DEBUG (logkit:13) - Registering LoggerHandler for dependency: pychromecast
2018-11-18 11:46:36,607 (326c) : DEBUG (logkit:13) - Registering LoggerHandler for dependency: zeroconf
2018-11-18 11:46:36,607 (326c) : DEBUG (logkit:13) - Cache timer started, updating in 60 minutes
2018-11-18 11:46:36,607 (326c) : DEBUG (logkit:13) - UpdateCache called
2018-11-18 11:46:36,608 (326c) : DEBUG (logkit:13) - Re-fetching devices
2018-11-18 11:46:36,611 (326c) : DEBUG (logkit:13) - zeroconf: zeroconf:Adding u'0.0.0.0' to multicast group
2018-11-18 11:46:36,611 (326c) : DEBUG (logkit:13) - zeroconf: zeroconf:Adding '192.168.1.2' to multicast group
2018-11-18 11:46:36,615 (326c) : CRITICAL (core:574) - Exception when calling function 'Start' (most recent call last):
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-ecd600442\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function
result = f(*args, **kwargs)
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code_init_.py", line 64, in Start
CacheTimer()
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code_init_.py", line 73, in CacheTimer
UpdateCache()
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code_init_.py", line 85, in UpdateCache
scan_devices()
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code_init_.py", line 703, in scan_devices
casts = pychromecast.get_chromecasts(1, None, None, True)
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Libraries\Shared\pychromecast_init_.py", line 74, in get_chromecasts
hosts = discover_chromecasts()
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Libraries\Shared\pychromecast\discovery.py", line 121, in discover_chromecasts
listener, browser = start_discovery(callback)
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Libraries\Shared\pychromecast\discovery.py", line 91, in start_discovery
service_browser = zeroconf.ServiceBrowser(zeroconf.Zeroconf(interfaces=zeroconf.InterfaceChoice.All),
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Libraries\Shared\zeroconf.py", line 1704, in init
log.info("Error %s", e)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init_.py", line 1167, in info
self.log(INFO, msg, args, **kwargs)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init.py", line 1286, in log
self.handle(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init.py", line 1296, in handle
self.callHandlers(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init_.py", line 1336, in callHandlers
hdlr.handle(record)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init_.py", line 759, in handle
self.emit(record)
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code\log_helper.py", line 38, in emit
Log.Exception(self.getFormattedString(record))
File "C:\Users\jarvi\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code\log_helper.py", line 24, in getFormattedString
return record.name + ": " + record.getMessage()
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init_.py", line 329, in getMessage
msg = msg % self.args
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 39: invalid continuation byte

2018-11-18 11:46:36,615 (326c) : INFO (core:611) - Started plug-in
2018-11-18 11:46:36,617 (326c) : DEBUG (socketinterface:160) - Starting socket server
2018-11-18 11:46:36,618 (326c) : DEBUG (runtime:1117) - Created a thread named 'start'
2018-11-18 11:46:36,618 (326c) : INFO (socketinterface:184) - Socket server started on port 58388
2018-11-18 11:46:36,618 (326c) : INFO (pipeinterface:25) - Entering run loop
2018-11-18 11:46:36,618 (326c) : DEBUG (runtime:717) - Handling request GET /:/prefixes
2018-11-18 11:46:36,621 (326c) : DEBUG (runtime:814) - Found route matching /:/prefixes
2018-11-18 11:46:36,621 (326c) : DEBUG (runtime:924) - Response: [200] MediaContainer, 697 bytes
2018-11-18 11:46:47,216 (1e1c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.plugins.Cast/resources/icon-default.png?t=1542537993
2018-11-18 11:46:47,233 (1e1c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.plugins.Cast/resources/icon-default.png
2018-11-18 11:46:49,628 (365c) : DEBUG (runtime:717) - Handling request GET /applications/Cast
2018-11-18 11:46:49,630 (365c) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2018-11-18 11:46:49,634 (365c) : DEBUG (runtime:814) - Found route matching /applications/Cast
2018-11-18 11:46:49,634 (365c) : DEBUG (logkit:13) - ********** Starting MainMenu **********
2018-11-18 11:46:49,638 (365c) : DEBUG (base:117) - Checking if com.plexapp.plugins.Cast is broken`

thanks for you help :-)

Chromecast won't play

Hey, this plugin is a great idea. Exactly solved the problem I obviously ran into when making a project.

So I got it to mostly work, device scan and all that works. But I'm trying to use the /play endpoint working but my Chromecast says "Sorry! Something went wrong" every time.

I've dived into the code and compared my request payload with a working prototype and they are pretty much identical. So I'm not sure what could be causing this right now.

I'm not finding anything relevant in the Plex logs either. I'd except some kind of error or maybe access denied or something there but nothing.

Any ideas?

Cast Plugin Not Found

Hi, I am having issues getting Flex to talk with the cast plugin. I have installed the cast plugin under plex and can see it enabled in plex. Even under plex I can do a scan and see it update devices.

However on the web page front end for Flex I am unable to see any devices to cast to and if I select rescan I get the "Cast Plugin not Found".

Any help would be appreciated.

Does Flex TV work is the Plex server in a different location?

A stupid question? I am running Flex TV in a docker container on my NAS at home where my TV and Chromecast are but my Plex server is in my parents house so using the cast.bundle obviously doesn't find anything and so Flex TV cannot find my Chromecast. It worked fine in v1 because I was able to assign a static device but that is gone in v2 (at least I cant find it). Is there a workaround for this? I only have one Chromecast I want to use so I dont need a scanning ability, I just want to tell it the ip of my CC to make the "call home"

"This plugin is not responding."

Hi,

I am loving the idea of Phlex and have got it up and running with my Google Home to control Plex running inside Chrome, but I can't get Phlex to recognise my Chromecast. I have tried installing Cast.bundle through webtools and also manually, but the only action that seems to work is restarting the plugin. All other actions says "This plugin is not responding." instantly.

What am I doing wrong?

Thanks!

Remote Plex

Does this addon work only over lan? I have a plex server on a VM abroad, and from what i've understood, Cast will not detect clients. Am i right?

Flex TV Can't Find Cast Plugin

@i have Plex installed on a Synology DS1817+ with Phlex running in a docker container. I have tried to install the cast.bundle plugin manually and via Webtools however Flex tv can never find it (it always finds the chrome browser I use). I'm definitely no software guru but it seems the plugin keeps crashing so is unreachable by Flex. The logs only show that there is no plugin found.

1242 [Sat, 23 Jun 2018 22:48:34 +0000] [ERROR] [a5pire][index::makeBody:makeMetaTags:getUiData:scanDevices] - NO PLUGIN DETECTED!!

I am also unable to link my google account with Flex TV.

my.serverip.address is not a publicly accessible address.{"speech":"Unable to look up user.","contextOut":[{"name":"playmedia","lifespan":2,"parameters":[]}],"data":{"google":{"expectUserResponse":false,"isSsml":false,"noInputPrompts":[],"richResponse":{"items":[{"simpleResponse":{"textToSpeech":"Unable to look up user.","displayText":"Unable to look up user."}}]}}}}

Would really appreciate some help regarding this @

Cast plugin not found

Hello,

I have installed phlex on a new xampp instance , even after adding the plugin "cast bundle" to the plugins folder of my server plex , i still have the error : "Cast Plugin not found" ;

Can you help me please ?

Cast Plugin doesn't detect Chromecast

Hi,

I have connected my Plex server and my home network via OpenVPN.

If I connect from another machine to the OpenVPN network, Chrome detects my Chromecast.
However, the Cast plugin does not see the Chromecast at all.

2018-05-11 10:31:56,490 (7fe139b9b700) :  INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 31d3c0c (Fri May 04 12:00:22 UTC 2018)
2018-05-11 10:31:56,490 (7fe139b9b700) :  DEBUG (core:361) - Using the elevated policy
2018-05-11 10:31:56,491 (7fe139b9b700) :  DEBUG (core:450) - Starting runtime component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting caching component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting data component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (core:450) - Starting networking component.
2018-05-11 10:31:56,492 (7fe139b9b700) :  DEBUG (networking:284) - Loaded HTTP cookies
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (networking:452) - Setting the default network timeout to 20.0
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (core:450) - Starting localization component.
2018-05-11 10:31:56,493 (7fe139b9b700) :  INFO (localization:409) - Setting the default locale to en-us
2018-05-11 10:31:56,493 (7fe139b9b700) :  DEBUG (core:450) - Starting messaging component.
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting debugging component.
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting services component.
2018-05-11 10:31:56,494 (7fe121ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.Cast'
2018-05-11 10:31:56,494 (7fe139b9b700) :  DEBUG (core:450) - Starting myplex component.
2018-05-11 10:31:56,495 (7fe139b9b700) :  DEBUG (core:450) - Starting notifications component.
2018-05-11 10:31:56,613 (7fe139b9b700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.Cast in namespace 'metadata'
2018-05-11 10:31:56,618 (7fe139b9b700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2018-05-11 10:31:56,632 (7fe121ffb700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2018-05-11 10:31:56,632 (7fe139b9b700) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2018-05-11 10:31:56,633 (7fe121ffb700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QK$
2018-05-11 10:31:56,634 (7fe139b9b700) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2018-05-11 10:31:56,634 (7fe120ef9700) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2018-05-11 10:31:56,634 (7fe139b9b700) :  DEBUG (core:150) - Finished starting framework core
2018-05-11 10:31:56,635 (7fe139b9b700) :  DEBUG (core:560) - Loading plug-in code
2018-05-11 10:31:56,811 (7fe139b9b700) :  DEBUG (core:566) - Finished loading plug-in code
2018-05-11 10:31:57,074 (7fe120ef9700) :  DEBUG (core:538) - Machine identifier is xxxxx
2018-05-11 10:31:57,075 (7fe120ef9700) :  DEBUG (core:539) - Server version is 1.13.0.5023-31d3c0c65
2018-05-11 10:31:57,151 (7fe121ffb700) :  DEBUG (services:362) - Loaded services
2018-05-11 10:31:57,157 (7fe1216fa700) :  DEBUG (services:438) - No shared code to load
2018-05-11 10:31:57,217 (7fe139b9b700) :  DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/chromecast')
2018-05-11 10:31:57,218 (7fe139b9b700) :  DEBUG (runtime:640) - Adding a prefix handler for 'Cast' ('/applications/Cast')
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (log_helper:7) - Registering LoggerHandler for dependency: pychromecast
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (log_helper:7) - Registering LoggerHandler for dependency: zeroconf
2018-05-11 10:31:57,219 (7fe139b9b700) :  DEBUG (__init__:71) - Cache timer started, updating in 60 minutes
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (__init__:84) - UpdateCache called
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (__init__:671) - Re-fetching devices
2018-05-11 10:31:57,220 (7fe139b9b700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Adding u'0.0.0.0' to multicast group
2018-05-11 10:31:57,221 (7fe0ffc3e700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Sending <DNSOutgoing:{multicast=True, flags=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[], authorities=[], additionals=[]}> (40 b$
2018-05-11 10:31:57,721 (7fe0ffc3e700) :  DEBUG (log_helper:28) - zeroconf: zeroconf:Sending <DNSOutgoing:{multicast=True, flags=0, questions=[question[ptr,in,_googlecast._tcp.local.]], answers=[], authorities=[], additionals=[]}> (40 b$

Is there a way to get the cast plugin to attempt discovery on the local subnet(s), rather than 0.0.0.0?

Icon

MUST replace the Icon in Resource directory with a new one

Plugin is not responding

Getting this same issue as #16 but with a little twist.

2019-02-05 00:43:16,559 (1998) :  CRITICAL (core:574) - Exception (most recent call last):
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-cc260c476\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
    result = f(**d)
  File "C:\Users\Cosmas\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code\__init__.py", line 204, in Resources
    casts = fetch_devices()
  File "C:\Users\Cosmas\AppData\Local\Plex Media Server\Plug-ins\Cast.bundle\Contents\Code\__init__.py", line 646, in fetch_devices
    req.load()
  File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-cc260c476\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\networking.py", line 181, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 429, in open
    response = self._open(req, data)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 447, in _open
    '_open', req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1228, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1201, in do_open
    r = h.getresponse(buffering=True)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 1136, in getresponse
    response.begin()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 10054] An existing connection was forcibly closed by the remote host

2019-02-05 00:43:16,563 (1998) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2019-02-05 00:43:16,565 (1998) :  DEBUG (runtime:924) - Response: [500] 2250 bytes
2019-02-05 00:43:18,013 (d2c) :  DEBUG (runtime:717) - Handling request GET /applications/Cast
2019-02-05 00:43:18,017 (d2c) :  DEBUG (runtime:814) - Found route matching /applications/Cast
2019-02-05 00:43:18,019 (d2c) :  DEBUG (logkit:13) - **********  Starting MainMenu  **********
2019-02-05 00:43:18,023 (d2c) :  DEBUG (base:117) - Checking if com.plexapp.plugins.Cast is broken
2019-02-05 00:43:18,026 (d2c) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMjQKY29tLnBsZXhhcHAucGx1Z2lucy5DYXN0czEwCmlkZW50aWZpZXJyMAo_'
2019-02-05 00:43:18,061 (d2c) :  DEBUG (runtime:88) - Sending packed state data (105 bytes)
2019-02-05 00:43:18,062 (d2c) :  DEBUG (runtime:924) - Response: [200] MediaContainer, 910 bytes

I'm in a VPN environment. I'm wondering if IP address fetching is still an issue.

All API endpoints give NULL pointer access error

I installed your plugin with WebTools, and I see it register as Cast in the Plugins list. However, clicking on any of the buttons results in the error "This plugin is not responding.". After testing the API endpoints, I can hit the root endpoing (http://localhost:32400/chromecast?X-Plex-Token=XXXXXXXXXX), but all other routes ( http://localhost:32400/chromecast/devices?X-Plex-Token=XXXXXXXXXX ) give the following error:

<Response code="2000" status="ValueError: NULL pointer access">
<Traceback>
Traceback (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-31d3c0c65/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request result = f(**d) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Code/__init__.py", line 166, in Devices casts = fetch_devices() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Code/__init__.py", line 612, in fetch_devices casts = scan_devices() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Code/__init__.py", line 700, in scan_devices casts = pychromecast.get_chromecasts(1, None, None, True) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/__init__.py", line 74, in get_chromecasts hosts = discover_chromecasts() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/discovery.py", line 121, in discover_chromecasts listener, browser = start_discovery(callback) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/pychromecast/discovery.py", line 91, in start_discovery service_browser = zeroconf.ServiceBrowser(zeroconf.Zeroconf(interfaces=zeroconf.InterfaceChoice.All), File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/zeroconf.py", line 1680, in __init__ interfaces = normalize_interface_choice(interfaces) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/zeroconf.py", line 1618, in normalize_interface_choice choices = choices + get_all_addresses() File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/zeroconf.py", line 1606, in get_all_addresses for iface in ifaddr.get_adapters(): File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/ifaddr/_posix.py", line 58, in get_adapters ip = shared.sockaddr_to_ip(addr[0].ifa_addr) File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Libraries/Shared/ifaddr/_shared.py", line 163, in sockaddr_to_ip if sockaddr_ptr[0].sa_familiy == socket.AF_INET: ValueError: NULL pointer access
</Traceback>
</Response>

I've never written a Plex plugin, so I don't really know how else to help. Please let me know if any other info is needed to diagnose this.

Master as default branch

Might be a good idea to make master the default branch, and merge into that....

tommy-work branch is kinda misleading now :)

phlex with hass.io

Hello I´m used to have phlex as a third party add on on home assistant, is not working anymore it responds but it do not cast anything, is possible to use this one insido hass.io?

API calls to Plex fail when ssl is turned on in plex

myurl = "http://" + url + ":" + port + "/clients?X-Plex-Token=" + token

this breaks when forced ssl is turned on in plex

2018-11-25 19:41:28,796 (7fb191c7a700) :  DEBUG (networking:166) - Requesting 'http://10.246.15.143:32400/clients?X-Plex-Token=<redacted>'
2018-11-25 19:41:28,798 (7fb191c7a700) :  CRITICAL (runtime:889) - Exception (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Code/__init__.py", line 204, in Resources
    casts = fetch_devices()
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Cast.bundle/Contents/Code/__init__.py", line 646, in fetch_devices
    req.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 181, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 438, in open
    response = self._open(req, data)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 456, in _open
    '_open', req)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain
    result = func(*args)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1217, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 1190, in do_open
    r = h.getresponse()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/httplib_new.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/httplib_new.py", line 431, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ecd600442/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/httplib_new.py", line 395, in _read_status
    raise BadStatusLine(line)
BadStatusLine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.