Skip to main content

Movie Downloader

A fast movie downloader using Aria2

Supported sites

  • Tencent Video
  • m1905
  • iQIYI
  • M3u8

Third-party Dependencies

Installation

Step 1: install core parsing modules

  • via PyPI

    $ pip install movie-downloader

  • from within source directory locally

    $ pip install .

Step 2: get and install third-party dependency programs

  • Automatically

    $ mdl_3rd_parties [--proxy {http|socks5}://[user:password@]host:port]

  • Manually

    Download, unzip and extract aria2, ffmpeg, mkvmerge, node and ckey into the directory third_parties/aria2/, third_parties/ffmpeg/, third_parties/mkvtoolnix/, third_parties/node/ and third_parties/ckey/ according to the target platform, respectively.

Usage

mdl [-h] [-C] [-V] [-D DIR] [-d {suhd,uhd,dolby,hdr10,fhd,shd,hd,sd}]
    [-p PROXY] [--proxy-dl-video [{True,False}]]
    [--no-logo [{True,False}]] [--ts-convert [{True,False}]]
    [--skip-discontinuity [{True,False}]] [--opening-discontinuity [{True,False}]]
    [-A ARIA2C] [-F FFMPEG] [-M MKVMERGE] [-N NODE]
    [-L {debug,info,warning,error,critical}] [--merge-all [{True,False}]]
    [--delete-after-merge [{True,False}]] [--delay-delete [{True,False}]]
    [--dl-video-with-cookie [{True,False}]]
    url [url ...] [--playlist-items PLAYLIST_ITEMS]

Description:

-D DIR: specify DIR to save downloaded videos.

-d {suhd,uhd,dolby,hdr10,fhd,shd,hd,sd}: specify the definition of the video to download. suhd,uhd,dolby,hdr10,fhd,shd,hd,sd correspond to Enhanced 4K, 4K, Dolby Vision, HDR10, 1080P, 720P, 480P, 270P respectively.

-p PROXY: specify the proxy server PROXY (in the form of http://[user:password@]host:port) used to get web pages, and download videos (if configured in conf/dlops.conf or enabled by the option --proxy-dl-video).

--proxy-dl-video [{True,False}]: specify whether the proxy should be used to download video contents. Default to False.

--no-logo [{True,False}]: indicate whether we're trying to download no-watermarked videos or not. If not set, default to True.

--ts-convert [{True,False}]: specify whether to convert (aggregated) TS file to MP4 format or not. If not set, default to True.

--skip-discontinuity [{True,False}]: specify whether to skip the segments in between the DISCONTINUITY tags or not. If not set, default to False.

--opening-discontinuity [{True,False}]: specify whether the first media segment is a DISCONTINUITY or not. If not set, default to False.

-A ARIA2C: specify the absolute path to aria2c executable, which takes precedence over the configuration in conf/misc.conf and the hard-coded fallback path third_parties/aria2/aria2c[.exe].

-F FFMPEG: specify the absolute path to ffmpeg executable, which takes precedence over the configuration in conf/misc.conf and the hard-coded fallback path third_parties/ffmpeg/ffmpeg[.exe].

-M MKVMERGE: specify the absolute path to mkvmerge executable, which takes precedence over the configuration in conf/misc.conf and the hard-coded fallback path third_parties/mkvtoolnix/mkvmerge[.exe].

-N NODE: specify the absolute path to node executable, which takes precedence over the configuration in conf/misc.conf and the hard-coded fallback path third_parties/node/node[.exe].

-L {debug,info,warning,error,critical}: specify logging level.

--merge-all [{True,False}]: specify whether to merge all the video clips or not. If not set, default to True.

--delete-after-merge [{True,False}]: specify whether to delete the original clips after merging. If not set, default to True.

--delay-delete [{True,False}]: specify whether to eagerly free up the disk space or not. If not set, default to True.

--dl-video-with-cookie [{True,False}]: specify whether to send cookies along with the video downloading request. If not set, default to False.

url [url ...]: one or more web page URLs of video episodes, cover and playlist.

--playlist-items PLAYLIST_ITEMS: desired episode indices in a playlist separated by commas, while the playlists are separated by semicolons, e.g. --playlist-items 1,2,5-10, --playlist-items 1,2,5-10;3-, and --playlist-items 1,2,5-10;;-20.

-C, --show-config-dir: show the configuration directories and exit.

-V, --version: show program's version number and exit.

Configuration

  • Find out where the configuration files reside

    $ mdl -C

  • Get the cookies string or cookies.txt file in Netscape format

    See Get cookies.txt LOCALLY for information on how to get cookies.txt for a video site.

Credits

Metadata

Release files for movie-downloader 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for movie-downloader 0.4.0
File Size Uploaded
movie_downloader-0.4.0.tar.gz 71.5 kB Details

Release files / movie_downloader-0.4.0.tar.gz

Download URL movie_downloader-0.4.0.tar.gz
Size 71.5 kB
Tags Source
SHA-256 checksum
How to use checksums
22892d1bead53bcb39a9fe380ce5e8dc0b34a44e34a50dfdfbf7a1421048347b
BLAKE2b-256 checksum
How to use checksums
d8ae33add187e34ac2ef175cc81f15293ea75451ff8de84e742f04d230a37bce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.9

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page