aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [remuxvideo] Fix validation of conditional remuxpukkandan2021-02-081-0/+2
|
* [movefiles] Fix compatibility with python2pukkandan2021-02-071-2/+0
| | | | :ci skip dl
* Multiple output templates for different file typespukkandan2021-02-051-1/+12
| | | | | Syntax: -o common_template -o type:type_template Types supported: subtitle|thumbnail|description|annotation|infojson|pl_description|pl_infojson
* #45 Allow date/time formatting in output templatepukkandan2021-02-031-0/+13
| | | Closes #43
* #31 Features from animelover1984/youtube-dlpukkandan2021-01-271-0/+11
| | | | | | | | | | | | | | | | | * Add `--get-comments` * [youtube] Extract comments * [billibilli] Added BiliBiliSearchIE, BilibiliChannelIE * [billibilli] Extract comments * [billibilli] Better video extraction * Write playlist data to infojson * [FFmpegMetadata] Embed infojson inside the video * [EmbedThumbnail] Try embedding in mp4 using ffprobe and `-disposition` * [EmbedThumbnail] Treat mka like mkv and mov like mp4 * [EmbedThumbnail] Embed in ogg/opus * [VideoRemuxer] Conditionally remux video * [VideoRemuxer] Add `-movflags +faststart` when remuxing from mp4 * [ffmpeg] Print entire stderr in verbose when there is error * [EmbedSubtitle] Warn when embedding ass in mp4 * [avanto] Use NFLTokenGenerator if possible
* Plugin supportpukkandan2021-01-241-0/+29
| | | | | | | | Extractor plugins are loaded from <root-dir>/ytdlp_plugins/extractor/__init__.py Inspired by https://github.com/un-def/dl-plus :ci skip dl
* #29 New option `-P`/`--paths` to give different paths for different types of ↵pukkandan2021-01-231-0/+12
| | | | | | | files Syntax: `-P "type:path" -P "type:path"` Types: home, temp, description, annotation, subtitle, infojson, thumbnail
* Modified function `cli_configuration_args`pukkandan2021-01-231-6/+29
| | | | to directly parse new format of `postprocessor_args` and `external_downloader_args`
* #30 [mildom] Add extractorThe Hatsune Daishi2021-01-221-0/+7
| | | Authored by @nao20010128nao
* [TrovoLive] Add extractor (partially fix #20)pukkandan2021-01-201-1/+5
| | | | | | | Only VOD extractor has been implemented Related: https://github.com/ytdl-org/youtube-dl/issues/26125 Related: https://github.com/blackjack4494/yt-dlc/issues/220
* Documentation fixespukkandan2021-01-141-2/+2
| | | | | | * Change all links to point to new fork URL * Changed sponskrub links to my fork of the same * Other typos
* Added option `--break-on-reject`pukkandan2021-01-131-0/+10
| | | | and modified `--break-on-existing`
* Kill child processes when yt-dlc is killed ↵pukkandan2021-01-091-4/+14
| | | | | | (https://github.com/ytdl-org/youtube-dl/pull/26592) Authored by: Unrud
* batch-file enumeration improvements ↵pukkandan2021-01-091-6/+9
| | | | | | | | | | | | | | | | | | | (https://github.com/ytdl-org/youtube-dl/pull/26813) Co-authored by: glenn-slayden Modified from https://github.com/ytdl-org/youtube-dl/pull/26813/commits/c9a9ccf8a35e157e22afeaafc2851176ddd87e68 These improvements apply to reading the list of URLs from the file supplied via the `--batch-file` (`-a`) command line option. 1. Skip blank and empty lines in the file. Currently, lines with leading whitespace are only skipped when that whitespace is followed by a comment character (`#`, `;`, or `]`). This means that empty lines and lines consisting only of whitespace are returned as (trimmed) empty strings in the list of URLs to process. 2. [bug fix] Detect and remove the Unicode BOM when the file descriptor is already decoding Unicode. With Python 3, the `batch_fd` enumerator returns the lines of the file as Unicode. For UTF-8, this means that the raw BOM bytes from the file `\xef \xbb \xbf` show up converted into a single `\ufeff` character prefixed to the first enumerated text line. This fix solves several buggy interactions between the presence of BOM, the skipping of comments and/or blank lines, and ensuring the list of URLs is consistently trimmed. For example, if the first line of the file is blank, the BOM is incorrectly returned as a URL standing alone. If the first line contains a URL, it will be prefixed with this unwanted single character--but note that its being there will have inhibited the proper trimming of any leading whitespace. Currently, the `UnicodeBOMIE` helper attempts to recover from some of these error cases, but this fix prevents the error from happening in the first place (at least on Python3). In any case, the `UnicodeBOMIE` approach is flawed, because it is clearly illogical for a BOM to appear in the (non-batch) URL(s) specified directly on the command line (and for that matter, on URLs *after the first line* of a batch list, also) 3. Adds proper trimming of the " #" into the read_batch_urls processing so that the URLs it enumerates are cleaned and trimmed more consistently.
* Update to ytdl-2021.01.08pukkandan2021-01-081-0/+17
|
* Preparing for releasepukkandan2021-01-071-2/+4
|
* Add `duration_string` to info_dictpukkandan2021-01-061-3/+3
|
* Disable Updatespukkandan2021-01-061-0/+2
|
* Change defaultspukkandan2021-01-051-1/+1
| | | | | | | | | * Enabled --ignore by default * Disabled --video-multistreams and --audio-multistreams by default * Changed default format selection to 'bv*+ba/b' when --audio-multistreams is disabled * Changed default format sort order to 'res,fps,codec,size,br,asr,proto,ext,has_audio,source,format_id' * Changed default output template to '%(title)s [%(id)s].%(ext)s' * Enabled `--list-formats-as-table` by default
* Update to ytdl-2021.01.03pukkandan2021-01-051-1/+1
|
* Option to present -F output to a more tabular formpukkandan2021-01-041-3/+23
|
* Add --write-*-link by h-h-h-hpukkandan2020-12-131-0/+81
| | | | Authored-by: h-h-h-h
* Updated to release 2020.11.21.1pukkandan2020-11-221-8/+8
|
* Merge 'ytdl-org/youtube-dl/master' release 2020.11.19pukkandan2020-11-201-8/+9
| | | | | | | | | | | | | | | | | | | | | | Old Extractors left behind: VLivePlaylistIE YoutubeSearchURLIE YoutubeShowIE YoutubeFavouritesIE If removing old extractors, make corresponding changes in docs/supportedsites.md youtube_dlc/extractor/extractors.py Not merged: .github/ISSUE_TEMPLATE/1_broken_site.md .github/ISSUE_TEMPLATE/2_site_support_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md .github/ISSUE_TEMPLATE/4_bug_report.md .github/ISSUE_TEMPLATE/5_feature_request.md test/test_all_urls.py youtube_dlc/version.py Changelog
* [skip travis] templates and urlsUnknown2020-10-311-2/+2
|
* [mtv] fix mtv.com and more(?)Unknown2020-10-091-0/+7
|
* Merge branch 'ytdl-org-master'Unknown2020-09-121-0/+1
|
* [skip travis] renamingUnknown2020-09-021-0/+5707
to avoid using same folder when using pip install for example