1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00
gallery-dl/scripts/hook-gallery_dl.py
Mike Fährmann 1a38fae785
add option to use different youtube-dl modules (fixes #1330)
by setting the 'downloader.ytdl.module' value. For example

{
    "downloader": {
        "ytdl": {
            "module": "yt_dlp"
        }
    }
}

or '-o module=yt_dlp'
2021-03-01 03:10:42 +01:00

12 lines
270 B
Python

# -*- coding: utf-8 -*-
from gallery_dl import extractor, downloader, postprocessor
hiddenimports = [
package.__name__ + "." + module
for package in (extractor, downloader, postprocessor)
for module in package.modules
]
hiddenimports.append("youtube_dl")