aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrobin <[email protected]>2015-02-05 19:59:36 +0100
committerrobin <[email protected]>2015-02-05 19:59:36 +0100
commit3ee6e02564f7f6c54480fd4eeb94ae08a747b9b6 (patch)
tree7fbea47074770bb3bd1b7855a3bebc23ddddcc45
parente3aaace4005e7b767d28152e60d1cf6272c398ec (diff)
downloadyoutube-dl-3ee6e02564f7f6c54480fd4eeb94ae08a747b9b6.tar.gz
youtube-dl-3ee6e02564f7f6c54480fd4eeb94ae08a747b9b6.zip
Edit Tweakers extractor
Fixed code conventions (mainly adding two or more spaces before making an inline comment)
-rw-r--r--youtube_dl/extractor/tweakers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/tweakers.py b/youtube_dl/extractor/tweakers.py
index 3080f9e46..29cd04f00 100644
--- a/youtube_dl/extractor/tweakers.py
+++ b/youtube_dl/extractor/tweakers.py
@@ -25,10 +25,10 @@ class TweakersIE(InfoExtractor):
def _real_extract(self, url):
splitted_url = re.split('.html|/', url)
- del splitted_url[-1] # To remove extra '/' at the end
+ del splitted_url[-1] # To remove extra '/' at the end
video_id = splitted_url[4]
- title = splitted_url[5].title() # Retrieve title for URL and capitalize
- splitted_url[3] = splitted_url[3] + '/player' # Add /player to get the player page
+ title = splitted_url[5].title() # Retrieve title for URL and capitalize
+ splitted_url[3] = splitted_url[3] + '/player' # Add /player to get the player page
player_url = '/'.join(splitted_url) + '.html'
player_page = self._download_webpage(player_url, video_id)
@@ -36,6 +36,6 @@ class TweakersIE(InfoExtractor):
'id': video_id,
'ext': 'mp4',
'title': title,
- 'url': re.findall('http.*mp4', player_page)[0],
+ 'url': re.findall('http.*mp4', player_page)[0],
'player_url': player_url
}