# New WSJ Plex icon

**URL:** https://forums.plex.tv/t/new-wsj-plex-icon/106693
**Category:** Apps & Creations
**Created:** [June 20, 2015, 10:38pm UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693 "2015-06-20T22:38:37Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 20, 2015, 10:38pm UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/1 "2015-06-20T22:38:37Z")

</div>

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

&nbsp;

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

&nbsp;

Is there a file I need to edit? Or?

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 20, 2015, 11:52pm UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/2 "2015-06-20T23:52:49Z")

</div>

Error when running openplex manually is&nbsp;

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

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

Traceback (most recent call last):

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 295, in \_handle\_request\_noblock

&nbsp; &nbsp; self.process\_request(request, client\_address)

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 321, in process\_request

&nbsp; &nbsp; self.finish\_request(request, client\_address)

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish\_request

&nbsp; &nbsp; self.RequestHandlerClass(request, client\_address, self)

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 655, in \_\_init\_\_

&nbsp; &nbsp; self.handle()

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

&nbsp; &nbsp; self.handle\_one\_request()

&nbsp; File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle\_one\_request

&nbsp; &nbsp; method()

&nbsp; File "/Applications/PlexConnect/WebServer.py", line 132, in do\_GET

&nbsp; &nbsp; iconname, ext = basename.split('.')

ValueError: too many values to unpack

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:00am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/3 "2015-06-21T00:00:53Z")

</div>

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

Ibaa & mine work fine.

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:05am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/4 "2015-06-21T00:05:06Z")

</div>

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

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:05am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/5 "2015-06-21T00:05:42Z")

</div>

~~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](https://github.com/wahlmanj/OpenPlex/blob/master/update/OSX/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.

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:21am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/6 "2015-06-21T00:21:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:26am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/7 "2015-06-21T00:26:42Z")

</div>

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**

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:33am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/8 "2015-06-21T00:33:17Z")

</div>

Nope, dies again at

Web server line 132:

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

ValueError: too many values to unpack

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:33am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/9 "2015-06-21T00:33:34Z")

</div>

```
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.

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:36am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/10 "2015-06-21T00:36:35Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:39am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/11 "2015-06-21T00:39:27Z")

</div>

Tried do the proper delimiter, so

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

&nbsp;but new new error haha

typeerror an integer is required

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:42am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/12 "2015-06-21T00:42:18Z")

</div>

Found web server in ibaa might've replaced it with&nbsp;

```
			<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;
```

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:43am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/13 "2015-06-21T00:43:58Z")

</div>

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

This work?

Note the space after the comma.

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:45am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/14 "2015-06-21T00:45:13Z")

</div>

> ```
> iconname, ext = basename.split('.', '-')
> ```
> 
> This work?

Haha i was too quick, tried that, gives the&nbsp;typeerror an integer is required&nbsp;error,&nbsp;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

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 12:46am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/15 "2015-06-21T00:46:01Z")

</div>

O snap, @rrgeroge is here...&nbsp; :ph34r:

Last guess:

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

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 12:53am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/16 "2015-06-21T00:53:22Z")

</div>

> O snap, @rrgeroge is here...&nbsp; :ph34r:
> 
> Last guess:
> 
> ```
> iconname, ext = basename.split('.', '-'))
> ```

That ones invalid syntax

---

<div class="post-metadata">

### Author: ![Mr.Robot\_245](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr.robot_245/32/89957_2.png) [@Mr.Robot\_245](https://forums.plex.tv/u/Mr.Robot_245)
#### Post date: [June 21, 2015, 1:26am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/17 "2015-06-21T01:26:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 6:38am UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/18 "2015-06-21T06:38:17Z")

</div>

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',
```

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [June 21, 2015, 6:19pm UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/19 "2015-06-21T18:19:21Z")

</div>

\>\>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?

---

<div class="post-metadata">

### Author: ![wahlman.j](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/wahlman.j/32/6441_2.png) [@wahlman.j](https://forums.plex.tv/u/wahlman.j)
#### Post date: [June 21, 2015, 10:18pm UTC](https://forums.plex.tv/t/new-wsj-plex-icon/106693/20 "2015-06-21T22:18:17Z")

</div>

‘[video-api-secure.wsj.com](http://video-api-secure.wsj.com)’: ‘com.wsjlive.appletv.v2’,  
  
  
For iOS 8.

[Next page](https://forums.plex.tv/t/new-wsj-plex-icon/106693.md?page=2)
