diff --git a/youtube_dl/extractor/vidlii.py b/youtube_dl/extractor/vidlii.py
index 0cce7b2ce..c2fe392c2 100644
--- a/youtube_dl/extractor/vidlii.py
+++ b/youtube_dl/extractor/vidlii.py
@@ -27,53 +27,32 @@ class VidliiIE(InfoExtractor):
'categories': 'News & Politics',
'tags': ['Vidlii', 'Jan', 'Videogames'],
'duration': 212,
- # TODO this might change in future, how to handle?
- 'view_count': 233,
- # TODO this might change in future, how to handle?
- 'comment_count': 13,
- 'average_rating': 1.8571428571429,
+ 'view_count': int,
+ 'comment_count': int,
+ 'average_rating': float,
'type': 'video',
'ext': 'mp4'
- # * A value
- # * MD5 checksum; start the string with md5:
- # * A regular expression; start the string with re:
- # * Any Python type (for example int or float)
}
- }, {
+ }, {
'url': 'https://www.vidlii.com/watch?v=vBo2IcrwOkO',
'md5': 'b42640a596b4dc986702567d49268963',
'info_dict': {
'id': 'vBo2IcrwOkO',
- 'ext': 'mp4',
'title': '(OLD VIDEO) i like youtube!!',
+ 'description': 'Original upload date:
\nMarch 10th 2011
\nCredit goes to people who own content in the video',
'thumbnail': 'https://www.vidlii.com/usfi/thmp/vBo2IcrwOkO.jpg',
+ 'uploader': 'MyEditedVideoSpartan',
+ 'url': 'https://cdn.vidlii.com/videos/vBo2IcrwOkO.mp4',
+ 'uploader_url': 'https://www.vidlii.com/user/MyEditedVideoSpartan',
'upload_date': '20171011',
- 'description':'Original upload date:
\nMarch 10th 2011
\nCredit goes to people who own content in the video',
- 'uploader': 'MyEditedVideoSpartan'
- # TODO more properties, either as:
- # * A value
- # * MD5 checksum; start the string with md5:
- # * A regular expression; start the string with re:
- # * Any Python type (for example int or float)
-
- }
-
- }, {
- 'url': 'https://www.vidlii.com/watch?v=E8SeUE3J5EV',
- 'md5': 'f202427f9b31171f0fdd0ddeacb24720',
- 'info_dict': {
- 'id': 'E8SeUE3J5EV',
- 'ext': 'mp4',
- 'title': 'Games make you violent',
- 'thumbnail': 'https://www.vidlii.com/usfi/thmp/E8SeUE3J5EV.jpg',
- 'upload_date': '20171116',
- 'description':'Games are made by the communistic feminist fbi cia jews and they control your mind and make you want to kill',
- 'uploader': 'APPle5auc31995'
- # TODO more properties, either as:
- # * A value
- # * MD5 checksum; start the string with md5:
- # * A regular expression; start the string with re:
- # * Any Python type (for example int or float)
+ 'categories': 'Film & Animation',
+ 'tags': None,
+ 'duration': 34,
+ 'view_count': int,
+ 'comment_count': int,
+ 'average_rating': float,
+ 'type': 'video',
+ 'ext': 'mp4'
}
}]
@@ -83,24 +62,33 @@ class VidliiIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
- title = str_or_none(
+ title_1 = str_or_none(
self._html_search_regex(r'