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.

30 lines
966 B

  1. # coding: utf-8
  2. from __future__ import unicode_literals
  3. from .mtv import MTVServicesInfoExtractor
  4. from ..compat import compat_urllib_parse
  5. class NextMovieIE(MTVServicesInfoExtractor):
  6. IE_NAME = 'nextmovie.com'
  7. _VALID_URL = r'https?://(?:www\.)?nextmovie\.com/shows/[^/]+/\d{4}-\d{2}-\d{2}/(?P<id>[^/?#]+)'
  8. _FEED_URL = 'http://lite.dextr.mtvi.com/service1/dispatch.htm'
  9. _TESTS = [{
  10. 'url': 'http://www.nextmovie.com/shows/exclusives/2013-03-10/mgid:uma:videolist:nextmovie.com:1715019/',
  11. 'md5': '09a9199f2f11f10107d04fcb153218aa',
  12. 'info_dict': {
  13. 'id': '961726',
  14. 'ext': 'mp4',
  15. 'title': 'The Muppets\' Gravity',
  16. },
  17. }]
  18. def _get_feed_query(self, uri):
  19. return compat_urllib_parse.urlencode({
  20. 'feed': '1505',
  21. 'mgid': uri,
  22. })
  23. def _real_extract(self, url):
  24. mgid = self._match_id(url)
  25. return self._get_videos_info(mgid)