1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
|
.TH "GALLERY-DL.CONF" "5" "2020-11-13" "1.15.3" "gallery-dl Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH NAME
gallery-dl.conf \- gallery-dl configuration file
.SH DESCRIPTION
gallery-dl will search for configuration files in the following places
every time it is started, unless
.B --ignore-config
is specified:
.PP
.RS 4
.nf
.I /etc/gallery-dl.conf
.I $HOME/.config/gallery-dl/config.json
.I $HOME/.gallery-dl.conf
.fi
.RE
.PP
It is also possible to specify additional configuration files with the
.B -c/--config
command-line option or to add further option values with
.B -o/--option
as <key>=<value> pairs,
Configuration files are JSON-based and therefore don't allow any ordinary
comments, but, since unused keys are simply ignored, it is possible to utilize
those as makeshift comments by settings their values to arbitrary strings.
.SH EXAMPLE
{
.RS 4
"base-directory": "/tmp/",
.br
"extractor": {
.RS 4
"pixiv": {
.RS 4
"directory": ["Pixiv", "Works", "{user[id]}"],
.br
"filename": "{id}{num}.{extension}",
.br
"username": "foo",
.br
"password": "bar"
.RE
},
.br
"flickr": {
.RS 4
"_comment": "OAuth keys for account 'foobar'",
.br
"access-token": "0123456789-0123456789abcdef",
.br
"access-token-secret": "fedcba9876543210"
.RE
}
.RE
},
.br
"downloader": {
.RS 4
"retries": 3,
.br
"timeout": 2.5
.RE
}
.RE
}
.SH EXTRACTOR OPTIONS
.SS extractor.*.filename
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
"{manga}_c{chapter}_{page:>03}.{extension}"
.IP "Description:" 4
A \f[I]format string\f[] to build the resulting filename
for a downloaded file.
The available replacement keys depend on the extractor used. A list
of keys for a specific one can be acquired by calling *gallery-dl*
with the \f[I]-K\f[]/\f[I]--list-keywords\f[] command-line option.
For example:
.. code::
$ gallery-dl -K http://seiga.nicovideo.jp/seiga/im5977527
Keywords for directory names:
category
seiga
subcategory
image
Keywords for filenames:
category
seiga
extension
None
image-id
5977527
subcategory
image
Note: Even if the value of the \f[I]extension\f[] key is missing or
\f[I]None\f[], it will be filled in later when the file download is
starting. This key is therefore always available to provide
a valid filename extension.
.SS extractor.*.directory
.IP "Type:" 6
\f[I]list\f[] of \f[I]strings\f[]
.IP "Example:" 4
["{category}", "{manga}", "c{chapter} - {title}"]
.IP "Description:" 4
A list of \f[I]format strings\f[] for the resulting target directory.
Each individual string in such a list represents a single path
segment, which will be joined together and appended to the
\f[I]base-directory\f[] to form the complete target directory path.
.SS extractor.*.base-directory
.IP "Type:" 6
\f[I]Path\f[]
.IP "Default:" 9
\f[I]"./gallery-dl/"\f[]
.IP "Description:" 4
Directory path used as base for all download destinations.
.SS extractor.*.parent-directory
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Use an extractor's current target directory as
\f[I]base-directory\f[]
for any spawned child extractors.
.SS extractor.*.path-restrict
.IP "Type:" 6
\f[I]string\f[] or \f[I]object\f[]
.IP "Default:" 9
\f[I]"auto"\f[]
.IP "Example:" 4
.br
* "/!? (){}"
.br
* {" ": "_", "/": "-", "|": "-", ":": "-", "*": "+"}
.IP "Description:" 4
A string of characters to be replaced with the value of
.br
\f[I]path-replace\f[]
or an object mapping invalid/unwanted characters to their replacements
.br
for generated path segment names.
.br
Special values:
.br
* \f[I]"auto"\f[]: Use characters from \f[I]"unix"\f[] or \f[I]"windows"\f[]
depending on the local operating system
.br
* \f[I]"unix"\f[]: \f[I]"/"\f[]
.br
* \f[I]"windows"\f[]: \f[I]"\\\\\\\\|/<>:\\"?*"\f[]
Note: In a string with 2 or more characters, \f[I][]^-\\\f[] need to be
escaped with backslashes, e.g. \f[I]"\\\\[\\\\]"\f[]
.SS extractor.*.path-replace
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"_"\f[]
.IP "Description:" 4
The replacement character(s) for
\f[I]path-restrict\f[]
.SS extractor.*.path-remove
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"\\u0000-\\u001f\\u007f"\f[] (ASCII control characters)
.IP "Description:" 4
Set of characters to remove from generated path names.
Note: In a string with 2 or more characters, \f[I][]^-\\\f[] need to be
escaped with backslashes, e.g. \f[I]"\\\\[\\\\]"\f[]
.SS extractor.*.extension-map
.IP "Type:" 6
\f[I]object\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Example:" 4
.. code:: json
{
"jpeg": "jpg",
"jpe" : "jpg",
"jfif": "jpg",
"jif" : "jpg",
"jfi" : "jpg"
}
.IP "Description:" 4
A JSON \f[I]object\f[] mapping filename extensions to alternatives.
.SS extractor.*.skip
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls the behavior when downloading files that have been
downloaded before, i.e. a file with the same filename already
exists or its ID is in a \f[I]download archive\f[].
.br
* \f[I]true\f[]: Skip downloads
.br
* \f[I]false\f[]: Overwrite already existing files
.br
* \f[I]"abort"\f[]: Abort the current extractor run
.br
* \f[I]"abort:N"\f[]: Skip downloads and abort extractor run
after \f[I]N\f[] consecutive skips
.br
* \f[I]"exit"\f[]: Exit the program altogether
.br
* \f[I]"exit:N"\f[]: Skip downloads and exit the program
after \f[I]N\f[] consecutive skips
.br
* \f[I]"enumerate"\f[]: Add an enumeration index to the beginning of the
filename extension (\f[I]file.1.ext\f[], \f[I]file.2.ext\f[], etc.)
.SS extractor.*.sleep
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
Number of seconds to sleep before each download.
.SS extractor.*.sleep-extractor
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
Number of seconds to sleep before handling an input URL,
i.e. before starting a new extractor.
.SS extractor.*.sleep-request
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
Minimal time interval in seconds between each HTTP request
during data extraction.
.SS extractor.*.username & .password
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
The username and password to use when attempting to log in to
another site.
Specifying a username and password is required for
.br
* \f[I]pixiv\f[]
.br
* \f[I]nijie\f[]
.br
* \f[I]seiga\f[]
and optional for
.br
* \f[I]aryion\f[]
.br
* \f[I]danbooru\f[]
.br
* \f[I]e621\f[]
.br
* \f[I]exhentai\f[]
.br
* \f[I]idolcomplex\f[]
.br
* \f[I]inkbunny\f[]
.br
* \f[I]instagram\f[]
.br
* \f[I]luscious\f[]
.br
* \f[I]pinterest\f[]
.br
* \f[I]sankaku\f[]
.br
* \f[I]subscribestar\f[]
.br
* \f[I]tsumino\f[]
.br
* \f[I]twitter\f[]
These values can also be specified via the
\f[I]-u/--username\f[] and \f[I]-p/--password\f[] command-line options or
by using a \f[I].netrc\f[] file. (see Authentication_)
Note: The password value for \f[I]danbooru\f[] and \f[I]e621\f[] should be
the API key found in your user profile, not the actual account password.
.SS extractor.*.netrc
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Enable the use of \f[I].netrc\f[] authentication data.
.SS extractor.*.cookies
.IP "Type:" 6
\f[I]Path\f[] or \f[I]object\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Source to read additional cookies from. Either as
.br
* the \f[I]Path\f[] to a Mozilla/Netscape format cookies.txt file or
.br
* a JSON \f[I]object\f[] specifying cookies as a name-to-value mapping
Example:
.. code:: json
{
"cookie-name": "cookie-value",
"sessionid" : "14313336321%3AsabDFvuASDnlpb%3A31",
"isAdult" : "1"
}
.SS extractor.*.cookies-update
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
If \f[I]extractor.*.cookies\f[] specifies the \f[I]Path\f[] to a cookies.txt
file and it can be opened and parsed without errors,
update its contents with cookies received during data extraction.
.SS extractor.*.proxy
.IP "Type:" 6
\f[I]string\f[] or \f[I]object\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Proxy (or proxies) to be used for remote connections.
.br
* If this is a \f[I]string\f[], it is the proxy URL for all
outgoing requests.
.br
* If this is an \f[I]object\f[], it is a scheme-to-proxy mapping to
specify different proxy URLs for each scheme.
It is also possible to set a proxy for a specific host by using
\f[I]scheme://host\f[] as key.
See \f[I]Requests' proxy documentation\f[] for more details.
Example:
.. code:: json
{
"http" : "http://10.10.1.10:3128",
"https": "http://10.10.1.10:1080",
"http://10.20.1.128": "http://10.10.1.10:5323"
}
Note: All proxy URLs should include a scheme,
otherwise \f[I]http://\f[] is assumed.
.SS extractor.*.user-agent
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"\f[]
.IP "Description:" 4
User-Agent header value to be used for HTTP requests.
Note: This option has no effect on pixiv extractors,
as these need specific values to function correctly.
.SS extractor.*.keywords
.IP "Type:" 6
\f[I]object\f[]
.IP "Example:" 4
{"type": "Pixel Art", "type_id": 123}
.IP "Description:" 4
Additional key-value pairs to be added to each metadata dictionary.
.SS extractor.*.keywords-default
.IP "Type:" 6
any
.IP "Default:" 9
\f[I]"None"\f[]
.IP "Description:" 4
Default value used for missing or undefined keyword names in
format strings.
.SS extractor.*.category-transfer
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
Extractor-specific
.IP "Description:" 4
Transfer an extractor's (sub)category values to all child
extractors spawned by it, to let them inherit their parent's
config options.
.SS extractor.*.blacklist & .whitelist
.IP "Type:" 6
\f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]["oauth", "recursive", "test"]\f[] + current extractor category
.IP "Description:" 4
A list of extractor categories to ignore (or allow)
when spawning child extractors for unknown URLs,
e.g. from \f[I]reddit\f[] or \f[I]plurk\f[].
Note: Any \f[I]blacklist\f[] setting will automatically include
\f[I]"oauth"\f[], \f[I]"recursive"\f[], and \f[I]"test"\f[].
.SS extractor.*.archive
.IP "Type:" 6
\f[I]Path\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Example:" 4
"$HOME/.archives/{category}.sqlite3"
.IP "Description:" 4
File to store IDs of downloaded files in. Downloads of files
already recorded in this archive file will be
\f[I]skipped\f[].
The resulting archive file is not a plain text file but an SQLite3
database, as either lookup operations are significantly faster or
memory requirements are significantly lower when the
amount of stored IDs gets reasonably large.
Note: archive paths support regular \f[I]format string\f[] replacements,
but be aware that using external inputs for building local paths
may pose a security risk.
.SS extractor.*.archive-format
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
"{id}_{offset}"
.IP "Description:" 4
An alternative \f[I]format string\f[] to build archive IDs with.
.SS extractor.*.postprocessors
.IP "Type:" 6
\f[I]list\f[] of \f[I]Postprocessor Configuration\f[] objects
.IP "Example:" 4
.. code:: json
[
{
"name": "zip" ,
"compression": "store"
},
{
"name": "exec",
"command": ["/home/foobar/script", "{category}", "{image_id}"]
}
]
.IP "Description:" 4
A list of \f[I]post processors\f[]
to be applied to each downloaded file in the specified order.
Unlike other options, a \f[I]postprocessors\f[] setting at a deeper level
.br
does not override any \f[I]postprocessors\f[] setting at a lower level.
Instead, all post processors from all applicable \f[I]postprocessors\f[]
.br
settings get combined into a single list.
For example
.br
* an \f[I]mtime\f[] post processor at \f[I]extractor.postprocessors\f[],
.br
* a \f[I]zip\f[] post processor at \f[I]extractor.pixiv.postprocessors\f[],
.br
* and using \f[I]--exec\f[]
will run all three post processors - \f[I]mtime\f[], \f[I]zip\f[], \f[I]exec\f[] -
for each downloaded \f[I]pixiv\f[] file.
.SS extractor.*.retries
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]4\f[]
.IP "Description:" 4
Maximum number of times a failed HTTP request is retried before
giving up, or \f[I]-1\f[] for infinite retries.
.SS extractor.*.timeout
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]30.0\f[]
.IP "Description:" 4
Amount of time (in seconds) to wait for a successful connection
and response from a remote server.
This value gets internally used as the \f[I]timeout\f[] parameter for the
\f[I]requests.request()\f[] method.
.SS extractor.*.verify
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls whether to verify SSL/TLS certificates for HTTPS requests.
If this is a \f[I]string\f[], it must be the path to a CA bundle to use
instead of the default certificates.
This value gets internally used as the \f[I]verify\f[] parameter for the
\f[I]requests.request()\f[] method.
.SS extractor.*.download
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls whether to download media files.
Setting this to \f[I]false\f[] won't download any files, but all other
functions (\f[I]postprocessors\f[], \f[I]download archive\f[], etc.)
will be executed as normal.
.SS extractor.*.image-range
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
.br
* "10-20"
.br
* "-5, 10, 30-50, 100-"
.IP "Description:" 4
Index-range(s) specifying which images to download.
Note: The index of the first image is \f[I]1\f[].
.SS extractor.*.chapter-range
.IP "Type:" 6
\f[I]string\f[]
.IP "Description:" 4
Like \f[I]image-range\f[],
but applies to delegated URLs like manga-chapters, etc.
.SS extractor.*.image-filter
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
.br
* "width >= 1200 and width/height > 1.2"
.br
* "re.search(r'foo(bar)+', description)"
.IP "Description:" 4
Python expression controlling which files to download.
Files for which the expression evaluates to \f[I]False\f[] are ignored.
.br
Available keys are the filename-specific ones listed by \f[I]-K\f[] or \f[I]-j\f[].
.br
.SS extractor.*.chapter-filter
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
.br
* "lang == 'en'"
.br
* "language == 'French' and 10 <= chapter < 20"
.IP "Description:" 4
Like \f[I]image-filter\f[],
but applies to delegated URLs like manga-chapters, etc.
.SS extractor.*.image-unique
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Ignore image URLs that have been encountered before during the
current extractor run.
.SS extractor.*.chapter-unique
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Like \f[I]image-unique\f[],
but applies to delegated URLs like manga-chapters, etc.
.SS extractor.*.date-format
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"%Y-%m-%dT%H:%M:%S"\f[]
.IP "Description:" 4
Format string used to parse \f[I]string\f[] values of
date-min and date-max.
See \f[I]strptime\f[] for a list of formatting directives.
.SH EXTRACTOR-SPECIFIC OPTIONS
.SS extractor.artstation.external
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Try to follow external URLs of embedded players.
.SS extractor.aryion.recursive
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls the post extraction strategy.
.br
* \f[I]true\f[]: Start on users' main gallery pages and recursively
descend into subfolders
.br
* \f[I]false\f[]: Get posts from "Latest Updates" pages
.SS extractor.blogger.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download embedded videos hosted on https://www.blogger.com/
.SS extractor.danbooru.ugoira
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Controls the download target for Ugoira posts.
.br
* \f[I]true\f[]: Original ZIP archives
.br
* \f[I]false\f[]: Converted video files
.SS extractor.deviantart.extra
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Download extra Sta.sh resources from
description texts and journals.
Note: Enabling this option also enables deviantart.metadata_.
.SS extractor.deviantart.flat
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Select the directory structure created by the Gallery- and
Favorite-Extractors.
.br
* \f[I]true\f[]: Use a flat directory structure.
.br
* \f[I]false\f[]: Collect a list of all gallery-folders or
favorites-collections and transfer any further work to other
extractors (\f[I]folder\f[] or \f[I]collection\f[]), which will then
create individual subdirectories for each of them.
Note: Going through all gallery folders will not be able to
fetch deviations which aren't in any folder.
.SS extractor.deviantart.folders
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Provide a \f[I]folders\f[] metadata field that contains the names of all
folders a deviation is present in.
Note: Gathering this information requires a lot of API calls.
Use with caution.
.SS extractor.deviantart.include
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"gallery"\f[]
.IP "Example:" 4
"favorite,journal,scraps" or ["favorite", "journal", "scraps"]
.IP "Description:" 4
A (comma-separated) list of subcategories to include
when processing a user profile.
Possible values are
\f[I]"gallery"\f[], \f[I]"scraps"\f[], \f[I]"journal"\f[], \f[I]"favorite"\f[].
You can use \f[I]"all"\f[] instead of listing all values separately.
.SS extractor.deviantart.journals
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"html"\f[]
.IP "Description:" 4
Selects the output format of journal entries.
.br
* \f[I]"html"\f[]: HTML with (roughly) the same layout as on DeviantArt.
.br
* \f[I]"text"\f[]: Plain text with image references and HTML tags removed.
.br
* \f[I]"none"\f[]: Don't download journals.
.SS extractor.deviantart.mature
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Enable mature content.
This option simply sets the \f[I]mature_content\f[] parameter for API
calls to either \f[I]"true"\f[] or \f[I]"false"\f[] and does not do any other
form of content filtering.
.SS extractor.deviantart.metadata
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Request extended metadata for deviation objects to additionally provide
\f[I]description\f[], \f[I]tags\f[], \f[I]license\f[] and \f[I]is_watching\f[] fields.
.SS extractor.deviantart.original
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download original files if available.
Setting this option to \f[I]"images"\f[] only downloads original
files if they are images and falls back to preview versions for
everything else (archives, etc.).
.SS extractor.deviantart.quality
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]100\f[]
.IP "Description:" 4
JPEG quality level of newer images for which
an original file download is not available.
.SS extractor.deviantart.refresh-token
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
The \f[I]refresh-token\f[] value you get from
\f[I]linking your DeviantArt account to gallery-dl\f[].
Using a \f[I]refresh-token\f[] allows you to access private or otherwise
not publicly available deviations.
Note: The \f[I]refresh-token\f[] becomes invalid
\f[I]after 3 months\f[]
or whenever your \f[I]cache file\f[] is deleted or cleared.
.SS extractor.deviantart.wait-min
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
Minimum wait time in seconds before API requests.
.SS extractor.exhentai.domain
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"auto"\f[]
.IP "Description:" 4
.br
* \f[I]"auto"\f[]: Use \f[I]e-hentai.org\f[] or \f[I]exhentai.org\f[]
depending on the input URL
.br
* \f[I]"e-hentai.org"\f[]: Use \f[I]e-hentai.org\f[] for all URLs
.br
* \f[I]"exhentai.org"\f[]: Use \f[I]exhentai.org\f[] for all URLs
.SS extractor.exhentai.limits
.IP "Type:" 6
\f[I]bool\f[] or \f[I]integer\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Check image download limits
and stop extraction when they are exceeded.
If this value is an \f[I]integer\f[], it gets used as the limit maximum
instead of the value listed on \f[I]https://e-hentai.org/home.php\f[]
.SS extractor.exhentai.original
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download full-sized original images if available.
.SS extractor.exhentai.wait-min & .wait-max
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]3.0\f[] and \f[I]6.0\f[]
.IP "Description:" 4
Minimum and maximum wait time in seconds between each image
ExHentai detects and blocks automated downloaders.
*gallery-dl* waits a randomly selected number of
seconds between \f[I]wait-min\f[] and \f[I]wait-max\f[] after
each image to prevent getting blocked.
.SS extractor.flickr.access-token & .access-token-secret
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
The \f[I]access_token\f[] and \f[I]access_token_secret\f[] values you get
from \f[I]linking your Flickr account to gallery-dl\f[].
.SS extractor.flickr.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Extract and download videos.
.SS extractor.flickr.size-max
.IP "Type:" 6
\f[I]integer\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Sets the maximum allowed size for downloaded images.
.br
* If this is an \f[I]integer\f[], it specifies the maximum image dimension
(width and height) in pixels.
.br
* If this is a \f[I]string\f[], it should be one of Flickr's format specifiers
(\f[I]"Original"\f[], \f[I]"Large"\f[], ... or \f[I]"o"\f[], \f[I]"k"\f[], \f[I]"h"\f[],
\f[I]"l"\f[], ...) to use as an upper limit.
.SS extractor.furaffinity.include
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"gallery"\f[]
.IP "Example:" 4
"scraps,favorite" or ["scraps", "favorite"]
.IP "Description:" 4
A (comma-separated) list of subcategories to include
when processing a user profile.
Possible values are
\f[I]"gallery"\f[], \f[I]"scraps"\f[], \f[I]"favorite"\f[].
You can use \f[I]"all"\f[] instead of listing all values separately.
.SS extractor.gelbooru.api
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Enable use of Gelbooru's API.
Set this value to false if the API has been disabled to switch
to manual information extraction.
.SS extractor.gfycat.format
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"mp4"\f[]
.IP "Description:" 4
The name of the preferred animation format, which can be one of
\f[I]"mp4"\f[], \f[I]"webm"\f[], \f[I]"gif"\f[], \f[I]"webp"\f[] or \f[I]"mjpg"\f[].
If the selected format is not available, \f[I]"mp4"\f[], \f[I]"webm"\f[]
and \f[I]"gif"\f[] (in that order) will be tried instead, until an
available format is found.
.SS extractor.hentaifoundry.include
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"pictures"\f[]
.IP "Example:" 4
"scraps,stories" or ["scraps", "stories"]
.IP "Description:" 4
A (comma-separated) list of subcategories to include
when processing a user profile.
Possible values are
\f[I]"pictures"\f[], \f[I]"scraps"\f[], \f[I]"stories"\f[], \f[I]"favorite"\f[].
You can use \f[I]"all"\f[] instead of listing all values separately.
.SS extractor.hitomi.metadata
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Try to extract
\f[I]artist\f[], \f[I]group\f[], \f[I]parody\f[], and \f[I]characters\f[] metadata.
.SS extractor.imgur.mp4
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls whether to choose the GIF or MP4 version of an animation.
.br
* \f[I]true\f[]: Follow Imgur's advice and choose MP4 if the
\f[I]prefer_video\f[] flag in an image's metadata is set.
.br
* \f[I]false\f[]: Always choose GIF.
.br
* \f[I]"always"\f[]: Always choose MP4.
.SS extractor.inkbunny.orderby
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"create_datetime"\f[]
.IP "Description:" 4
Value of the \f[I]orderby\f[] parameter for submission searches.
(See \f[I]API#Search\f[]
for details)
.SS extractor.instagram.highlights
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Include *Story Highlights* when downloading a user profile.
(requires authentication)
.SS extractor.instagram.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download video files.
.SS extractor.khinsider.format
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"mp3"\f[]
.IP "Description:" 4
The name of the preferred file format to download.
Use \f[I]"all"\f[] to download all available formats,
or a (comma-separated) list to select multiple formats.
If the selected format is not available,
the first in the list gets chosen (usually mp3).
.SS extractor.newgrounds.include
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"art"\f[]
.IP "Example:" 4
"movies,audio" or ["movies", "audio"]
.IP "Description:" 4
A (comma-separated) list of subcategories to include
when processing a user profile.
Possible values are
\f[I]"art"\f[], \f[I]"audio"\f[], \f[I]"movies"\f[].
You can use \f[I]"all"\f[] instead of listing all values separately.
.SS extractor.nijie.include
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"illustration,doujin"\f[]
.IP "Description:" 4
A (comma-separated) list of subcategories to include
when processing a user profile.
Possible values are
\f[I]"illustration"\f[], \f[I]"doujin"\f[], \f[I]"favorite"\f[].
You can use \f[I]"all"\f[] instead of listing all values separately.
.SS extractor.oauth.browser
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls how a user is directed to an OAuth authorization page.
.br
* \f[I]true\f[]: Use Python's \f[I]webbrowser.open()\f[] method to automatically
open the URL in the user's default browser.
.br
* \f[I]false\f[]: Ask the user to copy & paste an URL from the terminal.
.SS extractor.oauth.cache
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Store tokens received during OAuth authorizations
in \f[I]cache\f[].
.SS extractor.oauth.port
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]6414\f[]
.IP "Description:" 4
Port number to listen on during OAuth authorization.
Note: All redirects will go to http://localhost:6414/, regardless
of the port specified here. You'll have to manually adjust the
port number in your browser's address bar when using a different
port than the default.
.SS extractor.photobucket.subalbums
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download subalbums.
.SS extractor.pinterest.sections
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Include pins from board sections.
.SS extractor.pixiv.user.avatar
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Download user avatars.
.SS extractor.pixiv.ugoira
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download Pixiv's Ugoira animations or ignore them.
These animations come as a \f[I].zip\f[] file containing all
animation frames in JPEG format.
Use an ugoira post processor to convert them
to watchable videos. (Example__)
.SS extractor.plurk.comments
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Also search Plurk comments for URLs.
.SS extractor.reactor.wait-min & .wait-max
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]3.0\f[] and \f[I]6.0\f[]
.IP "Description:" 4
Minimum and maximum wait time in seconds between HTTP requests
during the extraction process.
.SS extractor.readcomiconline.captcha
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"stop"\f[]
.IP "Description:" 4
Controls how to handle redirects to CAPTCHA pages.
.br
* \f[I]"stop\f[]: Stop the current extractor run.
.br
* \f[I]"wait\f[]: Ask the user to solve the CAPTCHA and wait.
.SS extractor.reddit.comments
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
The value of the \f[I]limit\f[] parameter when loading
a submission and its comments.
This number (roughly) specifies the total amount of comments
being retrieved with the first API call.
Reddit's internal default and maximum values for this parameter
appear to be 200 and 500 respectively.
The value \f[I]0\f[] ignores all comments and significantly reduces the
time required when scanning a subreddit.
.SS extractor.reddit.morecomments
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Retrieve additional comments by resolving the \f[I]more\f[] comment
stubs in the base comment tree.
This requires 1 additional API call for every 100 extra comments.
.SS extractor.reddit.date-min & .date-max
.IP "Type:" 6
\f[I]Date\f[]
.IP "Default:" 9
\f[I]0\f[] and \f[I]253402210800\f[] (timestamp of \f[I]datetime.max\f[])
.IP "Description:" 4
Ignore all submissions posted before/after this date.
.SS extractor.reddit.id-min & .id-max
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
"6kmzv2"
.IP "Description:" 4
Ignore all submissions posted before/after the submission with this ID.
.SS extractor.reddit.recursion
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]0\f[]
.IP "Description:" 4
Reddit extractors can recursively visit other submissions
linked to in the initial set of submissions.
This value sets the maximum recursion depth.
Special values:
.br
* \f[I]0\f[]: Recursion is disabled
.br
* \f[I]-1\f[]: Infinite recursion (don't do this)
.SS extractor.reddit.refresh-token
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
The \f[I]refresh-token\f[] value you get from
\f[I]linking your Reddit account to gallery-dl\f[].
Using a \f[I]refresh-token\f[] allows you to access private or otherwise
not publicly available subreddits, given that your account is
authorized to do so,
but requests to the reddit API are going to be rate limited
at 600 requests every 10 minutes/600 seconds.
.SS extractor.reddit.videos
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Control video download behavior.
.br
* \f[I]true\f[]: Download videos and use \f[I]youtube-dl\f[] to handle
HLS and DASH manifests
.br
* \f[I]"ytdl"\f[]: Download videos and let \f[I]youtube-dl\f[] handle all of
video extraction and download
.br
* \f[I]false\f[]: Ignore videos
.SS extractor.redgifs.format
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"mp4"\f[]
.IP "Description:" 4
The name of the preferred format, which can be one of
\f[I]"mp4"\f[], \f[I]"webm"\f[], \f[I]"gif"\f[], \f[I]"webp"\f[], \f[I]"mobile"\f[],
or \f[I]"mini"\f[].
If the selected format is not available, \f[I]"mp4"\f[], \f[I]"webm"\f[]
and \f[I]"gif"\f[] (in that order) will be tried instead, until an
available format is found.
.SS extractor.sankaku.wait-min & .wait-max
.IP "Type:" 6
\f[I]float\f[]
.IP "Default:" 9
\f[I]3.0\f[] and \f[I]6.0\f[]
.IP "Description:" 4
Minimum and maximum wait time in seconds between each image
Sankaku Channel responds with \f[I]429 Too Many Requests\f[] if it
receives too many HTTP requests in a certain amount of time.
Waiting a few seconds between each request tries to prevent that.
.SS extractor.sankakucomplex.embeds
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Download video embeds from external sites.
.SS extractor.sankakucomplex.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download videos.
.SS extractor.smugmug.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download video files.
.SS extractor.tumblr.avatar
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Download blog avatars.
.SS extractor.tumblr.date-min & .date-max
.IP "Type:" 6
\f[I]Date\f[]
.IP "Default:" 9
\f[I]0\f[] and \f[I]null\f[]
.IP "Description:" 4
Ignore all posts published before/after this date.
.SS extractor.tumblr.external
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Follow external URLs (e.g. from "Link" posts) and try to extract
images from them.
.SS extractor.tumblr.inline
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Search posts for inline images and videos.
.SS extractor.tumblr.reblogs
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
.br
* \f[I]true\f[]: Extract media from reblogged posts
.br
* \f[I]false\f[]: Skip reblogged posts
.br
* \f[I]"same-blog"\f[]: Skip reblogged posts unless the original post
is from the same blog
.SS extractor.tumblr.posts
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]"all"\f[]
.IP "Example:" 4
"video,audio,link" or ["video", "audio", "link"]
.IP "Description:" 4
A (comma-separated) list of post types to extract images, etc. from.
Possible types are \f[I]text\f[], \f[I]quote\f[], \f[I]link\f[], \f[I]answer\f[],
\f[I]video\f[], \f[I]audio\f[], \f[I]photo\f[], \f[I]chat\f[].
You can use \f[I]"all"\f[] instead of listing all types separately.
.SS extractor.twitter.cards
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Fetch media from \f[I]Cards\f[].
.SS extractor.twitter.quoted
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Fetch media from quoted Tweets.
.SS extractor.twitter.replies
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Fetch media from replies to other Tweets.
.SS extractor.twitter.retweets
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Fetch media from Retweets.
If this value is \f[I]"original"\f[], metadata for these files
will be taken from the original Tweets, not the Retweets.
.SS extractor.twitter.twitpic
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Extract \f[I]TwitPic\f[] embeds.
.SS extractor.twitter.videos
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Control video download behavior.
.br
* \f[I]true\f[]: Download videos
.br
* \f[I]"ytdl"\f[]: Download videos using \f[I]youtube-dl\f[]
.br
* \f[I]false\f[]: Skip video Tweets
.SS extractor.vsco.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download video files.
.SS extractor.wallhaven.api-key
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Your \f[I]Wallhaven API Key\f[],
to use your account's browsing settings and default filters when searching.
See https://wallhaven.cc/help/api for more information.
.SS extractor.weasyl.api-key
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Your \f[I]Weasyl API Key\f[],
to use your account's browsing settings and filters.
.SS extractor.weibo.retweets
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Extract media from retweeted posts.
.SS extractor.weibo.videos
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Download video files.
.SS extractor.[booru].tags
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Categorize tags by their respective types
and provide them as \f[I]tags_<type>\f[] metadata fields.
Note: This requires 1 additional HTTP request for each post.
.SS extractor.[manga-extractor].chapter-reverse
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Reverse the order of chapter URLs extracted from manga pages.
.br
* \f[I]true\f[]: Start with the latest chapter
.br
* \f[I]false\f[]: Start with the first chapter
.SH DOWNLOADER OPTIONS
.SS downloader.*.enabled
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Enable/Disable this downloader module.
.SS downloader.*.filesize-min & .filesize-max
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Example:" 4
"32000", "500k", "2.5M"
.IP "Description:" 4
Minimum/Maximum allowed file size in bytes.
Any file smaller/larger than this limit will not be downloaded.
Possible values are valid integer or floating-point numbers
optionally followed by one of \f[I]k\f[], \f[I]m\f[]. \f[I]g\f[], \f[I]t\f[] or \f[I]p\f[].
These suffixes are case-insensitive.
.SS downloader.*.mtime
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Use \f[I]Last-Modified\f[] HTTP response headers
to set file modification times.
.SS downloader.*.part
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls the use of \f[I].part\f[] files during file downloads.
.br
* \f[I]true\f[]: Write downloaded data into \f[I].part\f[] files and rename
them upon download completion. This mode additionally supports
resuming incomplete downloads.
.br
* \f[I]false\f[]: Do not use \f[I].part\f[] files and write data directly
into the actual output files.
.SS downloader.*.part-directory
.IP "Type:" 6
\f[I]Path\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
Alternate location for \f[I].part\f[] files.
Missing directories will be created as needed.
If this value is \f[I]null\f[], \f[I].part\f[] files are going to be stored
alongside the actual output files.
.SS downloader.*.rate
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Example:" 4
"32000", "500k", "2.5M"
.IP "Description:" 4
Maximum download rate in bytes per second.
Possible values are valid integer or floating-point numbers
optionally followed by one of \f[I]k\f[], \f[I]m\f[]. \f[I]g\f[], \f[I]t\f[] or \f[I]p\f[].
These suffixes are case-insensitive.
.SS downloader.*.retries
.IP "Type:" 6
\f[I]integer\f[]
.IP "Default:" 9
\f[I]extractor.*.retries\f[]
.IP "Description:" 4
Maximum number of retries during file downloads,
or \f[I]-1\f[] for infinite retries.
.SS downloader.*.timeout
.IP "Type:" 6
\f[I]float\f[] or \f[I]null\f[]
.IP "Default:" 9
\f[I]extractor.*.timeout\f[]
.IP "Description:" 4
Connection timeout during file downloads.
.SS downloader.*.verify
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]extractor.*.verify\f[]
.IP "Description:" 4
Certificate validation during file downloads.
.SS downloader.http.adjust-extensions
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Check the file headers of \f[I]jpg\f[], \f[I]png\f[], and \f[I]gif\f[] files
and adjust their filename extensions if they do not match.
.SS downloader.ytdl.format
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
youtube-dl's default, currently \f[I]"bestvideo+bestaudio/best"\f[]
.IP "Description:" 4
Video \f[I]format selection
<https://github.com/ytdl-org/youtube-dl#format-selection>\f[]
directly passed to youtube-dl.
.SS downloader.ytdl.forward-cookies
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Forward cookies to youtube-dl.
.SS downloader.ytdl.logging
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Route youtube-dl's output through gallery-dl's logging system.
Otherwise youtube-dl will write its output directly to stdout/stderr.
Note: Set \f[I]quiet\f[] and \f[I]no_warnings\f[] in
\f[I]downloader.ytdl.raw-options\f[] to \f[I]true\f[] to suppress all output.
.SS downloader.ytdl.outtmpl
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
The \f[I]Output Template\f[]
used to generate filenames for files downloaded with youtube-dl.
Special values:
.br
* \f[I]null\f[]: generate filenames with \f[I]extractor.*.filename\f[]
.br
* \f[I]"default"\f[]: use youtube-dl's default, currently \f[I]"%(title)s-%(id)s.%(ext)s"\f[]
Note: An output template other than \f[I]null\f[] might
cause unexpected results in combination with other options
(e.g. \f[I]"skip": "enumerate"\f[])
.SS downloader.ytdl.raw-options
.IP "Type:" 6
\f[I]object\f[]
.IP "Example:" 4
.. code:: json
{
"quiet": true,
"writesubtitles": true,
"merge_output_format": "mkv"
}
.IP "Description:" 4
Additional options passed directly to the \f[I]YoutubeDL\f[] constructor.
All available options can be found in \f[I]youtube-dl's docstrings
<https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/YoutubeDL.py#L138-L318>\f[].
.SH OUTPUT OPTIONS
.SS output.mode
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"auto"\f[]
.IP "Description:" 4
Controls the output string format and status indicators.
.br
* \f[I]"null"\f[]: No output
.br
* \f[I]"pipe"\f[]: Suitable for piping to other processes or files
.br
* \f[I]"terminal"\f[]: Suitable for the standard Windows console
.br
* \f[I]"color"\f[]: Suitable for terminals that understand ANSI escape codes and colors
.br
* \f[I]"auto"\f[]: Automatically choose the best suitable output mode
.SS output.shorten
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls whether the output strings should be shortened to fit
on one console line.
.SS output.progress
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Controls the progress indicator when *gallery-dl* is run with
multiple URLs as arguments.
.br
* \f[I]true\f[]: Show the default progress indicator
(\f[I]"[{current}/{total}] {url}"\f[])
.br
* \f[I]false\f[]: Do not show any progress indicator
.br
* Any \f[I]string\f[]: Show the progress indicator using this
as a custom \f[I]format string\f[]. Possible replacement keys are
\f[I]current\f[], \f[I]total\f[] and \f[I]url\f[].
.SS output.log
.IP "Type:" 6
\f[I]string\f[] or \f[I]Logging Configuration\f[]
.IP "Default:" 9
\f[I]"[{name}][{levelname}] {message}"\f[]
.IP "Description:" 4
Configuration for standard logging output to stderr.
If this is a simple \f[I]string\f[], it specifies
the format string for logging messages.
.SS output.logfile
.IP "Type:" 6
\f[I]Path\f[] or \f[I]Logging Configuration\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
File to write logging output to.
.SS output.unsupportedfile
.IP "Type:" 6
\f[I]Path\f[] or \f[I]Logging Configuration\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Description:" 4
File to write external URLs unsupported by *gallery-dl* to.
The default format string here is \f[I]"{message}"\f[].
.SS output.num-to-str
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Convert numeric values (\f[I]integer\f[] or \f[I]float\f[]) to \f[I]string\f[]
before outputting them as JSON.
.SH POSTPROCESSOR OPTIONS
.SS classify.mapping
.IP "Type:" 6
\f[I]object\f[]
.IP "Default:" 9
.. code:: json
{
"Pictures": ["jpg", "jpeg", "png", "gif", "bmp", "svg", "webp"],
"Video" : ["flv", "ogv", "avi", "mp4", "mpg", "mpeg", "3gp", "mkv", "webm", "vob", "wmv"],
"Music" : ["mp3", "aac", "flac", "ogg", "wma", "m4a", "wav"],
"Archives": ["zip", "rar", "7z", "tar", "gz", "bz2"]
}
.IP "Description:" 4
A mapping from directory names to filename extensions that should
be stored in them.
Files with an extension not listed will be ignored and stored
in their default location.
.SS compare.action
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"replace"\f[]
.IP "Description:" 4
The action to take when files do not compare as equal.
.br
* \f[I]"replace"\f[]: Replace/Overwrite the old version with the new one
.br
* \f[I]"enumerate"\f[]: Add an enumeration index to the filename of the new
version like \f[I]skip = "enumerate"\f[]
.SS compare.shallow
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Only compare file sizes. Do not read and compare their content.
.SS exec.async
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Controls whether to wait for a subprocess to finish
or to let it run asynchronously.
.SS exec.command
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Example:" 4
.br
* "convert {} {}.png && rm {}"
.br
* ["echo", "{user[account]}", "{id}"]
.IP "Description:" 4
The command to run.
.br
* If this is a \f[I]string\f[], it will be executed using the system's
shell, e.g. \f[I]/bin/sh\f[]. Any \f[I]{}\f[] will be replaced
with the full path of a file or target directory, depending on
\f[I]exec.final\f[]
.br
* If this is a \f[I]list\f[], the first element specifies the program
name and any further elements its arguments.
Each element of this list is treated as a \f[I]format string\f[] using
the files' metadata as well as \f[I]{_path}\f[], \f[I]{_directory}\f[],
and \f[I]{_filename}\f[].
.SS exec.final
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Controls whether to execute \f[I]exec.command\f[] for each
downloaded file or only once after all files
have been downloaded successfully.
.SS metadata.mode
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"json"\f[]
.IP "Description:" 4
Select how to write metadata.
.br
* \f[I]"json"\f[]: all metadata using \f[I]json.dump()
<https://docs.python.org/3/library/json.html#json.dump>\f[]
.br
* \f[I]"tags"\f[]: \f[I]tags\f[] separated by newlines
.br
* \f[I]"custom"\f[]: result of applying \f[I]metadata.content-format\f[]
to a file's metadata dictionary
.SS metadata.directory
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"."\f[]
.IP "Example:" 4
"metadata"
.IP "Description:" 4
Directory where metadata files are stored in relative to the
current target location for file downloads.
.SS metadata.extension
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"json"\f[] or \f[I]"txt"\f[]
.IP "Description:" 4
Filename extension for metadata files that will be appended to the
original file names.
.SS metadata.extension-format
.IP "Type:" 6
\f[I]string\f[]
.IP "Example:" 4
.br
* "{extension}.json"
.br
* "json"
.IP "Description:" 4
Custom format string to build filename extensions for metadata
files with, which will replace the original filename extensions.
Note: \f[I]metadata.extension\f[] is ignored if this option is set.
.SS metadata.content-format
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Example:" 4
.br
* "tags:\\n\\n{tags:J\\n}\\n"
.br
* ["tags:", "", "{tags:J\\n}"]
.IP "Description:" 4
Custom format string to build the content of metadata files with.
Note: Only applies for \f[I]"mode": "custom"\f[].
.SS mtime.key
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"date"\f[]
.IP "Description:" 4
Name of the metadata field whose value should be used.
This value must either be a UNIX timestamp or a
\f[I]datetime\f[] object.
.SS ugoira.extension
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"webm"\f[]
.IP "Description:" 4
Filename extension for the resulting video files.
.SS ugoira.ffmpeg-args
.IP "Type:" 6
\f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
\f[I]null\f[]
.IP "Example:" 4
["-c:v", "libvpx-vp9", "-an", "-b:v", "2M"]
.IP "Description:" 4
Additional FFmpeg command-line arguments.
.SS ugoira.ffmpeg-location
.IP "Type:" 6
\f[I]Path\f[]
.IP "Default:" 9
\f[I]"ffmpeg"\f[]
.IP "Description:" 4
Location of the \f[I]ffmpeg\f[] (or \f[I]avconv\f[]) executable to use.
.SS ugoira.ffmpeg-output
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Show FFmpeg output.
.SS ugoira.ffmpeg-twopass
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Enable Two-Pass encoding.
.SS ugoira.framerate
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"auto"\f[]
.IP "Description:" 4
Controls the frame rate argument (\f[I]-r\f[]) for FFmpeg
.br
* \f[I]"auto"\f[]: Automatically assign a fitting frame rate
based on delays between frames.
.br
* any other \f[I]string\f[]: Use this value as argument for \f[I]-r\f[].
.br
* \f[I]null\f[] or an empty \f[I]string\f[]: Don't set an explicit frame rate.
.SS ugoira.keep-files
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Keep ZIP archives after conversion.
.SS ugoira.libx264-prevent-odd
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
Prevent \f[I]"width/height not divisible by 2"\f[] errors
when using \f[I]libx264\f[] or \f[I]libx265\f[] encoders
by applying a simple cropping filter. See this \f[I]Stack Overflow
thread\f[]
for more information.
This option, when \f[I]libx264/5\f[] is used, automatically
adds \f[I]["-vf", "crop=iw-mod(iw\\\\,2):ih-mod(ih\\\\,2)"]\f[]
to the list of FFmpeg command-line arguments
to reduce an odd width/height by 1 pixel and make them even.
.SS zip.extension
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"zip"\f[]
.IP "Description:" 4
Filename extension for the created ZIP archive.
.SS zip.keep-files
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Keep the actual files after writing them to a ZIP archive.
.SS zip.mode
.IP "Type:" 6
\f[I]string\f[]
.IP "Default:" 9
\f[I]"default"\f[]
.IP "Description:" 4
.br
* \f[I]"default"\f[]: Write the central directory file header
once after everything is done or an exception is raised.
.br
* \f[I]"safe"\f[]: Update the central directory file header
each time a file is stored in a ZIP archive.
This greatly reduces the chance a ZIP archive gets corrupted in
case the Python interpreter gets shut down unexpectedly
(power outage, SIGKILL) but is also a lot slower.
.SH MISCELLANEOUS OPTIONS
.SS extractor.modules
.IP "Type:" 6
\f[I]list\f[] of \f[I]strings\f[]
.IP "Default:" 9
The \f[I]modules\f[] list in
\f[I]extractor/__init__.py\f[]
.IP "Example:" 4
["reddit", "danbooru", "mangadex"]
.IP "Description:" 4
The list of modules to load when searching for a suitable
extractor class. Useful to reduce startup time and memory usage.
.SS cache.file
.IP "Type:" 6
\f[I]Path\f[]
.IP "Default:" 9
.br
* (\f[I]%APPDATA%\f[] or \f[I]"~"\f[]) + \f[I]"/gallery-dl/cache.sqlite3"\f[] on Windows
.br
* (\f[I]$XDG_CACHE_HOME\f[] or \f[I]"~/.cache"\f[]) + \f[I]"/gallery-dl/cache.sqlite3"\f[] on all other platforms
.IP "Description:" 4
Path of the SQLite3 database used to cache login sessions,
cookies and API tokens across gallery-dl invocations.
Set this option to \f[I]null\f[] or an invalid path to disable
this cache.
.SS ciphers
.IP "Type:" 6
\f[I]bool\f[] or \f[I]string\f[]
.IP "Default:" 9
\f[I]true\f[]
.IP "Description:" 4
.br
* \f[I]true\f[]: Update urllib3's default cipher list
.br
* \f[I]false\f[]: Leave the default cipher list as is
.br
* Any \f[I]string\f[]: Replace urllib3's default ciphers with these
(See \f[I]SSLContext.set_ciphers()\f[]
for details)
.SS pyopenssl
.IP "Type:" 6
\f[I]bool\f[]
.IP "Default:" 9
\f[I]false\f[]
.IP "Description:" 4
Use \f[I]pyOpenSSL\f[]-backed
SSL-support.
.SH API TOKENS & IDS
.SS extractor.deviantart.client-id & .client-secret
.IP "Type:" 6
\f[I]string\f[]
.IP "How To:" 4
.br
* login and visit DeviantArt's
\f[I]Applications & Keys\f[]
section
.br
* click "Register Application"
.br
* scroll to "OAuth2 Redirect URI Whitelist (Required)"
and enter "https://mikf.github.io/gallery-dl/oauth-redirect.html"
.br
* scroll to the bottom and agree to the API License Agreement.
Submission Policy, and Terms of Service.
.br
* click "Save"
.br
* copy \f[I]client_id\f[] and \f[I]client_secret\f[] of your new
application and put them in your configuration file
as \f[I]"client-id"\f[] and \f[I]"client-secret"\f[]
.br
* clear your \f[I]cache\f[] to delete any remaining
\f[I]access-token\f[] entries. (\f[I]gallery-dl --clear-cache\f[])
.br
* get a new \f[I]refresh-token\f[] for the
new \f[I]client-id\f[] (\f[I]gallery-dl oauth:deviantart\f[])
.SS extractor.flickr.api-key & .api-secret
.IP "Type:" 6
\f[I]string\f[]
.IP "How To:" 4
.br
* login and \f[I]Create an App\f[]
in Flickr's \f[I]App Garden\f[]
.br
* click "APPLY FOR A NON-COMMERCIAL KEY"
.br
* fill out the form with a random name and description
and click "SUBMIT"
.br
* copy \f[I]Key\f[] and \f[I]Secret\f[] and put them in your configuration
file
.SS extractor.reddit.client-id & .user-agent
.IP "Type:" 6
\f[I]string\f[]
.IP "How To:" 4
.br
* login and visit the \f[I]apps\f[]
section of your account's preferences
.br
* click the "are you a developer? create an app..." button
.br
* fill out the form, choose "installed app", preferably set
"http://localhost:6414/" as "redirect uri" and finally click
"create app"
.br
* copy the client id (third line, under your application's name and
"installed app") and put it in your configuration file
.br
* use "\f[I]Python:<application name>:v1.0 (by /u/<username>)\f[]" as
user-agent and replace \f[I]<application name>\f[] and \f[I]<username>\f[]
accordingly (see Reddit's
\f[I]API access rules\f[])
.SS extractor.smugmug.api-key & .api-secret
.IP "Type:" 6
\f[I]string\f[]
.IP "How To:" 4
.br
* login and \f[I]Apply for an API Key\f[]
.br
* use a random name and description,
set "Type" to "Application", "Platform" to "All",
and "Use" to "Non-Commercial"
.br
* fill out the two checkboxes at the bottom and click "Apply"
.br
* copy \f[I]API Key\f[] and \f[I]API Secret\f[]
and put them in your configuration file
.SS extractor.tumblr.api-key & .api-secret
.IP "Type:" 6
\f[I]string\f[]
.IP "How To:" 4
.br
* login and visit Tumblr's
\f[I]Applications\f[] section
.br
* click "Register application"
.br
* fill out the form: use a random name and description, set
https://example.org/ as "Application Website" and "Default
callback URL"
.br
* solve Google's "I'm not a robot" challenge and click "Register"
.br
* click "Show secret key" (below "OAuth Consumer Key")
.br
* copy your \f[I]OAuth Consumer Key\f[] and \f[I]Secret Key\f[]
and put them in your configuration file
.SH CUSTOM TYPES
.SS Date
.IP "Type:" 6
\f[I]string\f[] or \f[I]integer\f[]
.IP "Example:" 4
.br
* "2019-01-01T00:00:00"
.br
* "2019" with "%Y" as \f[I]date-format\f[]
.br
* 1546297200
.IP "Description:" 4
A \f[I]Date\f[] value represents a specific point in time.
.br
* If given as \f[I]string\f[], it is parsed according to \f[I]date-format\f[].
.br
* If given as \f[I]integer\f[], it is interpreted as UTC timestamp.
.SS Path
.IP "Type:" 6
\f[I]string\f[] or \f[I]list\f[] of \f[I]strings\f[]
.IP "Example:" 4
.br
* "file.ext"
.br
* "~/path/to/file.ext"
.br
* "$HOME/path/to/file.ext"
.br
* ["$HOME", "path", "to", "file.ext"]
.IP "Description:" 4
A \f[I]Path\f[] is a \f[I]string\f[] representing the location of a file
or directory.
Simple \f[I]tilde expansion\f[]
and \f[I]environment variable expansion\f[]
is supported.
In Windows environments, backslashes (\f[I]"\\"\f[]) can, in addition to
forward slashes (\f[I]"/"\f[]), be used as path separators.
Because backslashes are JSON's escape character,
they themselves have to be escaped.
The path \f[I]C:\\path\\to\\file.ext\f[] has therefore to be written as
\f[I]"C:\\\\path\\\\to\\\\file.ext"\f[] if you want to use backslashes.
.SS Logging Configuration
.IP "Type:" 6
\f[I]object\f[]
.IP "Example:" 4
.. code:: json
{
"format" : "{asctime} {name}: {message}",
"format-date": "%H:%M:%S",
"path" : "~/log.txt",
"encoding" : "ascii"
}
.. code:: json
{
"level" : "debug",
"format": {
"debug" : "debug: {message}",
"info" : "[{name}] {message}",
"warning": "Warning: {message}",
"error" : "ERROR: {message}"
}
}
.IP "Description:" 4
Extended logging output configuration.
.br
* format
.br
* General format string for logging messages
or a dictionary with format strings for each loglevel.
In addition to the default
\f[I]LogRecord attributes\f[],
it is also possible to access the current
\f[I]extractor\f[],
\f[I]job\f[],
\f[I]path\f[],
and keywords objects and their attributes, for example
\f[I]"{extractor.url}"\f[], \f[I]"{path.filename}"\f[], \f[I]"{keywords.title}"\f[]
.br
* Default: \f[I]"[{name}][{levelname}] {message}"\f[]
.br
* format-date
.br
* Format string for \f[I]{asctime}\f[] fields in logging messages
(see \f[I]strftime() directives\f[])
.br
* Default: \f[I]"%Y-%m-%d %H:%M:%S"\f[]
.br
* level
.br
* Minimum logging message level
(one of \f[I]"debug"\f[], \f[I]"info"\f[], \f[I]"warning"\f[], \f[I]"error"\f[], \f[I]"exception"\f[])
.br
* Default: \f[I]"info"\f[]
.br
* path
.br
* \f[I]Path\f[] to the output file
.br
* mode
.br
* Mode in which the file is opened;
use \f[I]"w"\f[] to truncate or \f[I]"a"\f[] to append
(see \f[I]open()\f[])
.br
* Default: \f[I]"w"\f[]
.br
* encoding
.br
* File encoding
.br
* Default: \f[I]"utf-8"\f[]
Note: path, mode, and encoding are only applied when configuring
logging output to a file.
.SS Postprocessor Configuration
.IP "Type:" 6
\f[I]object\f[]
.IP "Example:" 4
.. code:: json
{ "name": "mtime" }
.. code:: json
{
"name" : "zip",
"compression": "store",
"extension" : "cbz",
"whitelist" : ["mangadex", "exhentai", "nhentai"]
}
.IP "Description:" 4
An \f[I]object\f[] containing a \f[I]"name"\f[] attribute specifying the
post-processor type, as well as any of its \f[I]options\f[].
It is also possible set a \f[I]"whitelist"\f[] or \f[I]"blacklist"\f[] to
only enable or disable a post-processor for the specified
extractor categories.
The available post-processor types are
\f[I]classify\f[]
Categorize files by filename extension
\f[I]compare\f[]
Compare versions of the same file and replace/enumerate them on mismatch
.br
(requires \f[I]downloader.*.part\f[] = \f[I]true\f[] and \f[I]extractor.*.skip\f[] = \f[I]false\f[])
.br
\f[I]exec\f[]
Execute external commands
\f[I]metadata\f[]
Write metadata to separate files
\f[I]mtime\f[]
Set file modification time according to its metadata
\f[I]ugoira\f[]
Convert Pixiv Ugoira to WebM using \f[I]FFmpeg\f[]
\f[I]zip\f[]
Store files in a ZIP archive
.SH BUGS
https://github.com/mikf/gallery-dl/issues
.SH AUTHORS
Mike Fährmann <mike_faehrmann@web.de>
.br
and https://github.com/mikf/gallery-dl/graphs/contributors
.SH "SEE ALSO"
.BR gallery-dl (1)
|