Browse Source

[twitter] Fix short URL extraction

master
Yen Chi Hsuan 9 years ago
parent
commit
c88aec845a
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/twitter.py

2
youtube_dl/extractor/twitter.py

@ -128,7 +128,7 @@ class TwitterIE(InfoExtractor):
title = self._og_search_description(webpage).strip('').replace('\n', ' ') title = self._og_search_description(webpage).strip('').replace('\n', ' ')
# strip 'https -_t.co_BJYgOjSeGA' junk from filenames # strip 'https -_t.co_BJYgOjSeGA' junk from filenames
mobj = re.match(r'“(.*)\s+(http://[^ ]+)”', title)
mobj = re.match(r'“(.*)\s+(https?://[^ ]+)”', title)
title, short_url = mobj.groups() title, short_url = mobj.groups()
card_id = self._search_regex( card_id = self._search_regex(

Loading…
Cancel
Save