Skip to content

Commit

Permalink
Fixes to get Enithusan plugin to work under PlexConnect. Under PlexCo…
Browse files Browse the repository at this point in the history
…nnect having ' & ' in the url was causing the matching to fail since the url was getting encoded to '+&+'. Having it pre-encoded fixes it for PlexConnect as well as PlexWeb + iOS.
  • Loading branch information
Hiren Patel committed Jan 20, 2016
1 parent a9de52b commit eeabe9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def EpisodeDetail(title, url, thumb, summary, art, wiki_url, cat):
furl = BASE_URL + url
#Log("url ------------------- " + furl)
id = furl.split('id=')[1]
url = "http://cdn.einthusan.com/geturl/"+id+"/"+cat+"/Washington%2CDallas%2CLondon%2CToronto%2CSan%2CSydney/ & " + furl
url = "http://cdn.einthusan.com/geturl/"+id+"/"+cat+"/Washington%2CDallas%2CLondon%2CToronto%2CSan%2CSydney/+&+" + furl
oc = ObjectContainer(title1 = unicode(title), art=art)
#jsonOBJ = JSON.ObjectFromURL(wiki_url)['query']['pages']

Expand Down
4 changes: 2 additions & 2 deletions Contents/Services/URL/CusEinthusan/ServiceCode.pys
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def NormalizeURL(url):
def MetadataObjectForURL(url):

try:
url = url.split(' & ')[1]
url = url.split('+&+')[1]
content = HTML.ElementFromURL(url)
except:
raise Ex.MediaNotAvailable
Expand Down Expand Up @@ -44,7 +44,7 @@ def MetadataObjectForURL(url):
####################################################################################################
def MediaObjectsForURL(url):

url = url.split(' & ')[0]
url = url.split('+&+')[0]
return [
MediaObject(
container = Container.MP4,
Expand Down

0 comments on commit eeabe9a

Please sign in to comment.