aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/newstube.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-05-03 02:30:50 +0700
committerSergey M․ <dstftw@gmail.com>2014-05-03 02:30:50 +0700
commit3b1dfc0f2f49117c30fab8aef45993ecf99256c2 (patch)
tree8c0fbecf932ca80da5df22f5167162192490ec27 /youtube_dl/extractor/newstube.py
parentd664de44b70e45a6a1764c372c49839ea4769ba2 (diff)
[newstube] Do not shadow standard str
Diffstat (limited to 'youtube_dl/extractor/newstube.py')
-rw-r--r--youtube_dl/extractor/newstube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/newstube.py b/youtube_dl/extractor/newstube.py
index 119414da0..2fd5b8f04 100644
--- a/youtube_dl/extractor/newstube.py
+++ b/youtube_dl/extractor/newstube.py
@@ -37,8 +37,8 @@ class NewstubeIE(InfoExtractor):
'http://p.newstube.ru/v2/player.asmx/GetAutoPlayInfo6?state=&url=%s&sessionId=&id=%s&placement=profile&location=n2' % (url, video_guid),
video_guid, 'Downloading player XML')
- def ns(str):
- return str.replace('/', '/%(ns)s') % {'ns': '{http://app1.newstube.ru/N2SiteWS/player.asmx}'}
+ def ns(s):
+ return s.replace('/', '/%(ns)s') % {'ns': '{http://app1.newstube.ru/N2SiteWS/player.asmx}'}
session_id = player.find(ns('./SessionId')).text
media_info = player.find(ns('./Medias/MediaInfo'))