Quantcast
Channel: Plex Channel Plugins — Plex Forums
Viewing all articles
Browse latest Browse all 5522

Code Hack for Viewing American Netwotk Channels on KODI

$
0
0

Disclaimer: this is an advanced topic. Do not mess with the channel code if you don't know what you're doing.

Some American network channels contain extra code to prevent them from being viewed on clients with which they may not be compatible: ABC, NBC, and SyFy are 3 examples. Here is the blocking code, which has been disabled by me to allow these channels to play:

#   if not Client.Platform in ('Android', 'iOS', 'Roku', 'Safari', 'tvOS'):
#       oc.header = 'Not supported'
#       oc.message = 'This channel is not supported on %s' % (Client.Platform if Client.Platform is not None else 'this client')
#       return oc"

To hack the channel code, open the
__init__.py

file and comment out the above 4 lines just like the example above. Not all channels need to be hacked, mainly ABC, NBC, & SyFy.

You may wish to install PleXMBC in Kodi before attempting to view the channels. Note that the hack will not help you to view the channels even in the most recent version of Plex Home Theater, as it still has not caught up with recent versions of Kodi.

The reason the above code exists is that the channels involved need to be decoded by the client. Plex Web cannot do this, except for Safari on the Mac.

There is one final hack which needs to be done: you need to make the code un-modifiable. Directory channels get automatically updated. so for each channel folder, use the following command:

sudo chmod --recursive 555 ChannelName.bundle

The danger? After making these mods, the channels will no longer get updated. Or, they may - - - I'm not quite sure if Plex will override my changes. If you're on a Windows system, try making the entire channel folder Read-Only, and recursive to all lower levels.

Use at your own risk. I've provided just enough info without providing too much. If you know how to find your way around in Plex Media Server, you should be able to do this.

~James


Viewing all articles
Browse latest Browse all 5522

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>