]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[twitch:bookmarks] Remove extractor
authorSergey M․ <dstftw@gmail.com>
Thu, 12 May 2016 18:14:30 +0000 (00:14 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 12 May 2016 18:14:30 +0000 (00:14 +0600)
Bookmarks no longer available

youtube_dl/extractor/extractors.py
youtube_dl/extractor/twitch.py

index a0bb3d4c2dd53bce8522682c9a61c10449c2a15e..f2bd4fe97ee796c7c848084f1dd4cc0cb3d1782a 100644 (file)
@@ -834,7 +834,6 @@ from .twitch import (
     TwitchVodIE,
     TwitchProfileIE,
     TwitchPastBroadcastsIE,
-    TwitchBookmarksIE,
     TwitchStreamIE,
 )
 from .twitter import (
index 68f50487b8a13b1cda9e2bc966a53a546145c531..f7b98e1908c9c011e8a7f091d9f636667dc63af7 100644 (file)
@@ -357,32 +357,6 @@ class TwitchPastBroadcastsIE(TwitchPlaylistBaseIE):
     }
 
 
-class TwitchBookmarksIE(TwitchPlaylistBaseIE):
-    IE_NAME = 'twitch:bookmarks'
-    _VALID_URL = r'%s/(?P<id>[^/]+)/profile/bookmarks/?(?:\#.*)?$' % TwitchBaseIE._VALID_URL_BASE
-    _PLAYLIST_URL = '%s/api/bookmark/?user=%%s&offset=%%d&limit=%%d' % TwitchBaseIE._API_BASE
-    _PLAYLIST_TYPE = 'bookmarks'
-
-    _TEST = {
-        'url': 'http://www.twitch.tv/ognos/profile/bookmarks',
-        'info_dict': {
-            'id': 'ognos',
-            'title': 'Ognos',
-        },
-        'playlist_mincount': 3,
-        'skip': 'HTTP Error 404: Not Found',
-    }
-
-    def _extract_playlist_page(self, response):
-        entries = []
-        for bookmark in response.get('bookmarks', []):
-            video = bookmark.get('video')
-            if not video:
-                continue
-            entries.append(video['url'])
-        return entries
-
-
 class TwitchStreamIE(TwitchBaseIE):
     IE_NAME = 'twitch:stream'
     _VALID_URL = r'%s/(?P<id>[^/#?]+)/?(?:\#.*)?$' % TwitchBaseIE._VALID_URL_BASE