aTV: Apple TV 3 (A1469), firmware version 7.2
DNS on aTV: set to the IP of my PC (192.168.0.10) which runs PMS & PlexConnect
Local IP: same (192.168.0.10)
PC with PMS & PlexConnect is running Windows 10
PMS version: 0.9.16.3
PlexConnect version: downloaded 23.03.2016 at 20:00 from github. No code changes
Python version: 2.7.11
Contents of the 'Settings.cfg’:
[PlexConnect]
enable_plexgdm = False
ip_pms = 192.168.0.10
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 8.8.4.4
prevent_atv_update = True
enable_plexconnect_autodetect = False
ip_plexconnect = 192.168.0.10
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 = .
Detail on the media file:
<MediaContainer size="1" identifier="com.plexapp.plugins.rodinatv" sourceTitle="RodinaTV" mediaTagPrefix="/system/bundle/media/flags/" prefsKey="/:/plugins/com.plexapp.plugins.rodinatv/prefs"> <Video sourceIcon="http://resources-cdn.plexapp.com/image/source/com.plexapp.plugins.rodinatv.jpg?h=None" key="/video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNgpzNDcKaHR0cDovL2FwaS5yb2RpbmEudHYvZGwvaWNvbnMvMzAwXzMwMF8wLzIzMS5wbmdzNQp0aHVtYnUyMwrQn9C10YDQstGL0Lkg0LrQsNC90LDQu3M1CnRpdGxlczEKMXMzCmNpZGIxczE3CmluY2x1ZGVfY29udGFpbmVydTIxNAoyMjowMC0wMjowMCDQotC10LvQtdC60LDQvdCw0Lsg0JTQvtCx0YDQvtC1INGD0YLRgNC%2ALgowMjowMC0wMjoyMCDQndC%2A0LLQvtGB0YLQuC4KMDI6MjAtMDI6NTAg0JrQvtC90YLRgNC%2A0LvRjNC90LDRjyDQt9Cw0LrRg9C%400LrQsC4KMDI6NTAtMDM6NTUg0JbQuNGC0Ywg0LfQtNC%2A0YDQvtCy0L4hLgowMzo1NS0wNTowMCDQnNC%2A0LTQvdGL0Lkg0L%40RgNC40LPQvtCy0L7RgC4KczcKc3VtbWFyeXMwCnM1CnN0YXJ0cjAK" type="clip" title="Первый канал" summary="22:00-02:00 Телеканал Доброе утро. 02:00-02:20 Новости. 02:20-02:50 Контрольная закупка. 02:50-03:55 Жить здорово!. 03:55-05:00 Модный приговор. " ratingKey="Первый канал" thumb="http://api.rodina.tv/dl/icons/300_300_0/231.png"> <Media audioChannels="2" protocol="hls" optimizedForStreaming="1" container="mp4" audioCodec="aac" videoCodec="h264"> <Part container="mp4" key="http://5.254.126.48:7559/ec8f7ff843c6875ba0daf501f4e033583a1214aa050c19da58557e826b6fea17/1458791788/MuST8uuq/hlsmain/231/141_148.m3u8" file="" optimizedForStreaming="1"> <Stream index="0" selected="1" streamType="1" codec="h264" id="1"/> <Stream index="1" selected="1" streamType="2" channels="2" codec="aac" id="2"/> </Part> </Media> </Video> </MediaContainer>
Hello!
First - thank you for a great work. Have been watching the movie collection on AppleTV flawlessly, now I want to connect a Russian IPTV service by means of a Plex channel and encountered a problem. The channel works absolutely okay in the Plex Web Player, unfortunately in PlexConnect only navigation works and stream opening gives an error. I digged a bit and found that for an unknown reason XMLConverter.py appends to the end of stream URL this: MEDIA_ELEMENT_NOT_FOUND
,therefore breaking it for the playing.
This is channel plugin’s own log (can be clearly seen the difference in URL before and after going to PlexConnect):
2016-03-23 20:23:38,532 (1330) : WARNING (runtime:1065) - Generating a callback path for a function with no route: <function CreateChannelClipObject at 0x053EB3F0>
2016-03-23 20:23:38,536 (1330) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1872 bytes
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:717) - Handling request GET /video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNQpiMXMxNwppbmNsdWRlX2NvbnRhaW5lcnUyNgrQn9C10YDQstGL0Lkg0LrQsNC90LDQuyBIRHM1CnRpdGxlczQ3Cmh0dHA6Ly9hcGkucm9kaW5hLnR2L2RsL2ljb25zLzMwMF8zMDBfMC8yNzIucG5nczUKdGh1bWJ1MjE0CjIyOjAwLTAyOjAwINCi0LXQu9C10LrQsNC90LDQuyDQlNC%2A0LHRgNC%2A0LUg0YPRgtGA0L4uCjAyOjAwLTAyOjIwINCd0L7QstC%2A0YHRgtC4LgowMjoyMC0wMjo1MCDQmtC%2A0L3RgtGA0L7Qu9GM0L3QsNGPINC30LDQutGD0L%40QutCwLgowMjo1MC0wMzo1NSDQltC40YLRjCDQt9C00L7RgNC%2A0LLQviEuCjAzOjU1LTA1OjAwINCc0L7QtNC90YvQuSDQv9GA0LjQs9C%2A0LLQvtGALgpzNwpzdW1tYXJ5czIKMjNzMwpjaWRyMAo_
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:814) - Found route matching /video/rodinatv/:/function/CreateChannelClipObject
2016-03-23 20:23:41,766 (221c) : DEBUG (runtime:125) - Calling function ‘CreateChannelClipObject’
2016-03-23 20:23:41,767 (221c) : DEBUG (networking:166) - Requesting ‘http://api.rodina.tv/data.xml?query=get_url&token=TnK2kGIcyLVxxdRSdmBuWqEYjkq9DGUs&key=“number|passwd”&value=“23|cdb6018dd99714b6124f5af98481f70f”’
2016-03-23 20:23:42,293 (221c) : INFO (logkit:16) - ----->>> FINAL URL: http://5.254.126.48:7559/3e59d74748ae167abb6c170da1f57ec7e8823e11df8e2f139a8a1341ded27616/1458789943/mv62Vq9C/hlsmain/272/146.m3u8
2016-03-23 20:23:42,295 (221c) : WARNING (runtime:1065) - Generating a callback path for a function with no route: <function CreateChannelClipObject at 0x053EB3F0>
2016-03-23 20:23:42,299 (221c) : DEBUG (runtime:924) - Response: [200] MediaContainer, 1872 bytes
2016-03-23 20:23:43,851 (112c) : DEBUG (runtime:717) - Handling request GET /video/rodinatv/:/function/CreateChannelClipObject?function_args=Y2VyZWFsMQoxCmRpY3QKNQpiMXMxNwppbmNsdWRlX2NvbnRhaW5lcnUyNgrQn9C10YDQstGL0Lkg0LrQsNC90LDQuyBIRHM1CnRpdGxlczQ3Cmh0dHA6Ly9hcGkucm9kaW5hLnR2L2RsL2ljb25zLzMwMF8zMDBfMC8yNzIucG5nczUKdGh1bWJ1MjE0CjIyOjAwLTAyOjAwINCi0LXQu9C10LrQsNC90LDQuyDQlNC%2A0LHRgNC%2A0LUg0YPRgtGA0L4uCjAyOjAwLTAyOjIwINCd0L7QstC%2A0YHRgtC4LgowMjoyMC0wMjo1MCDQmtC%2A0L3RgtGA0L7Qu9GM0L3QsNGPINC30LDQutGD0L%40QutCwLgowMjo1MC0wMzo1NSDQltC40YLRjCDQt9C00L7RgNC%2A0LLQviEuCjAzOjU1LTA1OjAwINCc0L7QtNC90YvQuSDQv9GA0LjQs9C%2A0LLQvtGALgpzNwpzdW1tYXJ5czIKMjNzMwpjaWRyMAo_MEDIA_ELEMENT_NOT_FOUND
Apple TV gives a “An error has occured while playing the content” message.
Wireshark shows that PlexConnect gives to aTV broken URL in the XML.
The “key” final URL (with .m3u8) opens and plays in VLC in Windows with no problem.
Attaching “more detailed fresh” PlexConnect.log in 2 parts (sorry for being big):
http://pastebin.com/P3QLx7CY part 1
http://pastebin.com/0XEhscnA part 2
Thank you for your help!
Thanks for pointing me out