- Strona główna
- Funkcje
- Wiersz poleceń
Skrypty mile widziane. Przełączniki IDM w zestawie.
GDM takes IDM's command-line switches, so scripts written for IDM can hand it their downloads. A separate tool downloads in a terminal, and a local API lets other programs see and control the running app.
Niezmienione przełączniki IDM
The app understands the same switches as IDM: /d for the address, /p for the folder, /f
for the file name, /a to queue it without starting, /n to skip the Download File Info
window, and /s to start the main download queue. A batch file or another program that drives
IDM this way can drive GDM by changing the program's name.
misterdownloadmanager.exe /d https://example.com/files/report.pdf /p D:\Reports /n
If GDM is running, the command goes to it; if not, GDM starts and carries it out. On macOS and
Linux the program has the same name, without .exe.
Narzędzie do pobierania dla terminala
misterdownloadmanager-cli comes with every download of GDM and works without the app running.
get downloads a file over several connections with a progress line, Ctrl+C pauses it and
resume carries on later. video-get downloads a video, and torrent-get a torrent or only some
of its files. video-info and torrent-info say what there is to choose before you download.
misterdownloadmanager-cli help <command> lists every option, and a command that fails exits
with code 1.
JSON dla skryptów i programów
Z --json każde polecenie drukuje JSON, jeden obiekt na linię: linia postępu co pół sekundy podczas pobierania pliku, a następnie ścieżka, rozmiar i czas po zakończeniu. Rozmiary są w bajtach, prędkości w bajtach na sekundę, a w przypadku błędu drukowany jest obiekt błędu, dzięki czemu skrypt lub agent AI odczytuje wynik bez analizowania tekstu. Formaty są wymienione dla każdego polecenia.
API dla uruchomionej aplikacji
Inne programy mogą prosić uruchomioną aplikację o jej pobierania, w formacie JSON, oraz wstrzymywać, uruchamiać, usuwać lub kasować je. Łączą się z portem tylko na tym komputerze, z tajnym tokenem, który zmienia się przy każdym uruchomieniu i który mogą odczytać tylko Twoje własne programy. API jest wyłączone, dopóki nie włączysz go za pomocą misterdownloadmanager-cli api on, a status, pause, start, remove i delete używają go z wiersza poleceń.
Every request and answer is described field by field in a JSON Schema, made from the code the app answers with, so programs can check what they send or generate their types from it. AI assistants use the same API through GDM's MCP server.
Więcej do skryptowania
playlist-getpobiera filmy z playlisty lub kanału, a gallery-get galerię zdjęć. get obsługuje do 128 połączeń z -c, --dns do wyboru, kto zamienia nazwy na adresy, a --adapter do wysyłania pobierania przez jeden adapter sieciowy lub wcale. /startup aplikacji uruchamia ją ukrytą w obszarze powiadomień. Lista API zawiera również kolejki, kategorie i wolne miejsce, a także uruchamia i zatrzymuje kolejkę według nazwy.
Darmowy, open source, bez reklam, bez wersji próbnej.
Download GolinksPRO Download Manager