ibaa / plexconnect Goto Github PK
View Code? Open in Web Editor NEWPlex @ aTV - think different...
License: Other
Plex @ aTV - think different...
License: Other
I've noticed that the audio and video eventually get out of sync on higher quality videos. (especially MKVs) Is there anyway to fix that? I never have issues with audio/video being in sync with my WDTV Live player and I am also running on a gigabit LAN which should be plenty enough bandwidth.
Hey,
I got this working thanks alot for that.
But can my friend connect to my server aswell ? can some one explain how this could be done ?
Thans in advanced
Test
At least loading (buffering in our state) and paused are interesting to us.
atv.player.playerStateChanged = function(newState, timeIntervalSec)
{
/*
atv.player.states.FastForwarding
atv.player.states.Loading
atv.player.states.Paused
atv.player.states.Playing
atv.player.states.Rewinding
atv.player.states.Stopped
*/
}
ReadyNAS uses version 2.4.4 of python. Can't change very easily, as new firmware wipes.
Try-except-finally did not work until 2.5. You are using T-E-F in PlexConnect.py. Fails on line 76 with py 2.4.4
Please state that version 2.5+ of python is required
Please also offer a work-around for those of us with earlier versions?
Thanks,
TC
So I have some Sony HD Camcorder video files in my family home videos folder and it seems as though the appletv/plexconnect cannot play them. Is there support for .MTS or not quite yet? thanks again...
I just installed plexconnect on my windows 7 PC and setup both my appletv2 and appletv3 with settings that allow for it to work. I have tons of mkv video files on my RAID5 server and I just tried streaming to both appletv's. I seem to get some audio distortion on louder scenes that are not there normally. Is this a known issue? Also, I have an WDTV Live media player as well which can stream mkv videos through my LAN, and I was wondering if using PlexConnect to the appletvs can degrade the video source file as compared to playing the actual mkv like on a wdtv player. (or is it a direct play via LAN?) Thanks in advance for your help!
When I select a subtitle track I don't get subtitles by my movie stream.
While with other plex clients I get the subtitles.
It's amazing to have something like this, it popped up just as I was looking for it.
However, there's one problem in my way of using PlexConnect. It sets up a server that listens on port 80, the same port that my dedicated web server also listens on...
I was wondering if there was anyway to have this be able to play nice with web servers like Apache and lighttpd. My Plex Server isn't solely home to Plex, but numerous other server software.
I know it's difficult, as the AppleTV only sends on Port 80, but I'm hoping there's some kind of solution. Reeeeally want to give PlexConnect a try.
OSError: [Errno 38] Function not implemented
Swapping these calls out to threadings Queue and thread fix the issue, see gist: https://gist.github.com/AnthonyMann/5776560
May not be an ideal solution
I keep getting this pop up message when trying to play mp4 video files. Its 2 specific folders that are doing this (family home videos I ripped from analog) I do not get it since they work just fine via PC/Mac web portal and on both iphone and ipad. Any suggestions on how to fix it? In addition, the plex media server app on my win7 machine said its all done updating/adding items to the database so its not that. thanks!
I changed the web server port to 81 because the computer already uses 80.
server = HTTPServer(('',81), MyHandler)
Via mod_proxy from apache I redirect incoming traffic at port 80 for trailers.apple.com to port 81
<VirtualHost *:80>
ServerName trailers.apple.com
ProxyPreserveHost On
ProxyPass / http://192.168.0.9:81/
ProxyPassReverse / http://192.168.0.9:81/
</VirtualHost>
this works.
Can you provide a setting for the Web server Port?
Nice work!
Thx
I can select TV shows and they play brilliantly.
However, I don't seem to be able to play movies.
I'm running plexconnect on CentOS 6.4, which runs python 2.6.6.
My setup has the webserver component running on port 82, with a virtual server running Apache that proxies the request to the plexconnect webserver.
I've put the stacktrace below:-
WebServer: serving .xml: /library/metadata/398
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Role[2]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Director[2]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Producer[2]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Role[3]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Director[3]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Producer[3]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Role[4]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Director[4]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
XMLConverter: XML_ExpandLine - Error in {{VAL(Video/Producer[4]/tag)}}
Traceback (most recent call last):
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 430, in XML_ExpandLine
res = eval("g_CommandCollection.ATTRIB_"+cmd+"(src, srcXML, '"+param+"')")
File "", line 1, in
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 712, in ATTRIB_VAL
key, leftover, dfltd = self.getKey(src, srcXML, param)
File "/data/PlexConnect2/PlexConnect/XMLConverter.py", line 547, in getKey
el = el.find(parts[0])
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 186, in find
return _compile(path).find(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in init
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
Any ideas on the issue would be great
Thanks
If PMS ever needs to be relaunched or restarted, PlexConnect loses its' connection to PMS. PlexConnect needs to be restarted in order for the link to be re-created, this is true even though the addresses and ports are static on both services. I am not sure why this is the case; maybe a type of internal timer/reset where if a connection is lost after a certain amount of time the software will "relaunch" in a sense to re-connect to PMS.
This is on 10.7.5 with PMS and PlexConnect both running the newest versions as of this morning (6/2/13).
Tested the code under 2 versions of linux on different machines and both fail to create the DNS Server, giving the following error:-
Failed to create socket on UDP port 53: [Errno 98] Address already in use.
Hello, I'm trying to play H264 MKV files, but no luck. Now trying to get it work for days now. The only way to watch all of the movies, was to use the opsoneo version, and I had to change a line in the PlexAPI.py to:
plexAccess['X-Plex-Client-Capabilities'] = 'protocols=http-live-streaming,http-mp4-streaming,http-mp4-video,http-mp4-video-720p,http-mp4-video-1080p,http-streaming-video,http-streaming-video-720p,http-streaming-video-1080p;videoDecoders=h264{profile:main&resolution:720&level:42};audioDecoders=aac'
This solution works fine, but the UI is not so good, coz it's an older version.
Tried to get it work on the current version, but no luck. There is no PlexAPI.py file, I found these kind of lines in the XMLConverter.py file, tried to add X-Plex-Client-Capabilities attribute, but nothing. When I try to play an MKV, it's just beachballing.
Running on Ubuntu server 12.04 LTS, and the PMS is 0.9.7.22.
Any ideas?
Thank You!
I know multicast is what's specced, but we've found broadcast works more reliably :)
After entering the sudo ./PlexConnect.py command in terminal, machine asks for password. I enter my usual admin password, but to no avail. Says it's wrong. Is there something I'm missing here?
Thx
For IIS setups i use a reverse proxy to connect to your web-server as port 80 is used. The proxy will send its own user-agent. To fix this i have manually changed the WebServer.py file.
Your version has:
if self.headers['Host'] == Settings.getHostToIntercept() and
self.headers['User-Agent'].startswith("iTunes-AppleTV"):
for it to work i changed it to:
if 1==1 :
Im thinking it would need to be changed to somehting like:
if (MyGlobalBooleanForDisregardHeaders) or (self.headers['Host'] == Settings.getHostToIntercept() and
self.headers['User-Agent'].startswith("iTunes-AppleTV")):
If we could put an option in the settings.py file i could make a guide on how to setup PlexConnect to play nice with IIS.
I typically control my Apple TV with the remote app on my iPhone. It no longer recognizes my AppleTV. The app says to turn on home sharing. Anyway around this?
I have home sharing on.
getting a constant error on everything I try to run
firstly getting no artwork with any titles on the ATV but all there on my windows 8 Machine, then when going in to say a film that's been added I get all the info but no artwork then when I play content I get an error saying this content cant be played, try again later
been trying for a few hours but cant resolve it, any help would be good
Windows 8 machine
ATV 3
I always get an immediate shutdown and the following error (logged via launchd's logging facility):
Traceback (most recent call last):
File "/Applications/PlexConnect/PlexConnect.py", line 72, in <module>
key = raw_input()
EOFError: EOF when reading a line
Standard log output is always a variation of this:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.178.34
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
WebServer : ***
WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer : ***
WebServer : Shutting down.
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.178.34
DNSServer : forward other to higher level DNS: 192.168.178.1
DNSServer : ***
DNSServer : Shutting down.
PlexConnect : Shutting down.
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.178.34
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
WebServer : ***
WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer : ***
WebServer : Shutting down.
When running manually, the whole thing works perfectly. I just don't want to manually restart PlexConnect every time my server restarts. And without PlexConnect running the whole AppleTV internet setup isn't working as far as I understand it. Correct?
hi
i managed to run a external server with plexconnect
but there is a problem, images did not load,
also changed the external DNS to tunlr then i can use hulu and netflix in the same time because i'm not in the USA
is there any fix for the images ?
if you want to try it, change your DNS to 46.105.73.93
Thanks!
Is there a way to watch high resolution MKV video files straight from a networked PC, rather than trans-coding/down-converting it. I have a 106" projector screen and when I play 1080p MKV files straight form my WDTV Live Media Player it looks flawless on there, but when using Plexconnect with my AppleTV3 I can see tons of pixelization (especially darker scenes) That would make this software complete if you ask me :) thanks!
Hi Guys,
Thank you for all your hard work on plex connect so far, i am really enjoying using it. I am having some issues with the channels however. I do understand not all the channel are supported at the moment but have seen other users saying they have successfully watched things of 'let me watch this.' I have not however been able to get it to work and get the error message 'trailers unavailable. try again later.' i have also verified that this channels works on an iPhone and also through my all in one home cinema system. I am running windows 7, python 27 and the latest version of plex.
Thanks for your help and keep up the good work :)
Hello,
I was wondering if multi-user / myplex support could be added to Plexconnect.
It would be ideal if you could allow others (those you shared your library with) to also watch through plexconnect with their ATV at home but ofcourse everyone should have their own watched/unwatched status.
Thank you,
Michiel
I have OS X Server installed, but tried turning off websites, sharing, and DNS to make this work. It still wouldn't, AND I tried to find the process that was using port 80 and it didn't show up.
So I tried changing the port the web server used to 8080
def Run(cmdQueue, param):
#Protocol = "HTTP/1.0"
# todo: IP, port
try:
server = HTTPServer(('',8080), MyHandler)
But that doesn't work. The trailers app is still normal.
Is there any way to change the port the web server uses so I can use this with OS X server and whatever else is blocking 80?
Also is it possible to change some other app into Plex instead of trailers?
• Initial point release
• Support for ATV firmwares 5.0-5.2.1
• Movie section grid view navigation (minus search and folder views)
• Movie section pre-play screen
• TV section with default list view navigation (minus search and folder views)
• TV section grid view navigation (advanced setting in settings.py)
• TV section pre-play screen
• Update of watched/unwatched status working on all ATV supported firmwares (automatically as media is viewed or by the user holding down the select button and selecting the status)
• Direct play fully working
• Transcoding working (possibly with some bugs - only currently uses the older PMS transcoder engine)
• Subtitles working for direct played media (not yet owkring for transcoded media)
• iTunes DRM'ed video files play (this is not possible with other Plex clients)
• Actor thumbnails on pre-play screen
• Use of GDM to automatically determine PMS IP
• Supports use of unblock DNS services, such as Unblock-US
• iPhoto channel fully working
• "Under construction" XML page for non-working items
I'd like to suggest a web micro-framework to replace the BaseHTTPServer / CGI setup that can only handle one client at a time.
Survey of current Python web micro-frameworks:
http://www.slideshare.net/r1chardj0n3s/web-microframework-battle
Winner of the survey is Bottle:
http://bottlepy.org/
Cheers!
Hi,
Could you please help me with the following error?
Thank you.
I changed the Setting.py->p_pms to local IP of server and the ip_dnsmaster to router IP.
After accessing Trailers app on ATV3 I still get the error
XMLConverter: Unable to connect to 192.168.1.100:32400
Reason: [Errno 61] Connection refused
22:11:15 PlexConnect: started: 22:11:15
22:11:15 PlexConnect: ***
22:11:15 PlexConnect: PlexConnect
22:11:15 PlexConnect: Press ENTER to shut down.
22:11:15 PlexConnect: ***
22:11:15 PlexConnect: started: 22:11:15
22:11:15 PlexConnect: IP_self: 192.168.1.100
22:11:15 PlexGDM: ***
22:11:15 PlexGDM: looking up Plex Media Server
22:11:15 PlexGDM: ***
22:11:16 PlexGDM: No servers discovered
22:11:16 PlexConnect: PMS: 192.168.1.100:32400
22:11:16 DNSServer: started: 22:11:16
22:11:16 DNSServer: ***
22:11:16 DNSServer: Starting up.
22:11:16 DNSServer: intercept trailers.apple.com: 192.168.1.100
22:11:16 DNSServer: forward other to higher level DNS: 192.168.1.1
22:11:16 DNSServer: ***
22:11:16 WebServer: started: 22:11:16
22:11:16 WebServer: ***
22:11:16 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
22:11:16 WebServer: ***
22:12:26 DNSServer: DNS request received!
22:12:26 DNSServer: Source: ('192.168.1.101', 54663)
22:12:26 DNSServer: Domain: trailers.apple.com
22:12:26 DNSServer: ***intercept request
22:12:26 DNSServer: -> DNS response: 192.168.1.100
22:12:26 WebServer: serving application.js
22:12:26 WebServer: serving /Users/MacBook/Downloads/PlexConnect-XML_templates/assets/plexconnect.xml
22:12:26 WebServer: serving /Users/MacBook/Downloads/PlexConnect-XML_templates/assets/utils.js
22:12:26 ATVLogger: loadItem: Library
22:12:26 WebServer: serving .xml: /library/sections
22:12:26 XMLConverter: Unable to connect to 192.168.1.100:32400
Reason: [Errno 61] Connection refused
22:12:26 XMLConverter: No Response from Plex Media Server
It would be really cool to be able to select Trailers are the screen saver source on ATV, and have PlexConnect serve up its poster art. Not sure if this functionality uses the same XML interface as the regular Trailers 'App' so it would be possible, but it would be really nice.
I'm a developer myself, and I'd love to give this a whirl. Having never done any work with the Apple TV though, I was wondering what the best way to intercept calls to find out the URLs as well as what Apples XML responses look like would be. Charles?
Can I quit Terminal after following the instructions or does it have to stay open in order to work?
Hi, I got this problem, when I opened PlexConnect the screen shows all this information:
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect: Press ENTER to shut down.
PlexConnect : ***
Plex Connect: IP_self : 192.168.0.100
PlexGDM: ***
PlexGDM: Looking up Plex Media Server
PlexGDM: ***
PlexGDM: No servers discovered
DNSServer : ***
DNSServer: Starting up.
DNSServer: intercept trailers.apple.com: 192.168.0.100
DNSServer: forward other to higher level DNS: 192.168.0.1
DNSServer: ***
WebServer: Failed to connect to port 80 : [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
I hope you can help me, thank you.
The main problem with PlexConnect now is that when you watch something from a AppleTV, it will count as watched/unwatched for the primary user in Plex. It would be awesome if we could define that so that you could also set plexconnect to not record what was being watched, at least not for the Plex library's first user.
Work perfectly for random period... normally after watching a video to the end (guessing it's
Keep getting this error. Requires a restart for Plexconnect to work again.
DNSServer: Source: ('192.168.0.2', 65226)
DNSServer: Domain: upp.itunes.apple.com
DNSServer: **_forward request
DNSServer: -> DNS response from higher level
DNSServer: Shutting down.
Process Process-1:
Traceback (most recent call last):
File "C:\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
self._target(_self._args, **self._kwargs)
File "C:\plexconnect\DNSServer.py", line 166, in Run
data, addr = DNS.recvfrom(1024)
error: [Errno 10054] An existing connection was forcibly closed by the remote ho
st
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /CgiTagMenu?page=Top&Language=0 HT
TP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /CgiTagMenu?page=Top&Language=0 HT
TP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /CgiTagMenu?page=Top&Language=0 HT
TP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /get_log.cgi HTTP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /get_log.cgi HTTP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /get_log.cgi HTTP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
192.168.0.123 - - [15/Jun/2013 08:42:59] "GET /top.htm HTTP/1.1" 403 -
192.168.0.123 - - [15/Jun/2013 08:42:59] code 403, message Not Serving Client 19
2.168.0.123
PlexConnect plays successfully only .mp4 files but fails to play any other format (mkv, avi, etc) returning "An error occurred loading this content. Try again later"
OS: Ubuntu 12.04 LTS 64-bit
Python version: 2.7
Terminal log:
PlexConnect: started: 02:07:46
PlexConnect: ***
PlexConnect: PlexConnect
PlexConnect: Press ENTER to shut down.
PlexConnect: ***
PlexConnect: started: 02:07:46
PlexConnect: IP_self: 192.168.1.3
PlexGDM: ***
PlexGDM: looking up Plex Media Server
PlexGDM: ***
PlexGDM: servers discovered: 1
PlexConnect: PMS: 192.168.1.3:32400
DNSServer: started: 02:07:47
DNSServer: ***
DNSServer: Starting up.
DNSServer: intercept trailers.apple.com: 192.168.1.3
DNSServer: forward other to higher level DNS: 62.38.0.81
DNSServer: ***
WebServer: started: 02:07:47
WebServer: ***
WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer: ***
DNSServer: DNS request received!
DNSServer: Source: ('127.0.0.1', 52071)
DNSServer: Domain: daisy.ubuntu.com
DNSServer: **forward request
DNSServer: -> DNS response from higher level
DNSServer: DNS request received!
DNSServer: Source: ('127.0.0.1', 57870)
DNSServer: Domain: daisy.ubuntu.com
DNSServer: *__forward request
DNSServer: -> DNS response from higher level
DNSServer: DNS request received!
DNSServer: Source: ('192.168.1.4', 61373)
DNSServer: Domain: trailers.apple.com
DNSServer: *__intercept request
DNSServer: -> DNS response: 192.168.1.3
WebServer: serving application.js
192.168.1.4 - - [14/Jun/2013 02:07:51] "GET /appletv/us/js/application.js HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/plexconnect.xml
192.168.1.4 - - [14/Jun/2013 02:07:51] "GET /plexconnect.xml HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/utils.js
192.168.1.4 - - [14/Jun/2013 02:07:51] "GET /utils.js HTTP/1.1" 200 -
ATVLogger: loadItem: Library
192.168.1.4 - - [14/Jun/2013 02:07:52] "GET /loadItem:%20Library&atvlogger HTTP/1.1" 200 -
WebServer: serving .xml: /library/sections
192.168.1.4 - - [14/Jun/2013 02:07:52] "GET /library/sections&PlexConnectUDID=C07JGKGLDRHN HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/utils.js
192.168.1.4 - - [14/Jun/2013 02:07:52] "GET /utils.js HTTP/1.1" 200 -
ATVLogger: loadURL (override): http://trailers.apple.com/library/sections/1
192.168.1.4 - - [14/Jun/2013 02:07:54] "GET /loadURL%20(override):%20http:&fs;&fs;trailers.apple.com&fs;library&fs;sections&fs;1&atvlogger HTTP/1.1" 200 -
WebServer: serving .xml: /library/sections/1
192.168.1.4 - - [14/Jun/2013 02:07:54] "GET /library/sections/1&PlexConnectUDID=C07JGKGLDRHN HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/utils.js
192.168.1.4 - - [14/Jun/2013 02:07:54] "GET /utils.js HTTP/1.1" 200 -
DNSServer: DNS request received!
DNSServer: Source: ('192.168.1.4', 59255)
DNSServer: Domain: p22-buy.itunes.apple.com.akadns.net
DNSServer: *__forward request
DNSServer: -> DNS response from higher level
ATVLogger: loadURL (override): http://trailers.apple.com/library/sections/1/all
192.168.1.4 - - [14/Jun/2013 02:07:56] "GET /loadURL%20(override):%20http:&fs;&fs;trailers.apple.com&fs;library&fs;sections&fs;1&fs;all&atvlogger HTTP/1.1" 200 -
WebServer: serving .xml: /library/sections/1/all
192.168.1.4 - - [14/Jun/2013 02:07:57] "GET /library/sections/1/all&PlexConnectUDID=C07JGKGLDRHN HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/utils.js
192.168.1.4 - - [14/Jun/2013 02:07:58] "GET /utils.js HTTP/1.1" 200 -
WebServer: serving /home/delk/PlexConnect/assets/scrobble.js
192.168.1.4 - - [14/Jun/2013 02:07:58] "GET /scrobble.js HTTP/1.1" 200 -
DNSServer: DNS request received!
DNSServer: Source: ('192.168.1.4', 50195)
DNSServer: Domain: itunes-cdn.apple.com.akadns.net
DNSServer: *__forward request
DNSServer: -> DNS response from higher level
DNSServer: DNS request received!
DNSServer: Source: ('192.168.1.4', 56832)
DNSServer: Domain: ax.init-cdn.itunes.apple.com.akadns.net
DNSServer: **forward request
DNSServer: -> DNS response from higher level
ATVLogger: loadURL (override): http://trailers.apple.com/library/metadata/15
192.168.1.4 - - [14/Jun/2013 02:08:04] "GET /loadURL%20(override):%20http:&fs;&fs;trailers.apple.com&fs;library&fs;metadata&fs;15&PlexConnect=Play&atvlogger HTTP/1.1" 200 -
WebServer: serving .xml: /library/metadata/15
192.168.1.4 - - [14/Jun/2013 02:08:04] "GET /library/metadata/15&PlexConnect=Play&PlexConnectUDID=C07JGKGLDRHN HTTP/1.1" 200 -
ATVLogger: Player state: Loading at this time: 0
192.168.1.4 - - [14/Jun/2013 02:08:04] "GET /Player%20state:%20Loading%20at%20this%20time:%200&atvlogger HTTP/1.1" 200 -
ATVLogger: Player state: Stopped at this time: 0
192.168.1.4 - - [14/Jun/2013 02:08:09] "GET /Player%20state:%20Stopped%20at%20this%20time:%200&atvlogger HTTP/1.1" 200 -
Hello im very new to atv and so to plex but i tried to start it did everything as in your install guide for plex but it still doesnt work. everytime i try to open trailer on my atv3 it says trailer is not available. please try again later.
ive got the ATV3 running on 5.2.1
the ip of my computer where i run plexconnect is 192.168.178.24, ive changed the dns in the atv from 192.168.178.1 to 192.168.178.24 and ive changed the
it would be great if you can help me, i appreciate your work
I set everything up just like the windows guide said to and i got that error message on the Apple TV when opening Trailers app. Here is a screenshot of my CMD window with PlexConnect
16:28:54 PlexConnect: started: 16:28:54
16:28:54 PlexConnect: ***
16:28:54 PlexConnect: PlexConnect
16:28:54 PlexConnect: Press ENTER to shut down.
16:28:54 PlexConnect: ***
16:28:54 PlexConnect: started: 16:28:54
16:28:54 PlexConnect: IP_self: 192.168.0.6
16:28:54 PlexGDM: ***
16:28:54 PlexGDM: looking up Plex Media Server
16:28:54 PlexGDM: ***
16:28:55 PlexGDM: servers discovered: 1
16:28:55 PlexConnect: PMS: 192.168.0.6:32400
16:28:55 DNSServer: started: 16:28:55
16:28:55 DNSServer: ***
16:28:55 DNSServer: Starting up.
16:28:55 DNSServer: intercept trailers.apple.com: 192.168.0.6
16:28:55 DNSServer: forward other to higher level DNS: 8.8.8.8
16:28:55 DNSServer: ***
16:28:55 WebServer: started: 16:28:55
16:28:55 WebServer: Failed to connect to port 80 (http): [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
?? this is a new one... nothing changed. netstat -o shows nothing on port 80..?
ATV2 or ATV3?: ATV3
Your ATV firmware version : 5.2.1
The DNS server set on the ATV : 192.168.1.1
The device and operating system that PlexConnect is installed on: Synology DS412+ DSM 4.2-3211
The local IP address of the device that PlexConnect is installed on: 192.168.1.20
The device and operating system (including version number) that the Plex media server (PMS) is installed on: Synology DS412+ DSM 4.2-3211
The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.1.1
Where your media is stored (e.g. internal drive): Same Synology DS412+ DSM 4.2-3211
The PlexConnect version number (or if using Github source then a time and date of download; look at the creation date of the folder): 1.0
A detailed description of the issue (the clearer you can make this the better): Running the Python script gives me an error and ATV3 is unable to connect.
LogFile: http://pastebin.com/zNf9zEuJ
I am trying to learn the system (so I can understand and perhaps contribute) and I would like to be able to use a browser to explore the server and how it work.
But the User-Agent (and perhaps other checks I haven't found yet) stop me from using a web browser to to explore.
It would be nice to be able to disable that check while I'm tinkering.
(Aside: Is that check even necessary?)
It would be really nice to have a option in settings to audio boost, if possible. Besides this minor issue everything seems to be working well. Thanks!
For my Roku, I can be in my plex app and choose to play a video directly to the Roku. I would like to see that ability in PlexConnect. Let me know if you need more details.
When you run PlexConnect behind a reverse proxy server (for instance Apache or IIS), the atvlogger-implementation is broken. Because the atvlogger-stuff doesn't reply with ANY answer back to the reverse proxy, the reverse proxy is retrying again and again and (on Apache) is generating alot of HTTP 502 error's.
I'm running PlexConnect on port 8085 and behind an Apache Reverse Proxy with the following virtual host:
http://forums.plexapp.com/index.php/topic/70321-running-with-local-dns-server-and-iis/#entry406414
The fix for the atvlogger is in post http://forums.plexapp.com/index.php/topic/70321-running-with-local-dns-server-and-iis/#entry406466
Fresh install on OS X 10.8.1
python 2.7.2
Library browsing works but when I try to play a show I get:
WebServer : serving .xml: /library/metadata/921&PlexConnect=EpisodePrePlay
10.0.1.214 - - [01/Jun/2013 18:46:20] "GET /library/metadata/921&PlexConnect=EpisodePrePlay HTTP/1.1" 200 -
(Should that & be a ?)
but nothing shows and I see "Trailers is unavailable. Try again later".
I am using a second router that uses Tomato USB firmware, with this setup you can configure the DNS/DHCP settings to intercept port 53.
Within the dnsmasq settings I put this entry:
address=/trailers.apple.com/192.168.1.23
Change the IP to match where you have PlexConnect running and you are done.
Now the AppleTV can use it's automatic DNS settings and it works perfectly!
This also allows a graceful failure in case my PlexConnect machine is having issues, the AppleTV and Netflix will continue to work and is much more WAF friendly...
I got 3 plex servers, but It can only handle one.
Posibility for traduction, if the text strings were in language config files.
First of all i would like to point out that i am really new to all of this, but at the same time really interested in al of this.
My question is regarding the "exploit" that allows us to make a connection between the plex server and the apple tv. my knowledge in this area is very limited so sorry for my ignorance, but my question is would it be possible to instead to using our own plex server, if we maybe could use the server that MovieBox(a jailbroken exclusive app for iOS, that is similar to netflix but free) uses, as far as i know moviebox is pulling the movies from a russian streaming web page... because if posible it would result in som kind of free netflix to the apple tv's with both tv shows and movies.
pleas respond, with your honest opinion.
Ps: i leav the hompage for moviebox http://movie-box.cc
regards belfaz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.