1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

[vine] Removed dash from extractor as it is now 403

This commit is contained in:
Harry Stanton 2019-08-14 00:33:00 +01:00
parent def849e0e6
commit 87f9104ea7

View File

@ -6,7 +6,6 @@ import re
from .common import InfoExtractor from .common import InfoExtractor
from ..compat import compat_str from ..compat import compat_str
from ..utils import ( from ..utils import (
determine_ext,
int_or_none, int_or_none,
unified_timestamp, unified_timestamp,
) )
@ -74,15 +73,9 @@ class VineIE(InfoExtractor):
return format_url return format_url
formats = [] formats = []
for quality, format_id in enumerate(('low', '', 'dash')): for quality, format_id in enumerate(('low', '')):
format_url = video_url(format_id.capitalize()) format_url = video_url(format_id.capitalize())
if not format_url: if format_url:
continue
# DASH link returns plain mp4
if format_id == 'dash' and determine_ext(format_url) == 'mpd':
formats.extend(self._extract_mpd_formats(
format_url, video_id, mpd_id='dash', fatal=False))
else:
formats.append({ formats.append({
'url': format_url, 'url': format_url,
'format_id': format_id or 'standard', 'format_id': format_id or 'standard',