(self._VIDEO_RE, page): + pattern = self._VIDEO_RE_NEW if 'playlistVideoRenderer' in page else self._VIDEO_RE + for mobj in re.finditer(pattern, page): # The link with index 0 is not the first video of the playlist (not sure if still actual) if 'index' in mobj.groupdic...
\t', re.M) def _detab_sub(self, match): g1 = match.group(1) return g1 + (' ' * (self.tab_width - len(g1) % self.tab_width)) def _detab(self, text): r"""Remove (leading?) tabs from a file. >>> m = Markdown() >>> m._detab("\tfoo") ' foo' >>> m._...