Skip to content

Instantly share code, notes, and snippets.

@henryjfry
Created May 26, 2019 17:30
Show Gist options
  • Save henryjfry/df0084ccc872fea983ee9cb2d0ff2e7f to your computer and use it in GitHub Desktop.
Save henryjfry/df0084ccc872fea983ee9cb2d0ff2e7f to your computer and use it in GitHub Desktop.
Fix OPENMETA issue with ampersands (&) in show titles - plugin.video.openmeta/resources/lib/play_tvshows.py
#TOP OF FILE
#added to process dict "params[lang]" and change ' & ' to ' and '
import ast
######
######
######LINE 54 we add the line below to fix params[lang] which is a dict + change all instances of " & " to " and "
params[lang] = ast.literal_eval(repr(params[lang]).replace(' & ',' and '))
# xbmc.log('LOGHERE-----'+str(params[lang]) , level=2)
link = play_base.on_play_video(players, params, trakt_ids)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment