MCPcopy
hub / github.com/iBaa/PlexConnect / getURL

Function getURL

PlexAPI.py:637–647  ·  view source on GitHub ↗
(baseURL, path, key)

Source from the content-addressed store, hash-verified

635
636
637def getURL(baseURL, path, key):
638 if key.startswith('http://') or key.startswith('https://'): # external server
639 URL = key
640 elif key.startswith('/'): # internal full path.
641 URL = baseURL + key
642 elif key == '': # internal path
643 URL = baseURL + path
644 else: # internal path, add-on
645 URL = baseURL + path + '/' + key
646
647 return URL
648
649
650

Callers 1

getXMLFromMultiplePMSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected