Skip to content

Commit

Permalink
Čistka kódu, formátování v seznamu dílů
Browse files Browse the repository at this point in the history
  • Loading branch information
elring committed May 21, 2019
1 parent 5d30cd8 commit e7fc766
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ def VIDEOLINK(url,name):

thumb = re.compile('<meta property="og:image" content="(.+?)">').findall(httpdata)
thumb = thumb[0] if len(thumb) > 0 else ''
#desc = re.compile('<meta name="description" content="(.+?)">').findall(httpdata)
#desc = desc[0] if len(desc) > 0 else ''
#name = re.compile('<meta property="og:title" content="(.+?)">').findall(httpdata)
#name = name[0] if len(name) > 0 else '?'

renditions = re.compile('renditions: \[(.+?)\]').findall(httpdata)
if len(renditions) > 0:
Expand All @@ -147,7 +143,7 @@ def VIDEOLINK(url,name):

for num, url in enumerate(urls):
if num < len(renditions):
addLink(renditions[num] + ' - ' + name,url,thumb,desc)
addLink('[B]' + renditions[num] + ' - ' + name + '[/B]',url,thumb,desc)
else:
addLink(name,url,thumb,desc)
else:
Expand Down

0 comments on commit e7fc766

Please sign in to comment.