Commit Graph

149 Commits (f6acbdecf483513166287a41cba5eed928404dc2)

Author SHA1 Message Date
Jaime Marquínez Ferrándiz 3bc2ddccc8 Move FileDownloader to its own module and create a new class for each download process
A suitable downloader can be found using the 'get_suitable_downloader' function.

Each subclass implements 'real_download', for downloading an info dict you call the 'download' method, which first checks if the video has already been downloaded
11 years ago
Philipp Hagemeister 693b8b2d31 Merge remote-tracking branch 'dstftw/smotri.com-broadcast'
Conflicts:
	youtube_dl/FileDownloader.py
	youtube_dl/extractor/smotri.py
11 years ago
Philipp Hagemeister 4c52160646 [FileDownloader] Fix progress report on Windows (Fixes #1918) 11 years ago
Philipp Hagemeister a213880aaf Simplify status reporting (#1918) 11 years ago
dst 55f6597c67 [smotri] Add an extractor for live rtmp broadcasts 11 years ago
Philipp Hagemeister d9b011f201 Fix rtmpdump with non-ASCII filenames on Windows on 2.x
Reported in #1798
11 years ago
Philipp Hagemeister d0d2b49ab7 [FileDownloader] use moved format_bytes method 11 years ago
Philipp Hagemeister 31cb6d8fef Merge remote-tracking branch 'rzhxeo/rtmpdump' 11 years ago
Philipp Hagemeister 02dbf93f0e [zdf/common] Use API in ZDF extractor.
This also comes with a lot of extra format fields
Fixes #1518
11 years ago
rzhxeo 2b35c9ef74 Merge branch 'master' into rtmpdump
Conflicts:
	youtube_dl/FileDownloader.py

Merge
11 years ago
Philipp Hagemeister 1e5b9a95fd Move console_title to YoutubeDL 11 years ago
Jaime Marquínez Ferrándiz 801dbbdffd Use avconv for downloading with m3u8 manifests if it's available (fixes #1735) 11 years ago
Jaime Marquínez Ferrándiz 0ed05a1d2d Use the 'rtmp_live' field for the live parameter of rtmpdump 11 years ago
Jaime Marquínez Ferrándiz 1008bebade Merge remote-tracking branch 'rzhxeo/rtmpdump_live' 11 years ago
Jaime Marquínez Ferrándiz be07375b66 Don't recode the video with m3u8 downloads (fixes #1741) 11 years ago
rzhxeo 4894fe8c5b Report download progress of rtmpdump 11 years ago
Jaime Marquínez Ferrándiz 4ac5306ae7 Fix the report progress when file_size is unknown (#1731)
The report_progress function will accept eta and percent with None value and will set the message to 'Unknow ETA' or 'Unknown %'.
Otherwise the values must be numbers.
11 years ago
Philipp Hagemeister 50a886b7ab Fix reporting when file size is unkown (Fixes #1731) 11 years ago
Philipp Hagemeister 76e67c2cb6 Clean up imports 11 years ago
rzhxeo 31366066bd Add support for live parameter to rtmpdump 11 years ago
Jaime Marquínez Ferrándiz 9026dd3858 Make sure it only runs rtmpdump one time in test mode and return True if the download can be resumed 11 years ago
rzhxeo 8e4f824365 Remove test parameter from _download_with_rtmpdump 11 years ago
rzhxeo ad7a071ab6 Only download 1 sec. with rtmpdump in test mode 11 years ago
Jaime Marquínez Ferrándiz dd5d2eb03c If the file is already downloaded include the size in the progress hook 11 years ago
Jaime Marquínez Ferrándiz 4ae720042c Include the eta and the speed in the progress hooks
Useful when listening to the progress hook, for example in a GUI.
11 years ago
Jaime Marquínez Ferrándiz 061b2889a9 Fix the minutes part in FileDownloader.format_seconds (fixed #1397)
It printed for the minutes the result of (seconds // 60)
11 years ago
Jaime Marquínez Ferrándiz af8bd6a82d Show the time taken to download in the same format as the ETA 11 years ago
Jaime Marquínez Ferrándiz 6d38616e67 Merge pull request #1181 from h3xx/master
Add some verbosity when reporting finished downloads

Remove the mixed use of tabs and spaces for indentation.
11 years ago
Philipp Hagemeister 6c3e6e88d3 Allow hours in ETA display (Fixes #1280) 11 years ago
Dan Church 968b5e0112 Add some verbosity when reporting finished downloads
For example:

    [download] Resuming download at byte 1868140
    [download] Destination: Entry #1-Bn59FJ4HrmU.flv
    [download] 100% of 3.27MiB in 4s

This format is meant to somewhat mirror the behavior of wget(1) when reporting finished downloads:

    100%[==================>] 54,836,682   788KB/s   in 74s

    2013-08-04 12:32:05 (728 KB/s) - 'google-chrome-stable_current_x86_64.rpm' saved [54836682/54836682]
11 years ago
Jaime Marquínez Ferrándiz b15d4f624f Allow to download from m3u8 manifests with ffmpeg
They are detected by the extension of the url.
11 years ago
Jaime Marquínez Ferrándiz 2e32528012 FileDownloader: fixed call to "report_error" of YoutubeDL
It was being called as "error"
12 years ago
Jaime Marquínez Ferrándiz 8222d8de88 Split FileDownloader in two classes: FileDownloader and YoutubeDL
YoutubeDL is the class that coordinates everything
FileDownloader gets a filename and an info dict and downloads the video.
12 years ago
Philipp Hagemeister 0824c28c8b Remove mentions of old InfoExtractors module 12 years ago
Philipp Hagemeister 3c25b9abae Remove useless headers 12 years ago
Philipp Hagemeister bb47437686 Ignore invalid dates (Fixes #894) 12 years ago
Philipp Hagemeister 8cd252f115 Use long rtmpdump options
Note that we accidentally called rtmpdump with -v (--live) instead of -V (--verbose) because we missed this.
12 years ago
Jaime Marquínez Ferrándiz 8027175600 Set the extractor key in playlists entries
If they were videos the extractor key wasn't being set anywhere else
Closes 877
12 years ago
Jaime Marquínez Ferrándiz 3054ff0cbe Merge pull request #853 from mc2avr/master
add ZDFIE
12 years ago
mc2avr f2cd958c0a add ZDFIE and _download_with_mplayer(mms://,rtsp://) 12 years ago
Filippo Valsorda f008688520 make rtmpdump inherit the verbose option for debugging 12 years ago
mc2avr de5d66d431 MyVideoIE: add rtmp support 12 years ago
Jaime Marquínez Ferrándiz 7bdb17d4d5 Add extra_info argument to extract_info and process_ie_result
It allows to update the info_dicts with other values

(closes #840)
12 years ago
Philipp Hagemeister 1bd96c3a60 Deprecate --only-sub 12 years ago
jakeogh 1a2adf3f49 added --get-id option to print video IDs 12 years ago
Philipp Hagemeister b338f1b154 FileDownloader: Simplify and document 12 years ago
Philipp Hagemeister 11d9224e3b add --write-thumbnail option to download thumbnail (Suggested by `) 12 years ago
Philipp Hagemeister 4ae9e55822 Correctly clear the line before writing a new status line 12 years ago
Jaime Marquínez Ferrándiz 767e00277f Use report_warning when a not working IE will be uses 12 years ago
Jaime Marquínez Ferrándiz bd55852517 Allow to select videos to download by their upload dates (related #137)
Only absolute dates.
12 years ago