1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

vier - update on season extraction part

This commit is contained in:
wernerkarlheisenberg 2018-05-23 19:25:33 +02:00
parent 3eac4085bd
commit a91706bda6

View File

@ -73,7 +73,10 @@ class VierVijfKijkOnlineIE(CognitoBaseIE):
title_split = title.split(' - ')
series = title_split[0].strip()
if len(title_split) == 3:
if 'Seizoen' in title_split[1]:
season = title_split[1].split('Seizoen')[1].strip()
else:
season = title_split[1].strip()
episode = title_split[2].split('Aflevering')[1].strip()
else:
season = None