Quantcast
Channel: PlexConnect (Apple TV 2 & 3) — Plex Forums
Viewing all 540 articles
Browse latest View live

Music Library - Compilations

$
0
0

When I open a music album with "Various Artists" in PlexConnect it's not possible to know the track artist name:

  1. It does not appears in the tracklist of the album
  2. It does not appears when I play a track (I have the useless "Various Artists" info when playing a track)
  3. I can use PlexConnect's "search function" to find "Various Artists" but not "Track Artists"

Can this be improved ?


PlexConnect on a NAS drive (ReadyNAS).?

$
0
0
Hi,

Love the idea of Plexconnect. I was just wondering if it was possible to run this on a NAS drive rather than a computer.?

Specifically I have a Netgear ReadyNAS running Plex media server PMS.

Plexconnect and AC3 5.1 audio on Apple TV

$
0
0

Hi,

I'm using plexconnect to play media on TV using "Trailers" app of ATV. All works fine but I can't play AC3 5.1 audio. I searched a lot over the Internet tried all the solutions like Setting Dolby Digital to "ON" on ATV, Enabling "Dolby Digital Apple TV" setting on PMS, Changed "transcoderaction = Transcode" in plexconnect's ATVSettings.cfg file but none works and my audio still doesn't work.

Any help is greatly appreciated.

Thanks

Autostart Plexconnect on Raspberry Pi

$
0
0

Hello,

want to have the Plexconnect on autostart on my Pi.

Using thiis script, I can manually start it and stop it, but it just won't start on boot using either rc.d, rc.local or cron.

any ideas?

EDIT: I apologize for the horrible formatting, can't get it to show up as code for some reason. Help appreciated^^

@SingleServingSociety said:
Make sure you have screen installed:
sudo apt-get install screen
Create a file called plexconnect in /etc/init.d:
sudo nano /etc/init.d/plexconnect

Give it the following content (update the DAEMON_OPTS="-S PlexConnect -d -m /usr/local/lib/PlexConnect/PlexConnect.py" line so it will point to your installation of plexconnect):
#!/bin/bash
### BEGIN INIT INFO
# Provides:          plexconnect
# Required-Start:    networking
# Required-Stop:    networking
# Default-Start:     3 4 5
# Default-Stop:      0 1 6
# Short-Description: This is the Plex Connect daemon
# Description:       This script starts the Plex Connect
#                    Python scripts in a detached screen.
### END INIT INFO

# Using the lsb functions to perform the operations.
. /lib/lsb/init-functions

# Process name ( For display )
NAME=PlexConnect

# Daemon name, where is the actual executable
DAEMON="/usr/bin/screen"
DAEMON_OPTS="-S PlexConnect -d -m /usr/local/lib/PlexConnect/PlexConnect.py"
DAEMON_USER="root"

# pid file for the daemon
PIDFILE=/var/run/PlexConnect.pid

# If the daemon is not there, then exit.
test -x "$DAEMON" || exit 5

case $1 in
 start)
  # Checked the PID file exists and check the actual status of process
  if [ -e $PIDFILE ]; then
   status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && status="0" || status="$?"
   # If the status is SUCCESS then don't need to start again.
   if [ $? = "0" ]; then
    log_success_msg "Starting the process $NAME"
    exit # Exit
   fi
  fi
  # Start the daemon.
  # Start the daemon with the help of start-stop-daemon
  # Log the message appropriately
  if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -p $PIDFILE -- ${DAEMON_OPTS}; then
   while read line ; do [[ $line =~ ([0-9]*).PlexConnect ]] && echo ${BASH_REMATCH[1]} ; done < <(screen -ls) > $PIDFILE
   log_success_msg "Starting the process $NAME"
  else
   log_failure_msg "Starting the process $NAME"
  fi
  ;;
 stop)

  # Stop the daemon.
  if [ -e $PIDFILE ]; then
   status_of_proc -p $PIDFILE "$DAEMON DAEMON_OPTS" "Stoppping the $NAME process" && status="0" || status="$?"
   if [ "$?" = 0 ]; then
    start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
    /bin/rm -rf $PIDFILE
    log_success_msg ""Stopping the $NAME process""
   fi
  else
   log_failure_msg "$NAME process is not running"
  fi
  ;;
 restart)
  # Restart the daemon.
  $0 stop && sleep 2 && $0 start
  ;;
 status)
  # Check the status of the process.
  if [ -e $PIDFILE ]; then
   status_of_proc -p $PIDFILE "$DAEMON $DAEMON_OPTS" "$NAME process" && exit 0 || exit $?
   log_success_msg "$NAME process is running"
  else
   log_failure_msg "$NAME process is not running"
  fi
  ;;
 reload)
  $0 restart
  ;;
 *)
  # For invalid arguments, print the usage message.
  echo "Usage: $0 {start|stop|restart|reload|status}"
  exit 2
  ;;
esac

Make the file executable
sudo chmod 755 /etc/init.d/plexconnect
And check whether it works (make sure plexconnect is not running before starting this one):
sudo service plexconnect start
Make sure the script starts automatically when you reboot:
sudo update-rc.d plexconnect defaults

"Trailers unavailable", even though both server And PlexC seem to be working

$
0
0

OK, the issue is a weird one
Plex Server is up and running ( other clients can see and play the files)
PlexConnect seems to be forwarding requests without any issues, and other apps on the machine can access the net without any probles. No errors on the log
But, when I open the Trailers app, it just spits out : trailers are unavailable. Try again later.
Here are all the details of my setup:
ATV 3 7.2 (7512)
ATV DNS Server 192.168.1.31
PlexConnect IP 192.168.1.31
Version: 0.5-dev-101215
installed on Ubuntu 14.04.3
PlexServer IP 192.168.1.31
PMS version 0.9.15.2 (0.9.15.2.1663-7efd046_amd64)
installed on Ubuntu 14.04.3

