Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Cip committed May 24, 2016
1 parent 846be8c commit be4bd02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,16 @@ def CHANNEL_LIST(name, cat_id, schedule=False):
if chan_thumb and chan_thumb != "":
fileName, fileExtension = os.path.splitext(chan_thumb)
fileName=fileName.split("/")[-1]

logoDir = os.path.join(SETTINGS.ADDON_PATH,"logos");
#create logos directory if does not exists
if(not os.path.isdir(logoDir)):
os.makedirs(logoDir)

if fileName != "":
#thumb_path=os.path.join(ADDON_PATH,"logos",fileName+fileExtension)
fileExtension = fileExtension.encode('utf8')
thumb_path=os.path.join(SETTINGS.ADDON_PATH,"logos",logo_name+fileExtension)
thumb_path=os.path.join(logoDir,logo_name+fileExtension)

if not os.path.isfile(thumb_path):
if fileName != "":
Expand Down

0 comments on commit be4bd02

Please sign in to comment.