[KTH] Add new extractor for KTH play (#30885)

* Implement extractor for KTH play
* Make KTH Play url regex more relaxed
This commit is contained in:
Árni Dagur
2022-04-28 11:18:10 +02:00
committed by GitHub
parent a0068bd6be
commit ebc627847c
3 changed files with 33 additions and 1 deletions

View File

@@ -373,5 +373,5 @@ class KalturaIE(InfoExtractor):
'duration': info.get('duration'),
'timestamp': info.get('createdAt'),
'uploader_id': info.get('userId') if info.get('userId') != 'None' else None,
'view_count': info.get('plays'),
'view_count': int_or_none(info.get('plays')),
}