Skip to content

Commit

Permalink
playlist: get rid of the initial warning videos
Browse files Browse the repository at this point in the history
The playlist may begin not just with the advertisement,
but also with some kind of warning videos.
This commit is to get rid of it.
  • Loading branch information
ztmr committed May 16, 2014
1 parent 15b82ef commit 7fe0808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def getMovie(self):
xml = ElementTree.fromstring(self.playlist)

for e in xml.findall('smilRoot/body/switchItem'):
if not 'AD' in e.get('id'):
i = e.get('id')
if not ('AD' in i or 'BO' in i):
self.movie = e
break

Expand Down

0 comments on commit 7fe0808

Please sign in to comment.