mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-22 03:03:33 +00:00
PlexClient Override feature added
New feature! Now, if your directory is named "channels_<NAME>" your script will override and always play to the client <NAME>. This is going to be helpful for when we add mutli-box support.
This commit is contained in:
@@ -413,6 +413,13 @@ class PseudoDailyScheduleController():
|
|||||||
*
|
*
|
||||||
'''
|
'''
|
||||||
def play_media(self, mediaType, mediaParentTitle, mediaTitle, offset, customSectionName, durationAmount):
|
def play_media(self, mediaType, mediaParentTitle, mediaTitle, offset, customSectionName, durationAmount):
|
||||||
|
# Check for necessary client override, if we have a folder of "channels_<NAME>"
|
||||||
|
cwd = os.getcwd()
|
||||||
|
if "channels_" in cwd:
|
||||||
|
head,sep,tail = cwd.partition('channels_')
|
||||||
|
head,sep,tail = tail.partition('/')
|
||||||
|
self.PLEX_CLIENTS = [head]
|
||||||
|
print "CLIENT OVERRIDE: %s" % self.PLEX_CLIENTS
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if mediaType == "TV Shows":
|
if mediaType == "TV Shows":
|
||||||
|
|||||||
Reference in New Issue
Block a user