aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/godtube.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:51:41 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-09-29 05:51:41 +0200
commit2a7b4681c6628e2a17b9b980333af1011e482058 (patch)
treecb9a9e9bf05a59a2bd128337e1f91ab38fc9cc10 /youtube_dl/extractor/godtube.py
parent8157ae39042298831afc8f8e5d67619d21e3e00b (diff)
[godtube] Fix on Python 2.6
Diffstat (limited to 'youtube_dl/extractor/godtube.py')
-rw-r--r--youtube_dl/extractor/godtube.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dl/extractor/godtube.py b/youtube_dl/extractor/godtube.py
index 73bd6d890..363dc6608 100644
--- a/youtube_dl/extractor/godtube.py
+++ b/youtube_dl/extractor/godtube.py
@@ -36,16 +36,16 @@ class GodTubeIE(InfoExtractor):
'http://www.godtube.com/resource/mediaplayer/%s.xml' % video_id.lower(),
video_id, 'Downloading player config XML')
- video_url = config.find('.//file').text
- uploader = config.find('.//author').text
- timestamp = parse_iso8601(config.find('.//date').text)
- duration = parse_duration(config.find('.//duration').text)
- thumbnail = config.find('.//image').text
+ video_url = config.find('file').text
+ uploader = config.find('author').text
+ timestamp = parse_iso8601(config.find('date').text)
+ duration = parse_duration(config.find('duration').text)
+ thumbnail = config.find('image').text
media = self._download_xml(
'http://www.godtube.com/media/xml/?v=%s' % video_id, video_id, 'Downloading media XML')
- title = media.find('.//title').text
+ title = media.find('title').text
return {
'id': video_id,