Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Only download 1 sec. with rtmpdump in test mode #1565

Merged
merged 2 commits into from

2 participants

@rzhxeo

No description provided.

youtube_dl/FileDownloader.py
@@ -291,6 +291,8 @@ def _download_with_rtmpdump(self, filename, url, player_url, page_url, play_path
basic_args += ['--playpath', play_path]
if tc_url is not None:
basic_args += ['--tcUrl', url]
+ if test:
@jaimeMF Collaborator
jaimeMF added a note

I would chek here for self.params.get('test', False)) instead of passing it as an argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@jaimeMF jaimeMF merged commit 8e4f824 into from
@jaimeMF
Collaborator

Merged, thanks! I have add some modifications in 9026dd3 to make sure that rtmpdump only runs one time and to return True if the download had succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 6, 2013
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  youtube_dl/FileDownloader.py
View
2  youtube_dl/FileDownloader.py
@@ -291,6 +291,8 @@ def _download_with_rtmpdump(self, filename, url, player_url, page_url, play_path
basic_args += ['--playpath', play_path]
if tc_url is not None:
basic_args += ['--tcUrl', url]
+ if self.params.get('test', False):
+ basic_args += ['--stop', '1']
args = basic_args + [[], ['--resume', '--skip', '1']][self.params.get('continuedl', False)]
if self.params.get('verbose', False):
try:
Something went wrong with that request. Please try again.