New WSJ Plex icon

Ive tried using OpenPlex on OS X 10.11, it creates an outdated settings.py that doesn't allow the "-" in hijack url.

Ive tried following old threads but I can't find any files/ new information

 

I have both 720p and 1080p logo files in assets/thumbnails/ but when I reset the ATV it loads the old file

 

Is there a file I need to edit? Or?

Error when running openplex manually is 

----------------------------------------

Exception happened during processing of request from ('192.168.1.104', 49311)

Traceback (most recent call last):

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock

    self.process_request(request, client_address)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process_request

    self.finish_request(request, client_address)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request

    self.RequestHandlerClass(request, client_address, self)

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 655, in __init__

    self.handle()

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle

    self.handle_one_request()

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request

    method()

  File "/Applications/PlexConnect/WebServer.py", line 132, in do_GET

    iconname, ext = basename.split('.')

ValueError: too many values to unpack

Only themes that are not updated do not work with the new WSJ URL.

Ibaa & mine work fine.

I completely wiped out PlexConnect from openplex, installed ibaa theme, selected the new WSJ app to hijack, then selected the Icon I wanted. Rebooted, and on startup I get that error

Which theme? The new WSJ icon is untested and may not work on iOS 7 (8). There is plenty of other icons to change:

https://github.com/w…SX/WebServer.py


I wonder if WebServer.py or DNSServer.py need an update to allow for dashes in the hosttointercept URL also…


Netflix, NHL, FX, MLS Soccer I bet cannot be changed as well due to this. Where is @rrgeorge when you need him.

So, my WebServer doesn't have that entire section haha

'video-api-secure.wsj.com': 'com.wsjlive.appletv.v2'

is there a certain name/path they need to be in? Or just the asset/thumbnails and icon@1080

cp /Applications/PlexConnect/update/OSX/WebServer.py /Applications/PlexConnect

cp /Applications/PlexConnect/update/OSX/DNSServer.py /Applications/PlexConnect

cp /Applications/PlexConnect/update/OSX/icon/ios8/grey/icon@1080.png /Applications/PlexConnect/assets/thumbnails

cp /Applications/PlexConnect/update/OSX/icon/ios8/grey/icon@720.png /Applications/PlexConnect/assets/thumbnails

Nope, dies again at

Web server line 132:

iconname, ext = basename.split('.')

ValueError: too many values to unpack

iconname, ext = basename.split('.')

is it as simple as this?

iconname, ext = basename.split('.-')

To allow for the dashes again? Im no python expert so I'm not sure... Edit line 132 in WebServer.py, hopefully thats all there is to it.

I don't think it allowed that, I've dabbled with a couple scripts and i don't know if the delimiter works like that

New error though,

ValueError: need more than 1 value to unpack

Tried do the proper delimiter, so

iconname, ext = basename.split('.','-')

 but new new error haha

typeerror an integer is required

Found web server in ibaa might've replaced it with 

			<span style="color:rgb(150,152,150);"># PlexConnect {{URL()}}->baseURL</span>
	
			&nbsp;
		
			<span style="color:rgb(167,29,93);">for</span> path <span style="color:rgb(167,29,93);">in</span> <span style="color:rgb(0,134,179);">set</span>(re.findall(<span style="color:rgb(24,54,145);"><span style="color:rgb(167,29,93);">r</span><span>'</span><span>\{\{</span>URL<span>\(</span>(<span style="color:rgb(0,134,179);">.</span><span style="color:rgb(167,29,93);">*?</span>)<span>\)\}\}</span><span>'</span></span>, JS)):
	
			&nbsp;
		
			JS <span style="color:rgb(167,29,93);">=</span> JS.replace(<span style="color:rgb(24,54,145);"><span>'</span>{{URL(<span style="color:rgb(0,134,179);">%s</span>)}}<span>'</span></span> <span style="color:rgb(167,29,93);">%</span> path, g_param[<span style="color:rgb(24,54,145);"><span>'</span>baseURL<span>'</span></span>]<span style="color:rgb(167,29,93);">+</span>path)
	
			&nbsp;
		
			&nbsp;
iconname, ext = basename.split('.', '-')

This work?

Note the space after the comma.

iconname, ext = basename.split('.', '-')

This work?

Haha i was too quick, tried that, gives the typeerror an integer is required error, I imagine its returning too many variables based on how its parsed. Theres a new webserver that uses a different method, was gonna try and mess around with that one

O snap, @rrgeroge is here...  :ph34r:

Last guess:

iconname, ext = basename.split('.', '-'))

O snap, @rrgeroge is here...  :ph34r:

Last guess:

iconname, ext = basename.split('.', '-'))

That ones invalid syntax

It works with iMovie, so thats what I'm using for now. I think it hangs when it gets to WSJ, so it never gets to update the icon whereas iMovie gets loaded before as well as trailers so they're fine

So I have a aTV on iOS 6.2 (7.1.2) and I was able to upload the custom plex icon to WSJ using the latest OpenPlex on 10.10.4 OS X without modifying any files whatsoever. I'm not sure about iOS 7 (8)+ but on the lower iOS it has dashes in the WSJ URL also & the icon file URL so I don't see what the issue may be for you.

iOS 5-7:

'video-api-secure.wsj.com': 'WSJ_Live-V2',

iOS 8+:

'video-api-secure.wsj.com': 'com.wsjlive.appletv.v2',

>>iconname, ext = basename.split('.')

string.split('') splits the given string at the position of a character shown in the parameters. So this line tries to remove the extension from the icon name - for whatever reason, I didn't check on that. Bad design as well, there should be some better functions specialized in filenames.

string.split() might take a second parameter, a "count", which defines the maximum of splits done. So parameters ('.','-') won't work (obviously)...

>>ValueError: too many values to unpack

With the example above this happens if you have two or more dots in the basename. Example: "more.than.one" will be split into "more", "than", "one". Now python is trying to return three strings, but the programmer only provided two boxes (iconname, ext)...

What exactly is the filename requested?

video-api-secure.wsj.com’: ‘com.wsjlive.appletv.v2’,


For iOS 8.