cfg file

[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = High
logpath = .

log file:

10:05:55 PlexConnect: started: 10:05:55
10:05:55 PlexConnect: Version: 0.5-dev-101215
10:05:55 PlexConnect: Python: 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2]
10:05:55 PlexConnect: Host OS: linux2
10:05:55 PlexConnect: PILBackgrounds: Is PIL installed? True
10:05:55 Settings: getsetting enable_plexconnect_autodetect=True
10:05:55 PlexConnect: IP_self: 192.168.1.31
10:05:55 Settings: getsetting hosttointercept=trailers.apple.com
10:05:55 ATVSettings: init class CATVSettings
10:05:55 ATVSettings: load settings
10:05:55 Settings: getsetting enable_dnsserver=True
10:05:55 DNSServer: started: 10:05:55
10:05:55 Settings: getsetting port_dnsserver=53
10:05:55 Settings: getsetting ip_dnsmaster=8.8.8.8
10:05:55 Settings: getsetting prevent_atv_update=True
10:05:55 DNSServer: ***
10:05:55 DNSServer: DNSServer: Serving DNS on 192.168.1.31 port 53.
10:05:55 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.31
10:05:55 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
10:05:55 DNSServer: forward other to higher level DNS: 8.8.8.8
10:05:55 DNSServer: ***
10:05:55 WebServer: started: 10:05:55
10:05:55 Settings: getsetting port_webserver=80
10:05:55 WebServer: ***
10:05:55 WebServer: WebServer: Serving HTTP on 192.168.1.31 port 80.
10:05:55 WebServer: ***
10:05:56 Settings: getsetting enable_webserver_ssl=True
10:05:56 WebServer: started: 10:05:56
10:05:56 Settings: getsetting port_ssl=443
10:05:56 Settings: getsetting certfile=./assets/certificates/trailers.pem
10:05:56 Settings: getsetting certfile=./assets/certificates/trailers.pem
10:05:56 WebServer: ***
10:05:56 WebServer: WebServer: Serving HTTPS on 192.168.1.31 port 443.
10:05:56 WebServer: ***
10:05:59 DNSServer: DNS request received!
10:05:59 DNSServer: Source: ('192.168.1.173', 50448)
10:05:59 DNSServer: Domain: p6-buy.itunes.apple.com
10:05:59 DNSServer: ***forward request
10:05:59 DNSServer: -> DNS response from higher level
10:06:01 DNSServer: DNS request received!
10:06:01 DNSServer: Source: ('192.168.1.173', 58064)
10:06:01 DNSServer: Domain: trailers.apple.com
10:06:01 DNSServer: ***intercept request
10:06:01 DNSServer: -> DNS response: 192.168.1.31
10:06:07 PlexConnect: Shutting down.
10:06:08 WebServer: Shutting down (HTTP).
10:06:08 WebServer: Shutting down (HTTPS).
10:06:11 DNSServer: Shutting down.
10:06:11 ATVSettings: save settings
10:06:11 PlexConnect: shutdown

The problem occured after upgrading the plex Server a few days ago.

Trailers is Unavailable, Try again Later

$
0
0

I get the message above when I try to access my movies under the "By Folders" tab of my PlexConnect on ATV3.

The movies play if I select them from the "All Movies, Directors and Actors". tabs

I have another Movie Library that works just fine using the "By Folders" tab.

Any ideas why this is happening only on the Movies-"By Folder" tab?

Thanks, as always.

Unable to play any content, thumbnails not loading.

$
0
0

When I click on the trailers app on both of my Apple TV's, Plex loads but there are no thumbnails loaded (movies, music, or tv series). If I click on a movie or any other content I get an error. Everything was working fine up until last week. I'm running Windows 10. Log files are attached.

Serving js.utils slow on Windows 10? XML problems?

$
0
0

Hi all,

Long time Plex user and tinkerer. Upgraded my old HP N54 to a beefier custom server with an i5 and more RAM. Also upgraded to Windows 10 from 7 (then did a fresh Windows 10 install post-serial activation to ensure a clean install). So far everything going swimmingly and transcoding etc for 'official' apps is much faster etc.

PlexConnect is a different story though. It seems that (from my primitive understanding of the logs) when opening up the TV Shows or Movies panes under my Library (single server, no shared libraries etc) PlexConnect seems to hang until it has loaded, slowly, js.utils. I did not have this previously on my other server and am still using the same SSD to store all the Plex files and meta data so I don't believe file access times are being hindered. It's now just thrown an error as shown below in the log, then it finally loads js.utils.

So far I have -
Attempted to mash together my old PlexConnect settings file, changing the newly installed one to more or less match, no improvement.
Rebuilt the certs and re-added, no improvement.
Disabled Windows Firewall and Windows Defender, no improvement.
Changes PlexGDM to False, no improvement.

I've copy and pasted the settings file and log showing the random delay. It also seems to take longer to load content than it did before. Am I missing something I should have already disabled in Windows 10 to improve things?

Log:

