1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-25 15:57:55 +01:00

need to clean title in live version

This commit is contained in:
PC 2015-10-10 22:22:00 +01:00
parent 57387cea26
commit c027b3b911

View File

@ -149,7 +149,9 @@ class IOLStreamIE(IOLIE):
def _real_extract(self, url): def _real_extract(self, url):
ret = IOLIE._real_extract(self, url) ret = IOLIE._real_extract(self, url)
# can't find uncluttered title information for live
title = re.sub(r'\s*\|\s*TVI Player\s*$', '', ret['title'], re.IGNORECASE)
ret['is_live'] = True ret['is_live'] = True
ret['title'] = self._live_title(ret['title']) ret['title'] = self._live_title(title)
return ret return ret