@czukowski
Thanks for the info but which client/version are you using for the xml ?
I installed your channel and using Plex-web (Version 3.20.8) I get a very different xml (below). I see the HTTP.CookiesForURL error (you’ve already posted about) in my log (included further below), probably due to which the http headers are not showing up but also guessing since you don’t get those, probably you are using an older version where I do suspect it used to work.
<MediaContainer title1="M*A*S*H online" noCache="1" size="1" identifier="com.plexapp.plugins.mashonline" sourceTitle="M*A*S*H online" mediaTagPrefix="/system/bundle/media/flags/" prefsKey="/:/plugins/com.plexapp.plugins.mashonline/prefs">
<Video sourceIcon="http://resources-cdn.plexapp.com/image/source/com.plexapp.plugins.mashonline.jpg?h=None" key="/video/mashonline/:/function/CreateVideoObjectContainer?function_args=Y2VyZWFsMQoxCmRpY3QKNAppMApzMTIKc2Vhc29uX2luZGV4aTAKczEzCmVwaXNvZGVfaW5kZXhzMQowczE1CmFzeW5jQ2hlY2tGaWxlc3MxCjFzMTAKY2hlY2tGaWxlc3IwCg__" type="clip" title="Episode 1 - The Pilot" summary=" About this MASH episode: MASH - Pilot is the 1st episode of season one and of course of the series. Returning to the Swamp after a long session in the OR, Hawkeye receives a letter announcing that Ho-Jon has been accepted into his alma mater, though he and Trapper still have the task of coming up with the $2,000 for travel and tuition. Hawkeye convinces Trapper that they can accomplish it by raffling off a weekend pass to Tokyo with the company of a gorgeous nurse. They go to Col. Blake's office to propose the idea to him, and he nervously gives them permission. Later on, Hawkeye and Trapper get into an argument with Frank Burns, who, in a fit of rage, destroys their still. Furious with him, they put a bag over his head and throw him out of the tent. When Blake hears about it, he withdraws the passes and cancels the party they had planned to throw for fear that Burns will complain to General Hammond. He adds that he has to see Hammond in Seoul and was unhappy about the party taking place in his absence. However, as Blake is leaving, Radar reveals that he tricked him into signing two passes, so the party can take place. Unfortunately, Hawkeye's and Trapper's happiness is short lived as they discover that Frank Burns was made temporary commander. To get rid of him so they can have their party, Hawkeye injects him with a sedative and wraps a bandage around his face, prescribing that Frank should be sedated every hour on the hour. During the party, Margaret expresses her inability to find Frank. Suspicious of the activities of Hawkeye and Trapper, she calls General Hammond, who is so excited to hear from her he leaves at once. Meanwhile, Hawkeye announces that they have raised $1800 and then has the nurse draw a name for the raffle. Knowing that the nurse in question, Lt. Dish, is engaged, he announces that Father Mulcahy is the winner, but unfortunately, he does so just as General Hammond walks in. While the infuriated general questions Hawkeye and Trapper, Margaret walks in with Burns, still sedated and with bandages around his head, and screams at the two of them. Hammond demands that they be arrested, but just in the nick of time, choppers arrive loaded with casualties. After the session, which Hammond participates in, he tells Blake that Pierce and McIntyre are two of the best surgeons he has ever seen and, for that reason, he is dropping the charges." ratingKey="/2013/02/pilot.html" thumb="/video/mashonline/episodes/s1e1.jpg">
<Media container="mp4" optimizedForStreaming="0" height="480" width="640" audioCodec="aac" aspectRatio="1.33" videoCodec="h264" videoResolution="sd" indirect="1">
<Part container="mp4" key="/video/mashonline/:/function/GetActualVideoUrl?function_args=Y2VyZWFsMQoxCmRpY3QKMgppMApzMTIKc2Vhc29uX2luZGV4aTAKczEzCmVwaXNvZGVfaW5kZXhyMAo_&indirect=1&mediaInfo=%7B%22audio_channels%22%3A%20null%2C%20%22protocol%22%3A%20null%2C%20%22optimized_for_streaming%22%3A%20false%2C%20%22video_frame_rate%22%3A%20null%2C%20%22duration%22%3A%20null%2C%20%22height%22%3A%20480%2C%20%22width%22%3A%20640%2C%20%22container%22%3A%20%22mp4%22%2C%20%22audio_codec%22%3A%20%22aac%22%2C%20%22aspect_ratio%22%3A%20%221.33%22%2C%20%22video_codec%22%3A%20%22h264%22%2C%20%22video_resolution%22%3A%20%22sd%22%2C%20%22bitrate%22%3A%20null%7D" file="" optimizedForStreaming="0">
<Stream index="0" selected="1" streamType="1" height="480" width="640" codec="h264" id="1"/>
<Stream index="1" selected="1" streamType="2" codec="aac" id="2"/>
</Part>
</Media>
</Video>
</MediaContainer>
! 2017-11-14 17:17:01,286 (3a64) : DEBUG (runtime:125) - Calling function ‘GetActualVideoUrl’
! 2017-11-14 17:17:01,313 (3a64) : DEBUG (networking:161) - Fetching ‘M*A*S*H: Hey, Look Me Over’ from the HTTP cache
! 2017-11-14 17:17:01,381 (3a64) : DEBUG (networking:166) - Requesting ‘vidzi.tv - vidzi Resources and Information.’
! 2017-11-14 17:17:04,039 (3a64) : ERROR (logkit:22) - Error occurred on retrieving episode video URL.
! 2017-11-14 17:17:04,039 (3a64) : CRITICAL (core:574) - get_cookies_for_url() takes exactly 3 arguments (2 given) (most recent call last):
! File “C:\Users\CA\AppData\Local\Plex Media Server\Plug-ins\mashonline.bundle\Contents\Code\loader.py”, line 38, in episode_video_url
! ‘cookie’: HTTP.CookiesForURL(url),
! File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-46276db8d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api
etworkkit.py”, line 207, in CookiesForURL
! return self._core.networking.get_cookies_for_url(url)
! TypeError: get_cookies_for_url() takes exactly 3 arguments (2 given)
!
! 2017-11-14 17:17:04,039 (3a64) : DEBUG (logkit:13) - Decoded player data:
! 2017-11-14 17:17:04,039 (3a64) : DEBUG (logkit:13) - {u’hls_maxbufferlength’: 300, u’hls_startfromlevel’: 1, u’width’: u’100%‘, u’image’: u’https://srv27.vidzi.tv/i/01/00131/bswmqy4tn9g3.jpg’, u’hls_maxbackbufferlength’: 900, u’height’: u’100%‘, u’sources’: [{u’file’: u’https://srv27.vidzi.tv/hls2/dnuqjj4f242qedz7nikb5gjximaey546g6j6rpoeg,jr6nuklc77oexpo4wrq,ct6nuklc77acr7pi2hq,336nuklc77jhsva3fla,.urlset/master.m3u8’}, {u’file’: u’https://srv27.vidzi.tv/dnuqjj4f242qedz7nikb5gjximaey546g6j6rpoeg336nuklc77jhsva3fla/v.mp4’}], u’tracks’: [{u’default’: True, u’kind’: u’subtitles’, u’file’: u’https://vidzi.tv/srt/00131/bswmqy4tn9g3_English.vtt’, u’label’: u’English’}, {u’kind’: u’subtitles’, u’file’: u’https://vidzi.tv/srt/00131/bswmqy4tn9g3_Spanish.vtt’, u’label’: u’Spanish’}, {u’kind’: u’thumbnails’, u’file’: u’https://vidzi.tv/bswmqy4tn9g3.vtt’}], u’base’: u’https://vidzi.tv/player7/‘, u’captions’: {u’color’: u’FFFFFF’, u’fontFamily’: u’Verdana’, u’fontsize’: 20, u’back’: False}}
! 2017-11-14 17:17:04,042 (3a64) : CRITICAL (core:574) - Exception when calling function ‘GetActualVideoUrl’ (most recent call last):
! File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-46276db8d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py”, line 294, in call_named_function
! result = f(*args, **kwargs)
! File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-46276db8d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py”, line 85, in call
! return self.f(*args, **kwargs)
! File "C:\Users\CA\AppData\Local\Plex Media Server\Plug-ins\mashonline.bundle\Contents\Code_init.py", line 159, in GetActualVideoUrl
! video_urls = loader.episode_video_url(iframe_url, source_type)
! File “C:\Users\CA\AppData\Local\Plex Media Server\Plug-ins\mashonline.bundle\Contents\Code\loader.py”, line 48, in episode_video_url
! raise Ex.MediaNotAvailable
! MediaNotAvailable: (2001, ‘This media is not currently available.’)
And in order to get the Channel working to see if any headers changed I edited the line 38 to 'cookie': 'testcookie',#HTTP.CookiesForURL(url), but no change in xml but the video does play fine. Probably it doesn’t need that info anymore ?
EDIT: PMS Version 1.9.5.4339 Win7-64 for sake of completeness