23:29:02 PlexConnect: ***
23:29:02 PlexConnect: PlexConnect
23:29:02 PlexConnect: Press CTRL-C to shut down.
23:29:02 PlexConnect: ***
23:29:02 PlexConnect: started: 23:29:02
23:29:02 PlexConnect: Version: 0.5-dev-101215
23:29:02 PlexConnect: Python: 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]
23:29:02 PlexConnect: Host OS: win32
23:29:02 PlexConnect: PILBackgrounds: Is PIL installed? False
23:29:02 PlexConnect: IP_self: 192.168.1.81
23:29:02 DNSServer: started: 23:29:02
23:29:02 DNSServer: ***
23:29:02 DNSServer: DNSServer: Serving DNS on 192.168.1.81 port 53.
23:29:02 DNSServer: intercept: ['trailers.apple.com'] => 192.168.1.81
23:29:02 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
23:29:02 DNSServer: forward other to higher level DNS: 8.8.8.8
23:29:02 DNSServer: ***
23:29:02 WebServer: started: 23:29:02
23:29:02 WebServer: ***
23:29:02 WebServer: WebServer: Serving HTTP on 192.168.1.81 port 80.
23:29:02 WebServer: ***
23:29:02 WebServer: started: 23:29:02
23:29:02 WebServer: ***
23:29:02 WebServer: WebServer: Serving HTTPS on 192.168.1.81 port 443.
23:29:02 WebServer: ***
23:29:07 WebServer: serving /js/application.js
23:29:07 WebServer: serving .xml: /
23:29:07 PlexAPI: ***
23:29:07 PlexAPI: poke plex.tv - request Plex Media Server list
23:29:07 PlexAPI: ***
23:29:07 PlexAPI: Servers (local, plex.tv, MyPlex): 2
23:29:08 WebServer: serving .xml: /PlexConnect.xml
23:29:08 WebServer: serving /js/utils.js
23:29:08 WebServer: serving /js/handlePlexConnectNavbar.js
23:29:08 WebServer: serving .xml: /library/sections
23:29:08 WebServer: serving /js/utils.js
23:29:08 WebServer: serving /js/sectionHoldSelect.js
23:29:09 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:29:12 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:29:25 WebServer: serving .xml: /library/sections/1/recentlyAdded
23:29:27 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:29:30 WebServer: serving .xml: /library/sections/2
23:29:31 WebServer: serving /js/utils.js
23:29:31 WebServer: serving /js/updateXML.js
23:29:31 WebServer: serving .xml: /library/sections/2
23:30:03 DNSServer: DNS request received!
23:30:03 DNSServer: Source: ('192.168.1.16', 61351)
23:30:03 DNSServer: Domain: trailers.apple.com
23:30:03 DNSServer: ***intercept request
23:30:03 DNSServer: -> DNS response: 192.168.1.81
23:30:03 WebServer: serving /js/utils.js
23:30:14 WebServer: serving .xml: /library/metadata/5869
23:30:14 WebServer: serving /js/utils.js
23:30:14 WebServer: serving /js/selectAudioAndSubs.js
23:30:14 WebServer: serving *.png: /thumbnails/MediaBadges/720.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/mkv.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/h264.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/ac3.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/2.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/2.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/ac3.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/h264.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/mkv.png
23:30:15 WebServer: serving *.png: /thumbnails/MediaBadges/720.png
23:32:06 DNSServer: DNS request received!
23:32:06 DNSServer: Source: ('192.168.1.16', 64865)
23:32:06 DNSServer: Domain: trailers.apple.com
23:32:06 DNSServer: ***intercept request
23:32:06 DNSServer: -> DNS response: 192.168.1.81
23:32:06 WebServer: serving .xml: /library/sections/2
23:32:06 WebServer: serving /js/utils.js
23:32:06 WebServer: serving /js/updateXML.js
23:32:07 WebServer: serving .xml: /library/sections/2
23:32:17 WebServer: serving /js/application.js
23:32:17 WebServer: serving .xml: /
23:32:17 PlexAPI: ***
23:32:17 PlexAPI: poke plex.tv - request Plex Media Server list
23:32:17 PlexAPI: ***
23:32:17 PlexAPI: Servers (local, plex.tv, MyPlex): 2
23:32:17 WebServer: serving .xml: /PlexConnect.xml
23:32:17 WebServer: serving /js/utils.js
23:32:18 WebServer: serving /js/handlePlexConnectNavbar.js
23:32:18 WebServer: serving .xml: /library/sections
23:32:18 WebServer: serving /js/utils.js
23:32:18 WebServer: serving /js/sectionHoldSelect.js
23:32:19 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:32:20 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:32:21 WebServer: serving .xml: /library/sections/2
23:32:21 WebServer: serving .xml: /library/sections/2/recentlyAdded
23:32:21 WebServer: serving /js/utils.js
23:32:22 WebServer: serving /js/updateXML.js
23:32:22 WebServer: serving .xml: /library/sections/2
23:32:39 PlexAPI: Error loading response XML from Plex Media Server:
Traceback (most recent call last):
  File "D:\PlexConnect-master\PlexAPI.py", line 406, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
  File "D:\Python27\Lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python27\Lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "D:\Python27\Lib\urllib2.py", line 449, in _open
    '_open', req)
  File "D:\Python27\Lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "D:\Python27\Lib\urllib2.py", line 1240, in https_open
    context=self._context)
  File "D:\Python27\Lib\urllib2.py", line 1200, in do_open
    r = h.getresponse(buffering=True)
  File "D:\Python27\Lib\httplib.py", line 1136, in getresponse
    response.begin()
  File "D:\Python27\Lib\httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "D:\Python27\Lib\httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "D:\Python27\Lib\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "D:\Python27\Lib\ssl.py", line 734, in recv
    return self.read(buflen)
  File "D:\Python27\Lib\ssl.py", line 621, in read
    v = self._sslobj.read(len or 1024)
SSLError: ('The read operation timed out',)

