Our forum migration to Discourse is underway and scheduled to last through June 21. During the migration, the forums will be read-only, except for a single temporary forum (contents of which will not be getting transferred). Read our announcement post for more information about the forum migration.
Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

RARFlix crash on startup with PMS 1.4+ (with fix included, please read)

iaddisiaddis Members, Plex Pass Posts: 4 Plex Pass
edited March 2017 in Plex Classic for Roku

I tracked this down to the fetching of active sessions through this url: /status/sessions

Apparently RARFlix expects there to be a valid key attribute in each Part from this request, else it will crash when building URLs. This is not a problem with PMS which always provides a key.

There is a simple one line fix in the RARFlix client to avoid this crash. But it would be better to have PMS provide a key even if its empty string. One also potential workaround is to disable 'now playing' on the home screen in the rarflix preferences (have to restart PMS to get there the first time).

Here is the XML:

Brightscript Debugger> p MediaPart.GenXML(true)
    <?xml version="1.0" encoding="UTF-8"?><Part width="720" protocol="hls" bitrate="2079" audioProfile="dts" decision="transcode" duration="2629547" container="mpegts" height="406" id="1016959" selected="1" videoProfile="high" indexes="sd"><Stream width="720" codec="h264" bitrate="1500" decision="transcode" duration="2629546" default="1" height="406" frameRate="23.975999999999999" streamType="1" id="2119992" /><Stream codec="ac3" bitrate="579" language="English" channels="6" decision="transcode" duration="2629547" default="1" bitrateMode="cbr" streamType="2" id="2119993" selected="1" languageCode="eng" /></Part>

Here is fix although good luck getting rarflix updated (?):

 Plex/source/PlexMediaServer.brs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Plex/source/PlexMediaServer.brs b/Plex/source/PlexMediaServer.brs
index 16416db..a1a68e4 100644
--- a/Plex/source/PlexMediaServer.brs
+++ b/Plex/source/PlexMediaServer.brs
@@ -535,6 +535,10 @@ End Function
 '* relative to the server URL
 Function FullUrl(serverUrl, sourceUrl, key) As String
     finalUrl = ""
+    if key = invalid then 
+        key = "" ' fix for session results on later plex servers >=1.4 which sometimes return no key
+    endif
     if left(key, 4) = "http" OR left(key, 4) = "rtmp" or left(key, 3) = "mms" or left(key, 4) = "rtsp" then
         return key
     else if left(key, 4) = "plex" then
Sign In or Register to comment.