You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
686 B

  1. import re
  2. from .common import InfoExtractor
  3. class UTVIE(InfoExtractor):
  4. _VALID_URL = r'http://utv.unistra.fr/index.php\?id_video\=(\d+)'
  5. def _real_extract(self, url):
  6. id = re.match(self._VALID_URL, url).group(1)
  7. webpage = self._download_webpage(url, id)
  8. url = re.search(r'file: "(.*?)",', webpage).group(1)
  9. title = re.search(r'/utv/\d+/.*/(.*?).mp4', url).group(1)
  10. video_url = 'http://vod-flash.u-strasbg.fr:8080/' + url
  11. track_info = {'id':id,
  12. 'title' : title,
  13. 'ext' : 'mp4',
  14. 'url' : video_url
  15. }
  16. return [track_info]