23:32:41 PlexAPI: Error loading response XML from Plex Media Server:
Traceback (most recent call last):
  File "D:\PlexConnect-master\PlexAPI.py", line 406, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
  File "D:\Python27\Lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python27\Lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "D:\Python27\Lib\urllib2.py", line 449, in _open
    '_open', req)
  File "D:\Python27\Lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "D:\Python27\Lib\urllib2.py", line 1240, in https_open
    context=self._context)
  File "D:\Python27\Lib\urllib2.py", line 1200, in do_open
    r = h.getresponse(buffering=True)
  File "D:\Python27\Lib\httplib.py", line 1136, in getresponse
    response.begin()
  File "D:\Python27\Lib\httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "D:\Python27\Lib\httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "D:\Python27\Lib\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "D:\Python27\Lib\ssl.py", line 734, in recv
    return self.read(buflen)
  File "D:\Python27\Lib\ssl.py", line 621, in read
    v = self._sslobj.read(len or 1024)
SSLError: ('The read operation timed out',)

23:32:41 PlexAPI: Error loading response XML from Plex Media Server:
Traceback (most recent call last):
  File "D:\PlexConnect-master\PlexAPI.py", line 406, in getXMLFromPMS
    response = urllib2.urlopen(request, timeout=20)
  File "D:\Python27\Lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python27\Lib\urllib2.py", line 431, in open
    response = self._open(req, data)
  File "D:\Python27\Lib\urllib2.py", line 449, in _open
    '_open', req)
  File "D:\Python27\Lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "D:\Python27\Lib\urllib2.py", line 1240, in https_open
    context=self._context)
  File "D:\Python27\Lib\urllib2.py", line 1200, in do_open
    r = h.getresponse(buffering=True)
  File "D:\Python27\Lib\httplib.py", line 1136, in getresponse
    response.begin()
  File "D:\Python27\Lib\httplib.py", line 453, in begin
    version, status, reason = self._read_status()
  File "D:\Python27\Lib\httplib.py", line 409, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "D:\Python27\Lib\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "D:\Python27\Lib\ssl.py", line 734, in recv
    return self.read(buflen)
  File "D:\Python27\Lib\ssl.py", line 621, in read
    v = self._sslobj.read(len or 1024)
SSLError: ('The read operation timed out',)

