Skip to content

Commit

Permalink
shugiin: fix code 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore committed Apr 23, 2022
1 parent efad241 commit b3f3909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/shugiin.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _real_extract(self, url):

last_tr = re.findall(r'(?s)<TR\s*class="s14_24">(.+?)</TR>', webpage)[-1]
if last_tr and chapters:
last_td = re.finditer(r'<TD.+?</TD>', last_tr.group(0))[-1]
last_td = re.findall(r'<TD.+?</TD>', last_tr.group(0))[-1]
if last_td:
chapters[-1]['end_time'] = chapters[-1]['start_time'] + _parse_japanese_duration(clean_html(last_td.group(0)))

Expand Down

0 comments on commit b3f3909

Please sign in to comment.