aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/chirbit.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-10-15 00:01:46 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-10-15 00:01:46 +0800
commit2ecbd2ad6fa8bb2d623b8c15e7aaa000a0feb28a (patch)
treecadbb469f80274512034c9d0d3b6bda701335054 /youtube_dl/extractor/chirbit.py
parent62a0b86e4f1aa3f0b4debdd4939c14f8fb8b5bef (diff)
[chirbit:profile] Fix extraction
Diffstat (limited to 'youtube_dl/extractor/chirbit.py')
-rw-r--r--youtube_dl/extractor/chirbit.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/youtube_dl/extractor/chirbit.py b/youtube_dl/extractor/chirbit.py
index 61aed0167..f35df143a 100644
--- a/youtube_dl/extractor/chirbit.py
+++ b/youtube_dl/extractor/chirbit.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals
import base64
+import re
from .common import InfoExtractor
from ..utils import parse_duration
@@ -70,7 +71,6 @@ class ChirbitProfileIE(InfoExtractor):
'url': 'http://chirbit.com/ScarletBeauty',
'info_dict': {
'id': 'ScarletBeauty',
- 'title': 'Chirbits by ScarletBeauty',
},
'playlist_mincount': 3,
}
@@ -78,13 +78,10 @@ class ChirbitProfileIE(InfoExtractor):
def _real_extract(self, url):
profile_id = self._match_id(url)
- rss = self._download_xml(
- 'http://chirbit.com/rss/%s' % profile_id, profile_id)
+ webpage = self._download_webpage(url, profile_id)
entries = [
- self.url_result(audio_url.text, 'Chirbit')
- for audio_url in rss.findall('./channel/item/link')]
+ self.url_result(self._proto_relative_url('//chirb.it/' + video_id))
+ for _, video_id in re.findall(r'<input[^>]+id=([\'"])copy-btn-(?P<id>[0-9a-zA-Z]+)\1', webpage)]
- title = rss.find('./channel/title').text
-
- return self.playlist_result(entries, profile_id, title)
+ return self.playlist_result(entries, profile_id)