23:32:41 XMLConverter: XML_ExpandNode - Error in cmd ADDXML, line


    {{ADDXML(RecentlyAdded::recentlyAdded?X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}
    {{ADDXML(RecentlyViewedEpisodes::recentlyViewed?X-Plex-Container-Start=0&X-Plex-Container-Size=40)}}

    {{VAR(items:NoKey:FALSE)}}


Traceback (most recent call last):
  File "D:\PlexConnect-master\XMLConverter.py", line 492, in XML_ExpandNode
    res = getattr(CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 899, in TREE_ADDXML
    self.PMSroot[tag] = PMS.getroot()  # store additional PMS XML
AttributeError: 'bool' object has no attribute 'getroot'

23:32:42 XMLConverter: XML_ExpandNode - Error in cmd CUT, line


Traceback (most recent call last):
  File "D:\PlexConnect-master\XMLConverter.py", line 492, in XML_ExpandNode
    res = getattr(CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 860, in TREE_CUT
    key, leftover, dfltd = self.getKey(src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 629, in getKey
    el, srcXML, attrib = self.getBase(src, srcXML, attrib)
  File "D:\PlexConnect-master\XMLConverter.py", line 687, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'

23:32:42 XMLConverter: XML_ExpandNode - Error in cmd CUT, line


Traceback (most recent call last):
  File "D:\PlexConnect-master\XMLConverter.py", line 492, in XML_ExpandNode
    res = getattr(CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 860, in TREE_CUT
    key, leftover, dfltd = self.getKey(src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 629, in getKey
    el, srcXML, attrib = self.getBase(src, srcXML, attrib)
  File "D:\PlexConnect-master\XMLConverter.py", line 687, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'

23:32:42 XMLConverter: XML_ExpandNode - Error in cmd COPY, line

                  {{VAR(items:NoKey:TRUE)}}

Traceback (most recent call last):
  File "D:\PlexConnect-master\XMLConverter.py", line 492, in XML_ExpandNode
    res = getattr(CommandCollection, 'TREE_'+cmd)(elem, child, src, srcXML, param)
  File "D:\PlexConnect-master\XMLConverter.py", line 749, in TREE_COPY
    src, srcXML, tag = self.getBase(src, srcXML, tag)
  File "D:\PlexConnect-master\XMLConverter.py", line 687, in getBase
    src = self.PMSroot[srcXML]
KeyError: 'RecentlyAired'

23:32:59 WebServer: serving /js/utils.js

Settings.cfg:

[PlexConnect]
enable_plexgdm = True
ip_pms = 192.168.178.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.8.8
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = trailers.apple.com
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = ./assets/certificates/trailers.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = Normal
logpath = .

Any help at all or even just a link to a fix would be most appreciated!

Cheers for reading :-)


Can connect to Friends' servers but not mine?

$
0
0

I must have changed something in my server settings becuase since i decided to play around with them, I can connect to my server. I only ticked or unticked boxes, didn't change any values, and I've been trying each independently but I can't access. I use OpenPlex in Mac OSX 10.9.5.

But yes, when I open iMovies on my aTV and go to shared libraries, they load instantly, but when I go to discover (my library), the screen just stays in Accessing iMovie Theather and the spinning wheel and nothing happens.

Anyone has any quick idea of what causes this?

OpenPlex bricked Apple TV 3

$
0
0

Hi all

My install of OpenPlex on my MBP (2011) appeared to go fine. I rebooted, per the Tutorial, and my ATV3 got stuck on the Computer/System screen. I couldn't restore it on the Restore submenu of the ATV..I finally had to connect it to my Mac desktop via USB using Itunes and that finally restored it.

I would love to use Plex on the ATV3 but am wary of having the same result. Any thoughts

Cannot get trailers app to work on Apple TV.

$
0
0

Here is the log. Any help would be greatly appreciated!

23:16:16 PlexConnect: started: 23:16:16
23:16:16 PlexConnect: Version: 0.5-dev-211015
23:16:16 PlexConnect: Python: 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
23:16:16 PlexConnect: Host OS: win32
23:16:16 PlexConnect: PILBackgrounds: Is PIL installed? False
23:16:16 PlexConnect: IP_self: 192.168.1.201
23:16:17 DNSServer: started: 23:16:17
23:16:17 DNSServer: ***
23:16:17 DNSServer: DNSServer: Serving DNS on 192.168.1.201 port 53.
23:16:17 DNSServer: ***
23:16:17 WebServer: started: 23:16:17
23:16:17 WebServer: ***
23:16:17 WebServer: WebServer: Serving HTTP on 192.168.1.201 port 80.
23:16:17 WebServer: ***
23:16:17 WebServer: started: 23:16:17
23:16:18 WebServer: ***
23:16:18 WebServer: WebServer: Serving HTTPS on 192.168.1.201 port 443.
23:16:18 WebServer: ***
23:16:54 PlexAPI: ***
23:16:54 PlexAPI: PlexGDM - looking up Plex Media Server
23:16:54 PlexAPI: ***
23:16:55 PlexAPI: GDM: Servers discovered: 1
23:16:55 PlexAPI: Servers (local, plex.tv, MyPlex): 2
23:16:55 PlexAPI: Error loading response XML from Plex Media Server:
Traceback (most recent call last):
File "C:\Program Files (x86)\PlexConnect-master\PlexAPI.py", line 406, in getXMLFromPMS
response = urllib2.urlopen(request, timeout=20)
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "C:\Python27\lib\httplib.py", line 1132, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "C:\Python27\lib\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

23:16:55 WebServer: File Not Found:
Traceback (most recent call last):
File "C:\Program Files (x86)\PlexConnect-master\WebServer.py", line 229, in do_GET
XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + query, options)
File "C:\Program Files (x86)\PlexConnect-master\XMLConverter.py", line 387, in XML_PMS2aTV
aTVTree = etree.parse(sys.path[0]+'/assets/templates/'+XMLtemplate)
File "", line 62, in parse
File "", line 26, in parse
IOError: [Errno 13] Permission denied: 'C:\Program Files (x86)\PlexConnect-master/assets/templates/'

23:17:06 PlexAPI: Error loading response XML from Plex Media Server:
Traceback (most recent call last):
File "C:\Program Files (x86)\PlexConnect-master\PlexAPI.py", line 406, in getXMLFromPMS
response = urllib2.urlopen(request, timeout=20)
File "C:\Python27\lib\urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 431, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 449, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 409, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1227, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "C:\Python27\lib\httplib.py", line 1132, in getresponse
response.begin()
File "C:\Python27\lib\httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "C:\Python27\lib\httplib.py", line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "C:\Python27\lib\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

23:17:06 WebServer: File Not Found:
Traceback (most recent call last):
File "C:\Program Files (x86)\PlexConnect-master\WebServer.py", line 229, in do_GET
XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + query, options)
File "C:\Program Files (x86)\PlexConnect-master\XMLConverter.py", line 387, in XML_PMS2aTV
aTVTree = etree.parse(sys.path[0]+'/assets/templates/'+XMLtemplate)
File "", line 62, in parse
File "", line 26, in parse
IOError: [Errno 13] Permission denied: 'C:\Program Files (x86)\PlexConnect-master/assets/templates/'

23:17:10 WebServer: File Not Found:
Traceback (most recent call last):
File "C:\Program Files (x86)\PlexConnect-master\WebServer.py", line 229, in do_GET
XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + query, options)
File "C:\Program Files (x86)\PlexConnect-master\XMLConverter.py", line 387, in XML_PMS2aTV
aTVTree = etree.parse(sys.path[0]+'/assets/templates/'+XMLtemplate)
File "", line 62, in parse
File "", line 26, in parse
IOError: [Errno 13] Permission denied: 'C:\Program Files (x86)\PlexConnect-master/assets/templates/'

Plex, PlexConnect and OpenPlex working on Apple TV - thread (Part II)

$
0
0

This is the continuation thread of https://forums.plex.tv/discussion/123791/plex-plexconnect-and-openplex-working-on-apple-tv-thread#latest because the maximum character size of the OP was reached.

--> Plex, PlexConnect and OpenPlex are working on:

Apple TV software updates (latest update 26.02.2016!):

Final releases:
* Apple TV 7.2.1, bn 8011, February 25, 2016: https://miapple.me/plexconnect-openplex-running-on-apple-tv-7-2-1/
* Apple TV 7.2, bn 7512, April 08, 2015: https://miapple.me/plex-plexconnect-openplex-running-apple-tv-7-2/

Beta releases:
* Apple TV 7.2 beta 3, bn 7509, March 24, 2015: https://miapple.me/plex-plexconnect-openplex-running-apple-tv-7-2-beta-3/

Mac OS X 10.11.3 El Capitan (latest update January 28, 2016):

Final release:
* Mac OS X 10.11.3 (final release), build number (bn) 15D21, January 19, 2016: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-3-el-capitan/

Beta releases:
* Mac OS X 10.11.3 beta 1 (Developer preview 1), build number (bn) 15D9c, December 17, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-3-el-capitan-beta-1/
* Mac OS X 10.11.3 beta 2 (Developer preview 2), build number (bn) 15D13b, January 6, 2016: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-3-el-capitan-beta-2/

Mac OS X 10.11.2 El Capitan (latest update December 8, 2015):

Final release:
Mac OS X 10.11.2: build number (bn) 15C50, December 8, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan/

Beta releases:
* Mac OS X 10.11.2 beta 1 (Developer preview 1), build number (bn) 15C27e, October 28, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan-beta-1/
* Mac OS X 10.11.2 beta 2 (Developer preview 2), build number (bn) 15C31f, November 3, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan-beta-2/
* Mac OS X 10.11.2 beta 3 (Developer preview 3), build number (bn) 15C40a, November 10, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan-beta-3/
* Mac OS X 10.11.2 beta 4 (Developer preview 4), build number (bn) 15C47a, November 17, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan-beta-4/
* Mac OS X 10.11.2 beta 5 (Developer preview 5), build number (bn) 15C48a, November 30, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-2-el-capitan-beta-5/

Mac OS X 10.11.1 El Capitan (latest update October 21, 2015):

Final release:
Mac OS X 10.11.1: build number (bn) 15B42, October 21, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-1-el-capitan/

Beta releases:
* Mac OS X 10.11.1 beta 1 (Developer preview 1), build number (bn) 15B17c, September 17, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-1-el-capitan-beta-1/
* * Mac OS X 10.11.1 beta 2 (Developer preview 2), build number (bn) 15B22c, September 29, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-1-el-capitan-beta-2/
* Mac OS X 10.11.1 beta 3 (Developer preview 3), build number (bn) 15B30a, October 7, 2015:
https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-1-el-capitan-beta-3/
* Mac OS X 10.11.1 beta 4 (Developer preview 4), build number (bn) 15B38b, October 15, 2015:
https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-1-el-capitan-beta-4/

Mac OS X 10.11 El Capitan (latest update October 1 2015):

Final release:
Mac OS X 10.11: build number (bn) 15A284, September 30, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan/

Beta releases:
* Mac OS X 10.11 beta 1 (Developer preview 1), build number (bn) 15A178w, June 8, 2015: OpenPlex installer does NOT work (details: https://forums.plex.tv/topic/108332-openplex-osx-app/page-65#entry954059). We are still investigating... Update (14/06/15): PlexConnect and OpenPlex are working if they were pre-installed and running on Yosemite before upgrading to El Capitan: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-1/
* Mac OS X 10.11 beta 2 (Developer preview 2), build number (bn) 15A204h, June 23, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-2/
* Mac OS X 10.11 beta 3 (Developer preview 3), build number (bn) 15A216g, July 8, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-3/
* Mac OS X 10.11 beta 4 (Developer preview 4), build number (bn) 15A226f, July 21, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-4/
* Mac OS X 10.11 beta 5 (Developer preview 5), build number (bn) 15A235d, July 28, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-5/
* Mac OS X 10.11 beta 6 (Developer preview 6), build number (bn) 15A244d, August 3, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-6/
* Mac OS X 10.11 beta 7 (Developer preview 7), build number (bn) 15A263e, August 19, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-7/
* Mac OS X 10.11 beta 8 (Developer preview 8), build number (bn) 15A279b, August 31, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-beta-8/
* Mac OS X 10.11 GM (Golden Master), build number (bn) 15A282b, September 9, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-11-el-capitan-gm/

Mac OS X 10.10.5 Yosemite updates (latest update 13.08.2015):

Final releases:
Mac OS X 10.10.5, build number 14F27, August 13, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-10-5-yosemite/

Beta releases:
* Mac OS X 10.10.5 beta 1, bn 14F6a, July 16, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-10-5-yosemite-beta-1/
* Mac OS X 10.10.5 beta 2, bn 14F19a, July 30, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-10-5-yosemite-beta-2/
* Mac OS X 10.10.5 beta 3, bn 14F25a, August 5, 2015: https://miapple.me/plex-plexconnect-and-openplex-running-on-os-x-10-10-5-yosemite-beta-3/

Fanart: PIL/Pillow not installed …

$
0
0

… as stated both by the TV settings (greyed out) and in PlexConnect’s log on startup, or restart for that matter. Helpful reference found on neither its wiki nor this forum but for OpenPlex 0.6 which then must be, I suppose, the one way to go to display posters and backgrounds.

The installer however stalls right after launch whether from out- or inside /Applications, ctrl-C’ing PlexC's running instance first, and a console message reads:

! 09 11 15 22:11:22.651 OpenPlex-installer[44066]: *** -[AppDelegate applicationWillFinishLaunching:]: Finder got an error: % Total % Received % Xferd Average Speed Time Time Time Current
! Dload Upload Total Spent Left Speed
!
! 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
! 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file clt.bash: Permission denied
!
! 100 1031 100 1031 0 0 1490 0 --:--:-- --:--:-- --:--:-- 1489
! curl: (23) Failed writing body (0 != 1031)
! chmod: clt.bash: No such file or directory
! sh: ./clt.bash: No such file or directory (error 127)

Awaiting suggestions to get unstuck here, including explicitly ones that exclude OPlex - fingers crossed.

cheers,

PS - this first-time user's post contains template info

Have to reboot Atv2 every once in a while

$
0
0

Hello,
I've been using plexconnect with my Apple TV and Synology for months and this problem started recently :
Sometimes when I watch a movie, it will pause in the middle (showing the loading wheel). If I press the button to go back, I have access to my Plex catalog but can't watch any movie (loading wheel). The Internet connection is lost. Only way to solve the issue is to reboot the Apple TV through the Settings.
Have you any idea where this might come from? I'm using a smartdns, could this be a reason?
Thanks a lot!!

plexconnect impossible to operate with the router DLINK DSL-225 ??

$
0
0

Hello

I have a problem connecting to the router with plexconnect DLINK -DSL225 ??

I test the same setup with another apple tv on a lan network and a different NETGEAR router and everything works ??

While configuring the router DLINK DSL-225 does not work why ??

1) plexconnect server is installed on a server dedicated ubuntu 15.01 with a public ip as: 149.XXX.94.XX

2) the "apple tv with local ip 10.0.0.15 distribute the dhcp in the router 10.0.0.138

3) route the DLINK DSL-225et DHCP IP 10.0.0.138

I opened all the UDP port 53/80/443 on the DLINK router but nothing to do

I have set up DNS manual CALLED TV on the IP of my server on plexconnect: 149.XXX.94.XX but not work here ?? the DLINK router returns all the applications even as the default router for DNS resolution and therefore the resolution to trailes.apple.com always do what normally without using my plexconnect dns ?? Why???

So I look forward DNS options for this DSL-225 router and I saw that it is a following option:

Obtain DNS info from a WAN interface. so that all the host of my network know not resolve the host name on the Internet that refers to the internet providers dns ???

So I find another option below that says so check the box: Use the following DNS Static IP address

and I put the IP address public plexconnect: 149.XXX.94.XX

I am the problem is that the whole network or computer are 20 that passes through and all the other name resolution marce more, the whole network has more access to the internet ??

can you help me ?

to find an option to confiurer this router so that plexconnect operating normally?

thank you


Install on Ubuntu Server

$
0
0

I am new to Plex, Plex Connect, and Ubuntu. So, this may be a newb question, but how do I install Plex Connect on Ubuntu Server? Sorry, if this is a dumb question, but, I have looked all over and can't find anything that says it can be done. Please help!

Having issues with CyberGhost84

$
0
0

I have it where iBaa theme is working but CyberGhost84 will not pull up ,my Plex Server...

Here are the log errors....
02:07:05 PlexAPI: No Response from Plex Media Server
02:07:05 PlexAPI: We failed to reach a server. Reason: Unauthorized
02:07:05 PlexAPI: Traceback:
Traceback (most recent call last):
File "/Applications/PlexConnect/PlexAPI.py", line 406, in getXMLFromPMS
response = urllib2.urlopen(request, timeout=20)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

Any ideas why one theme would work and the other will not?

PlexConnect on synology

$
0
0

2015-12-21: 0.5-12 in sync with https://github.com/iBaa/PlexConnect/commit/378658d854dc766d786cbb89469c1cec39e8f06a

Synology installer package for PlexConnect.

 
Prerequisites

  • Official Python from Synology (can co-exist with SynoCommunity Python)
    • to update a pre 0.3-12 spk leave synocommunity Python on the NAS but also install the Synology Python, after the update SynoCommunity Python can be removed if no other package is using it)

