[xfileshare] Add support for aparat.cam (closes #27651)
authorSergey M․ <dstftw@gmail.com>
Sun, 3 Jan 2021 17:17:51 +0000 (00:17 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 3 Jan 2021 17:17:51 +0000 (00:17 +0700)
youtube_dl/extractor/xfileshare.py

index 48ef07ed1415aff0e81f9029136d480c76e3c14c..cbd5d1cbbb331cbd14777e70950b9c3c2a41175c 100644 (file)
@@ -45,6 +45,7 @@ def aa_decode(aa_code):
 
 class XFileShareIE(InfoExtractor):
     _SITES = (
+        (r'aparat\.cam', 'Aparat'),
         (r'clipwatching\.com', 'ClipWatching'),
         (r'gounlimited\.to', 'GoUnlimited'),
         (r'govid\.me', 'GoVid'),
@@ -78,6 +79,9 @@ class XFileShareIE(InfoExtractor):
             'title': 'sample',
             'thumbnail': r're:http://.*\.jpg',
         },
+    }, {
+        'url': 'https://aparat.cam/n4d6dh0wvlpr',
+        'only_matching': True,
     }]
 
     @staticmethod