From 97b2409fde73d0b0a41bbda0c08f7ebc3960de6e Mon Sep 17 00:00:00 2001 From: brotherBox Date: Tue, 23 Dec 2014 13:38:35 +0100 Subject: [PATCH] Beginning playlist reversal --- README.md | 3 --- setup.py | 0 youtube_dl/extractor/youtube.py | 2 +- youtube_dl/options.py | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) mode change 100644 => 100755 setup.py diff --git a/README.md b/README.md index 68b97dc2d..d6e7ff902 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,6 @@ YouTube.com and a few more sites. It requires the Python interpreter, version your Unix box, on Windows or on Mac OS X. It is released to the public domain, which means you can modify it, redistribute it or use it however you like. -This is a modified version to enable the reversal of a playlist. It works for me, and that is all I can promise. - # OPTIONS -h, --help print this help text and exit --version print program version and exit @@ -104,7 +102,6 @@ This is a modified version to enable the reversal of a playlist. It works for me downloaded videos in it. --include-ads Download advertisements as well (experimental) - --reverse-playlist Reverses video order in playlist ## Download Options: -r, --rate-limit LIMIT maximum download rate in bytes per second diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index baf33c655..115fc6840 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1357,7 +1357,7 @@ class YoutubeUserIE(InfoExtractor): # page by page until there are no video ids - it means we got # all of them. - def download_page(pagenum, reverse=False): + def download_page(pagenum): start_index = pagenum * self._GDATA_PAGE_SIZE + 1 gdata_url = self._GDATA_URL % (username, self._GDATA_PAGE_SIZE, start_index) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index ca25aac98..27849dca3 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -237,7 +237,7 @@ def parseOpts(overrideArguments=None): help='Download advertisements as well (experimental)') selection.add_option( '--reverse-playlist', - dest='reverse_playlist', action='store_true', help='Reverses video order in playlist') + dest='reverse_playlist', action='store_true', help='Reverse playlists') authentication = optparse.OptionGroup(parser, 'Authentication Options') authentication.add_option(