Installation Instructions:

  • on the NAS
    • Make sure your NAS has a fixed IP Address
    • Disable HTTPS connection for web services ('Web Services' control pannel - 'HTTP Service' tab)
    • Install PMS
    • for DSM 5.1 lower the 'Thrust Level' in the package manager settings to 'Any publisher'
    • Add http://www.brigittehelsen.be/plexconnect/ to your Synology NAS Package Center sources (*)
    • Install PlexConnect
      • Choose if the internal DNS needs to be enabled by PlexConnect
      • Choose the AppleTV app that needs to show Plex
    • Optionally replace the 'default' certificates (see here why you should)
    • Start the package if it was not yet started
  • On the AppleTV

(*) Add http://www.brigittehelsen.be/plexconnect/ to your Synology NAS Package Center sources and the PlexConnect package will appear in the list of packages. See 'Install third-party applications' on http://www.synology.com/en-us/support/tutorials/500 for more info. Enable 'beta' in the settings to receive beta versions!

 
Allow different apps based on code provided by Alexander A. Protasov.
 
Installing PMS on the NAS
 
First you need to check here if your NAS supports transcoding or not. If it does not support transcoding (which is often the case), you need to take the following actions:

  • Convert all your media to an ATV supported format (check here for supported video / audio / photo formats). There are several tools that can be used for that, such as iTunes (for music), or Handbrake / iFlicks / MkvToMp4 (for video)
  • Check /usr/local/plexconnect/share/PlexConnect/ATVSettings.cfg (or in the ATV, in PlexConnect settings menu) that
  • transcoderaction=DirectPlay
  • subtitlerenderer=iOS, PMS

