-class IndavideoIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?indavideo\.hu/video/(?P<id>.+)'
- _TESTS = [
- {
- 'url': 'http://indavideo.hu/video/Cicatanc',
- 'md5': 'c8a507a1c7410685f83a06eaeeaafeab',
- 'info_dict': {
- 'id': '1837039',
- 'title': 'Cicatánc',
- 'ext': 'mp4',
- 'display_id': 'Cicatanc',
- 'thumbnail': 're:^https?://.*\.jpg$',
- 'description': '',
- 'uploader': 'cukiajanlo',
- 'uploader_id': '83729',
- 'duration': 72,
- 'age_limit': 0,
- 'tags': ['tánc', 'cica', 'cuki', 'cukiajanlo', 'newsroom']
- },
- },
- {
- 'url': 'http://indavideo.hu/video/Vicces_cica_1',
- 'md5': '8c82244ba85d2a2310275b318eb51eac',
- 'info_dict': {
- 'id': '1335611',
- 'title': 'Vicces cica',
- 'ext': 'mp4',
- 'display_id': 'Vicces_cica_1',
- 'thumbnail': 're:^https?://.*\.jpg$',
- 'description': 'Játszik a tablettel. :D',
- 'uploader': 'Jet_Pack',
- 'uploader_id': '491217',
- 'duration': 7,
- 'age_limit': 0,
- 'tags': ['vicces', 'macska', 'cica', 'ügyes', 'nevetés', 'játszik', 'Cukiság', 'Jet_Pack'],
- },
+class IndavideoEmbedIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:(?:embed\.)?indavideo\.hu/player/video/|assets\.indavideo\.hu/swf/player\.swf\?.*\b(?:v(?:ID|id))=)(?P<id>[\da-f]+)'
+ _TESTS = [{
+ 'url': 'http://indavideo.hu/player/video/1bdc3c6d80/',
+ 'md5': 'c8a507a1c7410685f83a06eaeeaafeab',
+ 'info_dict': {
+ 'id': '1837039',
+ 'ext': 'mp4',
+ 'title': 'Cicatánc',
+ 'description': '',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'uploader': 'cukiajanlo',
+ 'uploader_id': '83729',
+ 'timestamp': 1439193826,
+ 'upload_date': '20150810',
+ 'duration': 72,
+ 'age_limit': 0,
+ 'tags': ['tánc', 'cica', 'cuki', 'cukiajanlo', 'newsroom'],