Failure to do so will originate error messages (in the ATV) such as An error occurred loading this content (try again later).
 
The vast majority of the TV channels available as Plug-ins to PMS (standard and/or unsupported) require transcoding, and will not work when PMS is installed in a NAS that does not supports transcoding.
 
For up-to-date info about PMS on Synology:https://forums.plex.tv/forum/133-synology/
 
Troubleshooting
 
Trailers unavailable msg:
 
a few possible causes:

  • You installed a DSM patch or a a newer DSM version: This sometimes can break PlexConnect. Just re-run the PlexConnect installer without uninstalling it first. If that does not work uninstall it completely and reinstall. You will loose any customisations and all your plexConnect settings.
     
  • You created your own certificates for the profile on the AppleTV but you did not place those on the NAS (see advanced part)
    All generated certificates are unique and whatever is on the AppleTV must match with what is on the NAS.
     
  • Make sure Port 80, 81,443 and 53 are allowed by the Synology Firewall 
     
  • On a computer, set the DNS Server to the IP of the NAS
    surf to http://trailers.apple.com:80
    surf to  http://trailers.apple.com:81
    surf to  http://trailers.apple.com:443
     
    all of them should return the same error "Message: Not Serving Client'
     
    If this works for :81 but not for :80 then you need to select "Enable Web Station" in the web services control panel
    If this works for :81 but not for :443 then you need to check that "Enable HTTPS connection for web services" is off in the "HTTP Service"tab from the web services control panel

Advanced Part

Installing Custom Certificates

The installer includes default certificates for the trailers.apple.com domain. I did not replace the default certificates  myself because I think the security risks are very small, but you can if you like.

 

Remember certificates are unique ever time they are generated. You can not register your own generated certificates and then use plexconnect with the defaults from the installer. AppleTV and every instance PlexConnect have to use the same certificates!

Follow these instruction to install your own certificates:

  • Generate certificates as described here (Mac or Windows)
  • Move the generated certificates in /usr/local/plexconnect/etc/certificates on the NAS replacing the existing files
    this assumes certificates in your 'home' folder. This example uses the certificates for the 'Trailers' app. When you have chosen 'WSJ Live' the you need 'marketwatch' and not 'trailers' in the filename.
    • open terminal on mac (or use PuTTY on windows)
    • ssh root@<ip of nas>
    • chmod -R go+w /usr/local/plexconnect/etc/certificates
    • exit
    • scp ~/trailers.cer admin@<ip of nas>:/usr/local/plexconnect/etc/certificates/trailers.cer
    • scp ~/trailers.key admin@<ip of nas>:/usr/local/plexconnect/etc/certificates/trailers.key
    • scp ~/trailers.pem admin@<ip of nas>:/usr/local/plexconnect/etc/certificates/trailers.pem
    • make ssh connection to nas
    • chmod -R go-w /usr/local/plexconnect/etc/certificates
    • exit
  • Upload the profile based on your certificates to the AppleTV as described above

Note: upon updating the installation (installing a new version without removing the old) your certificates are restored and these steps do not have to be repeated!

Using the Synology DNS Server package to capture trailers.apple.com (instructions by http://forums.plexapp.com/index.php/user/136264-abmaonline/)

When you are already using the Synology DNS Server package, the PlexConnect DNS proxy will not work, since they both want to use the same port on your Synology.

If your not using the DNS Server, stopping and uninstalling it, is the easiest solution.
When you are using the DNS Server, adding trailers.apple.com and redirecting it to PlexConnect also solves the problem. Follow these steps to use this setup:

  • Connect to Synology DSM web interface
  • Open the DNS Server Settings from the DSM 'Start' button
    [attachment=20682:1.png]
  • Goto Zones and select Create > Master Zone
  • Enter this info and click OK:
    Domain Type: Forward Zone
    Domain name: trailers.apple.com
    Master DNS Server: *IP of your Synology*
    [attachment=20683:2.png]
  • Select the new trailers.apple.com row and click Edit > Resource record (or double click the row for the same effect)
  • Create > A Type
  • Enter this info and click OK:
    Name: *leave empty*
    TTL: *use default, probably 86400*
    IP address:*IP of your Synology*
    [attachment=20684:3.png]
  • Click Finish
    [attachment=20685:4.png]
  • Do the same steps [3-8] again but this time with "atv.plexconnect"
  • Goto Log and check if there are no errors
    [attachment=20686:5.png]

    The DNS should be working now, time to disable the PlexConnect DNS and get everything connected.
  • Stop PlexConnect from package center if it is running
  • Login as root on your Synology using SSH (password for root is the same for admin on webinterface)
  • If you did not disable the Internal DNS server then Edit /usr/local/plexconnect/share/PlexConnect/Settings.cfg and set enable_dnsserver = False
  • Start PlexConnect again

If your apple tv uses the Synonoly as its DNS Server everything should work now.

As a quick check try to access http://trailers.apple.com/ from your browser. It should show something about a 403: "Error code explanation: 403 = Request forbidden -- authorization will not help."

Most browsers use DNS caching, so it may take some time before you see the change if you accessed trailers before changing the dns server, testing with your apple tv works best.

Update for latest version in git

For those wanting to use the package and always have the latest version from git at the same time:

  • Make ssh connection with root privileges to NAS
  • Get git on your synology (using ipkg or spk; when using the spk package the git client can be found at /usr/local/git/bin/git, use this in step 6 and when pulling updates)
  • Stop PlexConnect on Synology from package manager in DSM
  • Navigate to package folder (if you can't find the 'share' folder, update to the latest package in the start post)
    cd /usr/local/plexconnect/share/
  • Move current files to backup location
    mv PlexConnect/ PlexConnect-org/
  • Clone PlexConnect repo
  • git clone https://github.com/iBaa/PlexConnect.git
  • Copy config files from original folder to new checkout
    cp PlexConnect-org/*.cfg PlexConnect/
  • Change owner rights
    chown -R plexconnect:root PlexConnect/
  • Start PlexConnect again from DSM (using command line kills the service when you logout)
  • Check if everything still works.

Now to update your code:

  • cd /usr/local/plexconnect/share/PlexConnect/
  • git pull

​Starting from installer 0.3-9 this will be remembered when installing an updated version
 
Check if any changes were made; if so: stop and start PlexConnect from DSM package manager to pick them up

Music playback stops after a few seconds

$
0
0

I'm running into a problem playing music back using PlexConnect.  I've got a large music library which plays back fine on other Plex clients.  When I try to play back music using PlexConnect, I get between 5-8 seconds of playback and then it errors out.  I know the music experience is 'experimental.'  But has anyone else run into something like this (and hopefully solved it?) I turned the debug log to high but didn't see anything particularly interesting.  

 

Thanks!

-Dan 

PlexConnect for Qnap

$
0
0

Hello everyone, I have a synology with Plexconnect and apple tv working properly, but I'll change nas way to a qnap is there a link to download the plexconnet for that nas? I can not find it by google
Thank you!!

Viewing all 540 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>