jac12 commited on
Commit
8a4fbd0
·
1 Parent(s): b2a4651

Upload 58 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Jac12/extensions/batchlinks-webui-main/.github/CODEOWNERS +2 -0
  2. Jac12/extensions/batchlinks-webui-main/.gitignore +168 -0
  3. Jac12/extensions/batchlinks-webui-main/LICENSE +21 -0
  4. Jac12/extensions/batchlinks-webui-main/README.md +491 -0
  5. Jac12/extensions/batchlinks-webui-main/howtogetthedirectlinks.md +104 -0
  6. Jac12/extensions/batchlinks-webui-main/images/anonfiles.png +3 -0
  7. Jac12/extensions/batchlinks-webui-main/images/batchlinks_logo.png +3 -0
  8. Jac12/extensions/batchlinks-webui-main/images/cancel.jpg +3 -0
  9. Jac12/extensions/batchlinks-webui-main/images/checkconsole1.jpg +3 -0
  10. Jac12/extensions/batchlinks-webui-main/images/checkconsole2.jpg +3 -0
  11. Jac12/extensions/batchlinks-webui-main/images/civit1.jpg +3 -0
  12. Jac12/extensions/batchlinks-webui-main/images/civit2.jpg +3 -0
  13. Jac12/extensions/batchlinks-webui-main/images/civitnew1.jpg +3 -0
  14. Jac12/extensions/batchlinks-webui-main/images/civitnew2.jpg +3 -0
  15. Jac12/extensions/batchlinks-webui-main/images/discord1.jpg +3 -0
  16. Jac12/extensions/batchlinks-webui-main/images/discord2.jpg +3 -0
  17. Jac12/extensions/batchlinks-webui-main/images/downloaded.jpg +3 -0
  18. Jac12/extensions/batchlinks-webui-main/images/drive1.png +3 -0
  19. Jac12/extensions/batchlinks-webui-main/images/drive2.png +3 -0
  20. Jac12/extensions/batchlinks-webui-main/images/dropbox1.png +3 -0
  21. Jac12/extensions/batchlinks-webui-main/images/dropbox2.png +3 -0
  22. Jac12/extensions/batchlinks-webui-main/images/example.jpg +3 -0
  23. Jac12/extensions/batchlinks-webui-main/images/ext_installer.jpg +3 -0
  24. Jac12/extensions/batchlinks-webui-main/images/github.jpg +3 -0
  25. Jac12/extensions/batchlinks-webui-main/images/githubdirect1.png +3 -0
  26. Jac12/extensions/batchlinks-webui-main/images/githubdirect2.png +3 -0
  27. Jac12/extensions/batchlinks-webui-main/images/githubdirect3.png +3 -0
  28. Jac12/extensions/batchlinks-webui-main/images/githubrelease1.png +3 -0
  29. Jac12/extensions/batchlinks-webui-main/images/githubrelease2.png +3 -0
  30. Jac12/extensions/batchlinks-webui-main/images/gradiooff1.jpg +3 -0
  31. Jac12/extensions/batchlinks-webui-main/images/gradiooff2.jpg +3 -0
  32. Jac12/extensions/batchlinks-webui-main/images/huggingface1.jpg +3 -0
  33. Jac12/extensions/batchlinks-webui-main/images/huggingface2.jpg +3 -0
  34. Jac12/extensions/batchlinks-webui-main/images/logging.jpg +3 -0
  35. Jac12/extensions/batchlinks-webui-main/images/mediafire.png +3 -0
  36. Jac12/extensions/batchlinks-webui-main/images/mega1.jpg +3 -0
  37. Jac12/extensions/batchlinks-webui-main/images/mega2.jpg +3 -0
  38. Jac12/extensions/batchlinks-webui-main/images/pastebin.png +3 -0
  39. Jac12/extensions/batchlinks-webui-main/images/pixeldrain.png +3 -0
  40. Jac12/extensions/batchlinks-webui-main/images/progress.jpg +3 -0
  41. Jac12/extensions/batchlinks-webui-main/images/python.png +3 -0
  42. Jac12/extensions/batchlinks-webui-main/images/queue.jpg +3 -0
  43. Jac12/extensions/batchlinks-webui-main/images/rename.jpg +3 -0
  44. Jac12/extensions/batchlinks-webui-main/images/sdless.png +3 -0
  45. Jac12/extensions/batchlinks-webui-main/images/shell1.jpg +3 -0
  46. Jac12/extensions/batchlinks-webui-main/images/shell2.jpg +3 -0
  47. Jac12/extensions/batchlinks-webui-main/install.py +9 -0
  48. Jac12/extensions/batchlinks-webui-main/javascript/notification.js +19 -0
  49. Jac12/extensions/batchlinks-webui-main/misc/markydynamictohtml.py +86 -0
  50. Jac12/extensions/batchlinks-webui-main/notification.mp3 +3 -0
Jac12/extensions/batchlinks-webui-main/.github/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ # Global rule:
2
+ * @etherealxx
Jac12/extensions/batchlinks-webui-main/.gitignore ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.bak
2
+ *.backup
3
+ imageratio.*
4
+ *.lnk
5
+ tempCodeRunnerFile.python
6
+ .DS_Store
7
+ gradiovenv/
8
+
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # C extensions
15
+ *.so
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff:
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ #Pipfile.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ #poetry.lock
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ #pdm.lock
115
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
116
+ # in version control.
117
+ # https://pdm.fming.dev/#use-with-ide
118
+ .pdm.toml
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
Jac12/extensions/batchlinks-webui-main/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Etherealxx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
Jac12/extensions/batchlinks-webui-main/README.md ADDED
@@ -0,0 +1,491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <br />
2
+
3
+ <div align="center">
4
+ <a href="https://github.com/etherealxx/batchlinks-downloader">
5
+ <img src="images/batchlinks_logo.png" alt="Logo" width="528">
6
+ </a>
7
+
8
+ <h3 align="center">BatchLinks Downloader</h3>
9
+
10
+ <p align="center">
11
+ Batch-downloading models and stuff in stable-diffusion-webui colab made simple and fast.
12
+ <br />
13
+ <a href="https://github.com/etherealxx/batchlinks-downloader"><strong></strong></a>
14
+ <br />
15
+ <a href="https://github.com/etherealxx/batchlinks-downloader/issues">Report Bug</a>
16
+ ·
17
+ <a href="https://github.com/etherealxx/batchlinks-downloader/discussions/new?category=ideas">Request Feature</a>
18
+ </p>
19
+
20
+ </div>
21
+
22
+ <!-- TOC -->
23
+ <!-- - [Installation](#installation)
24
+ - [About](#about)
25
+ - [Example](#example)
26
+ - [Syntax](#syntax)
27
+ - [Hashtag](#hashtag)
28
+ - [Links](#links)
29
+ - [Double Hashtag](#double-hashtag)
30
+ - [Others](#others)
31
+ - [Valid Hashtags](#valid-hashtags)
32
+ - [How to get the direct links (Important!)](#how-to-get-the-direct-links-important)
33
+ - [Huggingface's download method](#huggingfaces-download-method)
34
+ - [Additional Syntax](#additional-syntax)
35
+ - [Rename Downloaded Files](#rename-downloaded-files)
36
+ - [Running Shell Commands](#running-shell-commands)
37
+ - [Extract Everyting (`@extract`)](#extract-everyting-extract)
38
+ - [Custom Hashtag Path (`@new`)](#custom-hashtag-path-new)
39
+ - [Custom Direct Link Download with `aria2` (`@aria2`)](#custom-direct-link-download-with-aria2-aria2)
40
+ - [Gradio Queue](#gradio-queue)
41
+ - [Logging](#logging)
42
+ - [Cancel](#cancel)
43
+ - [Progress Bar](#progress-bar)
44
+ - [Changes if `--gradio-queue` is off](#changes-if---gradio-queue-is-off)
45
+ - [Other Features](#other-features)
46
+ - [Notification](#notification)
47
+ - [Copy From Pastebin](#copy-from-pastebin)
48
+ - [SDless mode](#sdless-mode)
49
+ - [Local Installation Support](#local-installation-support)
50
+ - [Debug Mode (Developer only)](#debug-mode-developer-only)
51
+ - [Release Notes](#release-notes)
52
+ - [Roadmap](#roadmap)
53
+ - [Known Bugs](#known-bugs)
54
+ - [Known Fixed Bugs](#known-fixed-bugs)
55
+ - [Contributing](#contributing)
56
+ - [Contact](#contact)
57
+ - [Acknowledgments](#acknowledgments) -->
58
+ <!-- /TOC -->
59
+
60
+ <details>
61
+ <summary>Table of Contents</summary>
62
+ <ol>
63
+ <li><a href="#installation">Installation</a></li>
64
+ <li><a href="#about">About</a></li>
65
+ <li><a href="#example">Example</a></li>
66
+ <li><a href="#syntax">Syntax</a></li>
67
+ <ul><li><a href="#hashtag">Hashtag</a></li></ul>
68
+ <ul><li><a href="#links">Links</a></li></ul>
69
+ <ul><li><a href="#double-hashtag">Double Hashtag</a></li></ul>
70
+ <ul><li><a href="#others">Others</a></li></ul>
71
+ <ul><li><a href="#valid-hashtags">Valid Hashtags</a></li></ul>
72
+ <ul><li><a href="#how-to-get-the-direct-links-important">How to get the direct links (Important!)</a></li></ul>
73
+ <ul><li><a href="#huggingfaces-download-method">Huggingface's download method</a></li></ul>
74
+ <li><a href="#additional-syntax">Additional Syntax</a></li>
75
+ <ul><li><a href="#rename-downloaded-files">Rename Downloaded Files</a></li></ul>
76
+ <ul><li><a href="#running-shell-commands">Running Shell Commands</a></li></ul>
77
+ <ul><li><a href="#extract-everyting-extract">Extract Everyting (`@extract`)</a></li></ul>
78
+ <ul><li><a href="#custom-hashtag-path-new">Custom Hashtag Path (`@new`)</a></li></ul>
79
+ <ul><li><a href="#custom-direct-link-download-with-aria2-aria2">Custom Direct Link Download with `aria2` (`@aria2`)</a></li></ul>
80
+ <li><a href="#gradio-queue">Gradio Queue</a></li>
81
+ <ul><li><a href="#logging">Logging</a></li></ul>
82
+ <ul><li><a href="#cancel">Cancel</a></li></ul>
83
+ <ul><li><a href="#progress-bar">Progress Bar</a></li></ul>
84
+ <ul><li><a href="#changes-if---gradio-queue-is-off">Changes if `--gradio-queue` is off</a></li></ul>
85
+ <li><a href="#other-features">Other Features</a></li>
86
+ <ul><li><a href="#notification">Notification</a></li></ul>
87
+ <ul><li><a href="#copy-from-pastebin">Copy From Pastebin</a></li></ul>
88
+ <ul><li><a href="#sdless-mode">SDless mode</a></li></ul>
89
+ <ul><li><a href="#local-installation-support">Local Installation Support</a></li></ul>
90
+ <ul><li><a href="#debug-mode-developer-only">Debug Mode (Developer only)</a></li></ul>
91
+ <li><a href="#release-notes">Release Notes</a></li>
92
+ <li><a href="#roadmap">Roadmap</a></li>
93
+ <li><a href="#known-bugs">Known Bugs</a></li>
94
+ <ul><li><a href="#known-fixed-bugs">Known Fixed Bugs</a></li></ul>
95
+ <li><a href="#contributing">Contributing</a></li>
96
+ <li><a href="#contact">Contact</a></li>
97
+ <li><a href="#acknowledgments">Acknowledgments</a></li>
98
+ </li>
99
+ </ol>
100
+ </details>
101
+
102
+ [does this repo still maintained?](https://github.com/etherealxx/batchlinks-webui/blob/main/regardingthisrepo.md)
103
+
104
+ ## Installation
105
+
106
+ Copy this line into your colab installation cell. Or into a new cell if you already launched the webui.
107
+
108
+ ```
109
+ !git clone https://github.com/etherealxx/batchlinks-webui /content/stable-diffusion-webui/extensions/batchlinks-webui
110
+ ```
111
+
112
+ or, you can copy the url of this repo and install it via webui and restart the UI.<br/>
113
+ <img src="images/ext_installer.jpg" alt="Logo" width="362"><br/>
114
+ (If `gradio no interface is running` or `bad gateway` shows up when restarting the UI, that means you need to restart the cell anyway 😅)
115
+
116
+ <!--
117
+ or, if your colab use the newer version of webui (gradio version above 3.16.0) you can use this instead (it adds a little progress bar)
118
+
119
+ ```
120
+ !git clone -b gradio-v3-16-2 https://github.com/etherealxx/batchlinks-webui /content/stable-diffusion-webui/extensions/batchlinks-webui
121
+ ```
122
+ -->
123
+
124
+ Using `--gradio-queue` on the launch.py argument is highly recommended, as it enables this extension to show download progress bar on the UI and a cancel button. The option itself has no negative effect on the webui. [Read more here.](https://github.com/etherealxx/batchlinks-webui#gradio-queue)<br/>
125
+ <img src="images/queue.jpg" alt="Logo" width="300"><br/>
126
+
127
+ You can also run this extension in [SDless mode](https://github.com/etherealxx/batchlinks-webui#sdless-mode) btw.
128
+
129
+ While it's not recommended to use this extension on your local installation, you can use this extension on Windows. [More here.](https://github.com/etherealxx/batchlinks-webui#local-installation-support)
130
+
131
+ ## About
132
+
133
+ This extension will streamline your downloads on your [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) colab session. Paste the links you need to download (or you can upload a txt file containing the links), use the hashstag syntax to choose the download location (see below), and hit the `Download All` button to download them!
134
+
135
+ ## Example
136
+
137
+ Look at this example<br/>
138
+ <img src="images/example.jpg" alt="Logo" width="738"><br/>
139
+
140
+ ```
141
+ #model
142
+ https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3_orangemixs.safetensors
143
+ #vae
144
+ https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt
145
+ #embed
146
+ https://huggingface.co/datasets/Nerfgun3/bad_prompt/resolve/main/bad_prompt_version2.pt
147
+ https://huggingface.co/etherealxx/whoseisthis/resolve/main/bad_artist.pt
148
+ #lora
149
+ https://civitai.com/api/download/models/8840 ##1-mb-lora-trained-in-5-mins-that-does-the-same-thing-as-25-gb-model-but-better
150
+ https://civitai.com/api/download/models/6891 ##sans undertale
151
+ https://mega.nz/file/gAxTWBAI#uL7EZay-OND5G6ELJlGfUNG0s7Q4TynZKqFdvs0v0tc ##agent8-finetune
152
+ https://mega.nz/file/oU43FSTY#vwAfsAb7RKJ4xtsSP7uzrKpWhh1y8BdpIBFurwsVP2o ##agent8-dreambooth
153
+ #hypernet
154
+ https://cdn.discordapp.com/attachments/1070489470127841381/1070489471964954684/MomopocoV3.pt
155
+ ```
156
+
157
+ This piece of lines will be read from top to bottom. Every hashtag, it will change the current output directory to said directory (see below). So what this example do is it will download `AOM3` model to the model folder, then it will download the vae and put it to the Vae folder. Next it will download two embed, `bad prompt` and `bad artist`. Next it will download several LoRAs from CivitAI and MEGA, and put it to the Lora folder. Lastly, it changes the directory to hypernet directory, then
158
+
159
+ You can also copy that example and paste it to a `.txt` file to use later. You can load a `.txt` file containing that piece of lines directly from the UI.
160
+
161
+ When the items is downloading, you can inspect the running code on the colab cell, or just take a coffee and chill☕. If you activate logging, you can inspect the download progress from the UI, more [here](https://github.com/etherealxx/batchlinks-webui#logging)
162
+
163
+ When the download is complete, the downloaded file will be listed<br/>
164
+ <img src="images/downloaded.jpg" alt="Logo" width="745"><br/>
165
+
166
+ ## Syntax
167
+
168
+ #### Hashtag
169
+ - Hashtag means change current output directory to this directory. `#model` means every links below this hashtag, will be downloaded to _/content/stable-diffusion-webui/models/Stable-diffusion_, until it hits another hashtag, which will change the output directory again. See [below](https://github.com/etherealxx/batchlinks-webui#valid-hashtags) for valid hashtags.
170
+
171
+ Note: If you use some colab that purposefully uses `sd-webui-additional-networks` extension to load Lora, use `#addnetlora` instead of `#lora`. It will download the lora to where it supposed to be.
172
+
173
+ #### Links
174
+ - Links are the main things you wants to be downloaded. Current supported links are from:
175
+ - Huggingface (https://huggingface.co/)
176
+ - MEGA (https://mega.nz/) {using `mega-cmd`}
177
+ - CivitAI (https://civitai.com/)
178
+ - Discord attachments (https://cdn.discordapp.com/attachments/)
179
+ - catbox (https://files.catbox.moe)
180
+ - Github (https://github.com or https://raw.githubusercontent.com)
181
+ - Google Drive (https://drive.google.com) {using `gdown`}
182
+ - Pixeldrain (https://pixeldrain.com/u/)
183
+ - Mediafire (https://www.mediafire.com/file) {using `mediafire-dl`}
184
+ - anonfiles (https://anonfiles.com)
185
+
186
+ Every links other than that will be ignored. Keep in mind the only supported links are direct download links (see [here](https://github.com/etherealxx/batchlinks-downloader/blob/main/howtogetthedirectlinks.md)). For Huggingface, Civitai (model page link method), Discord attachments, catbox, pixeldrain, and anonfiles, there will be four different method of downloading offered (see [below](https://github.com/etherealxx/batchlinks-webui#huggingfaces-download-method)). For MEGA, it will use `mega-cmd` to download. For Github, if, the link is a raw file, it will download the file. Else, it will use `git clone`, useful to clone extension repo into the webui extension folder.
187
+
188
+ More about CivitAI download method [here](https://github.com/etherealxx/batchlinks-webui#civitais-download-method).
189
+
190
+ #### Double Hashtag
191
+ - Double hashtag means comment. You can put double hashtag in the same line of the link and it will be ignored (keep in mind to put the link first then the double hashtag)
192
+
193
+ #### Others
194
+ - Other texts will be ignored.
195
+
196
+ ### Valid Hashtags
197
+
198
+ `#model`, `#models`, `#checkpoint`, or `#checkpoints` will put the downloaded file to _/content/stable-diffusion-webui/models/Stable-diffusion_
199
+
200
+ `#embedding`, `#embeddings`, `#embed`, `#embeds`, `#textualinversion`, or `#ti` will put the downloaded file to _/content/stable-diffusion-webui/embeddings_
201
+
202
+ `#vae` or `#vaes` will put the downloaded file to _/content/stable-diffusion-webui/models/VAE_
203
+
204
+ `#hypernetwork`, `#hypernetworks`, `#hypernet`, `#hypernets`, `#hynet`, or `#hynets` will put the downloaded file to _/content/stable-diffusion-webui/models/hypernetworks_
205
+
206
+ `#lora` or `#loras` will put the downloaded file to _/content/stable-diffusion-webui/models/Lora_
207
+
208
+ `#addnetlora`, `#loraaddnet`, `#additionalnetworks`, or `#addnet` will put the downloaded file to _/content/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/lora_
209
+
210
+ `#aestheticembedding` or `#aestheticembed` will put the downloaded file to _content/stable-diffusion-webui/extensions/stable-diffusion-webui-aesthetic-gradients/aesthetic_embeddings_
211
+
212
+ `#controlnet` or `#cnet` will put the downloaded file to _/content/stable-diffusion-webui/extensions/sd-webui-controlnet/models_
213
+
214
+ `#upscale` or `#upscaler` will put the downloaded file to _/content/stable-diffusion-webui/models/ESRGAN_
215
+
216
+ `#lycoris`, `#locon`, or `#loha` will put the downloaded file to _/content/stable-diffusion-webui/extensions/sd-webui-additional-networks/models/lora/lycoris_
217
+
218
+ `#altmodel` or `#altmodels` will put the downloaded file to the path you choose when using `--ckptdir` argument on `launch.py` line. If you didn't use that argument, this hashtag will points to the same directory as `#model`
219
+
220
+ _Lycoris/Locon/Loha_ will works just fine if you use `#addnetlora` instead, as long as you have both [addnet extension](https://github.com/kohya-ss/sd-webui-additional-networks) and [locon extension](https://github.com/KohakuBlueleaf/a1111-sd-webui-locon) installed. It's unclear if it's can be loaded by native auto1111 lora. (Tell me if you know more about this.)
221
+
222
+ Github links (if it does not contain `/raw/` or `/release/download/` in it) doesn't need hashtag. It will always considered as webui extension, and the repository will be cloned to _/content/stable-diffusion-webui/extensions/(reponame)_
223
+
224
+ ### How to get the direct links (Important!)
225
+
226
+ See [here](https://github.com/etherealxx/batchlinks-downloader/blob/main/howtogetthedirectlinks.md)
227
+
228
+ ### Huggingface's download method
229
+
230
+ So there's four supported method: `gdown`, `wget`, `curl` and `aria2`. Use whatever, really. The difference between them are actually little. Myself love using `gdown` since the output is cleaner than the others. `aria2` has the fastest download speed though.
231
+
232
+ <!-- ### Civitai's download method
233
+
234
+ There are two ways to download links from Civit. The `model page link` method, and the `direct link` method.
235
+
236
+ The `model page link` method **will automatically** choose the directory of the saved model without even using hashtag. It will download the default model of a model page. The advantage of this method is you will also get the model preview images that can shows up on the latest version of [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui). This method will also uses the same download protocol as huggingface's (see above). <br/>The `model page link` method's link starts with **https://civitai.com/models/**
237
+
238
+ The `direct link` method is the old method, which needs hashtag for the downloaded model to be properly placed, and uses `request` module to download. The advantage of this method is you can choose what model variation you want to download by grabbing the right url. See [here](https://github.com/etherealxx/batchlinks-downloader/blob/main/howtogetthedirectlinks.md) for more.<br/>The `direct link` method's link starts with **https://civitai.com/api/download/models/**
239
+
240
+ Here's the difference of syntax between two methods:
241
+
242
+ Model page link:
243
+ ```
244
+ https://civitai.com/models/4823/deliberate
245
+ ```
246
+ Direct link:
247
+ ```
248
+ #model
249
+ https://civitai.com/api/download/models/5616
250
+ ```
251
+
252
+ Check [this page](https://github.com/etherealxx/batchlinks-downloader/blob/main/howtogetthedirectlinks.md) to learn more on how to get the links for each methods. -->
253
+
254
+ ## Additional Syntax
255
+ ### Rename Downloaded Files
256
+ Using `>` symbol, you can rename files. Take this for example<br/>
257
+ <img src="images/rename.jpg" alt="Log" width="407"><br/>
258
+ Mostly catbox file has random name, by using `>` symbol after the link, you can type the desired name on the right. (Don't forget the extension)
259
+
260
+ ### Running Shell Commands
261
+ You can run shell commands by using `!` in front of the command you want, just like in google colab cells. Then press the `Download All!` button. (Sure, it doesn't download anything, but, well😅)<br/>
262
+ <img src="images/shell1.jpg" alt="Log" width="200">
263
+ <img src="images/shell2.jpg" alt="Log" width="200"><br/>
264
+ You can run many lines at once too!
265
+
266
+ ### Extract Everyting (`@extract`)
267
+ You can use `@extract` to extract every `*.7z`, `*.rar`, and `*.zip` on current directory).
268
+ ```
269
+ #lora
270
+ <example lora .zip link>
271
+ @extract
272
+ #embed
273
+ ```
274
+ This will extract everything on Lora folder, since the code runs from top to bottom, and when the `@extract` executes, the current directory is still on Lora folder.
275
+
276
+ ### Custom Hashtag Path (`@new`)
277
+ You can use `@new <hashtagname> <directory>` to make a new usable hashtag and assign a directory path to it.<br/>For example, you type this and press the `Download All!` button:
278
+ ```
279
+ @new #private /content/stable-diffusion-webui/outputs
280
+ #private
281
+ <example model link>
282
+ ```
283
+ This will make a new hashtag `#private`, make it points to _/content/stable-diffusion-webui/outputs_, set `#private` as current directory, then download whatever into it. You can check if the new hashtag is assigned successfully by looking at the hashtag table on the right/bottom of the screen.
284
+
285
+ ### Custom Direct Link Download with `aria2` (`@aria2`)
286
+ If there are other direct links that isn't supported by Batchlinks, you can use `@aria` or `@aria2` custom command to download it. The main syntax is:
287
+ ```
288
+ @aria2 {link} {path/hashtag} > {filename}
289
+ ```
290
+ You can change `@aria2` with `@aria`, both works. Both the `path/hashtag` and `filename` is optional. This command was made to avoid hassle writing this:
291
+ ```
292
+ aria2c --summary-interval=1 --console-log-level=error -c -x 16 -s 16 -k 1M {link} -d {path} -o {filename}
293
+ ```
294
+ There are several ways to use it. Here i use a [20MB download test file](http://212.183.159.230/20MB.zip) as an example.
295
+ ```
296
+ @aria2 http://212.183.159.230/20MB.zip
297
+ ```
298
+ ☝️ This will download the file into the current directory (where the hashtags points to). So if before that line you use `#vae`, it will be downloaded to the vae directory. If there are no hashtags before, it'll be sent to the default `#model` directory. The filename will be the last part of the link (`512MB.zip`).
299
+ ```
300
+ @aria2 http://212.183.159.230/20MB.zip #vae
301
+ ```
302
+ ☝️ This will download the file into where `#vae` points to (which is the vae directory). You can use custom hashtag here as well.
303
+ ```
304
+ @aria2 http://212.183.159.230/20MB.zip /content/stable-diffusion-webui
305
+ ```
306
+ ☝️ This will download the file into the written path, which is _/content/stable-diffusion-webui_. Make sure it is a folder path, not a file path.
307
+ ```
308
+ @aria2 http://212.183.159.230/20MB.zip /content/stable-diffusion-webui > 20megabytes.zip
309
+ ```
310
+ ☝️ This will download the file into the written path and rename the file into `20megabytes.zip`. Remember to make sure to write the extension too.
311
+
312
+ ## Gradio Queue
313
+
314
+ If you use --gradio-queue argument on `launch.py`, some feature will be activated.
315
+
316
+ ### Logging
317
+
318
+ <!-- If you use latest version of [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui), or webui forks that supports `--gradio-queue` args on launch.py, use it and you will be able to -->
319
+ Enable logging by pressing the `Turn On Logging` radio button, and wait till `Logging activated` shows up and the box is blinking with orange border. Logging will tell you what are you actually downloading right now on the webui. After your download session is completed, it's recommended to turn back off the feature.<br/>
320
+ <img src="images/logging.jpg" alt="Log" width="407"><br/>
321
+
322
+ ### Cancel
323
+ Pressing `cancel` button while download in progress will stops the current session. Useful when at one time the download speeds is too slow. If you're currently downloading a single item, that item will be cancelled, but the other downloaded one will remain intact.<br/>
324
+ <img src="images/cancel.jpg" alt="Log" width="500"><br/>
325
+
326
+ ### Progress Bar
327
+ There will be an additional progress bar that tells you the current activities.<br/>
328
+ <img src="images/progress.jpg" alt="Log" width="500"><br/>
329
+
330
+ ### Changes if `--gradio-queue` is off
331
+ Feature listed above will dissapear, and your only option for download is just `aria2` (speed is priority).<br/>Note that when you pressed the `Download All!` button, **nothing will shows up on the UI**. You need to check the colab console.<br/>
332
+ <img src="images/checkconsole1.jpg" alt="check" width="407"><img src="images/checkconsole2.jpg" alt="off" width="407"><br/>
333
+ Another thing to note is your download session will always be cutted every 70 seconds (to prevent hangs/desync).<br/>
334
+ <img src="images/gradiooff1.jpg" alt="off" width="407"><br/>
335
+ Don't worry, you can continue your session by pressing the `Resume Download` button. It will refresh the links with the one you haven't downloaded yet, then pressing `Download All!` will download the remaining links.<br/>
336
+ <img src="images/gradiooff2.jpg" alt="off" width="407"><br/>
337
+
338
+ ## Other Features
339
+
340
+ ### Notification
341
+
342
+ This extension will play sound effect when the download process is completed. It's somewhat buggy at the moment though.
343
+
344
+ ### Copy From Pastebin
345
+
346
+ You can put your links on pastebin (write it the way you wrote on Batchlinks), put the pastebin link (https://pastebin.com/xxxx) on the link input, and press the 'Copy from Pastebin' button. It will copy all the the links on the pastebin to the UI. Useful to avoid hassle copy and pasting a bunch of text while on mobile.<br/>
347
+ <img src="images/pastebin.png" alt="off" width="400"><br/>
348
+
349
+ ### SDless mode
350
+ This mode will run the extension without the need of stable-diffusion-webui. Good for my own purpose of debugging it😁.<br/>
351
+ <img src="images/sdless.png" alt="off" width="450"><br/>
352
+
353
+ Copy-paste this on a new colab cell then run it:
354
+ ```
355
+ from IPython.display import clear_output
356
+ !pip3 show virtualenv >/dev/null || pip install -q virtualenv
357
+ ![ -d gradiovenv ] || virtualenv gradiovenv
358
+ !git clone https://github.com/etherealxx/batchlinks-webui \
359
+ /content/stable-diffusion-webui/extensions/batchlinks-webui
360
+ pip3 show gradio >/dev/null || pip install -q gradio==3.16.2; \
361
+ pip3 show tqdm >/dev/null || pip3 install -q tqdm
362
+ clear_output(wait=True)
363
+ !source gradiovenv/bin/activate; \
364
+ python /content/stable-diffusion-webui/extensions/batchlinks-webui/scripts/batchlinks-downloader.py
365
+ ```
366
+ or here's the quicker version without venv:
367
+ ```
368
+ !pip install gradio==3.16.2
369
+ !git clone https://github.com/etherealxx/batchlinks-webui /content/stable-diffusion-webui/extensions/batchlinks-webui
370
+ !python /content/stable-diffusion-webui/extensions/batchlinks-webui/scripts/batchlinks-downloader.py
371
+ ```
372
+
373
+ For Windows, run the sdless-windows.bat. Make sure you have `python3` and `gradio` package version 3.16.2 or above. It won't use venv.
374
+
375
+ This one for MacOS. Tested on Mojave. Create a shell script and give execute access to it.
376
+ ```
377
+ #!/usr/bin/env bash
378
+ pip3 show virtualenv >/dev/null || pip3 install virtualenv
379
+ [ -d gradiovenv ] || virtualenv gradiovenv
380
+ git clone https://github.com/etherealxx/batchlinks-webui \
381
+ $HOME/Downloads/stable-diffusion-webui/extensions/batchlinks-webui
382
+ source gradiovenv/bin/activate; \
383
+ pip3 show gradio >/dev/null || pip3 install gradio==3.16.2; \
384
+ pip3 show tqdm >/dev/null || pip3 install -q tqdm
385
+ source gradiovenv/bin/activate; \
386
+ python3 $HOME/Downloads/stable-diffusion-webui/extensions/batchlinks-webui/scripts/batchlinks-downloader.py
387
+ ```
388
+
389
+ ### Local Installation Support
390
+
391
+ This extension was tested to work on Windows 11. But ultimately, the number one priority for me is colab use, so there's might be bugs on Windows 11 one. Maybe also works on Debian-based linux (but you better inspect the source code first).
392
+ On Windows, this extension will install [MEGAcmd](https://github.com/meganz/MEGAcmd) for MEGA file download, [wget-windows](https://github.com/webfolderio/wget-windows) for download using `wget`, [aria2-static-builds](https://github.com/q3aql/aria2-static-builds) for download using `aria2`, [7zr and 7z](https://www.7-zip.org) for extracting `aria2` installation, and for `@extract` command.
393
+ MacOS is just partially supported.
394
+
395
+ Also remember, in order for this extension to work properly, you need make sure that you tick that `add Python 3.10 to PATH` checkbox when you installed Python (Which is already recommended when installing stable-diffusion-webui)<br/>
396
+ <img src="images/python.png" alt="python" width="400"><br/>
397
+
398
+ ### Debug Mode (Developer only)
399
+
400
+ By manually switching `globaldebug = False` to `True` on the source code, or using `--debug` argument when running the sdless mode, the Debug Mode will be activated. It shows every `print` calls i use to track variables. It will also tracks every files on the models (etc.) paths into a `snapshot.txt` file (if there isn't one).
401
+
402
+ There are some batchlinks syntax features that only available on debug mode (putting it on the textbox and click `Download All!`):
403
+
404
+ `@debugresetdownload` - This command will check every model (etc.) directory, and remove every file that isn't on `snapshot.txt`. Useful for me to removes file quickly when testing. **Be careful using this on your local installation.**
405
+
406
+ `@debugresetdownload` - This command is (supposed to) download a single link with every method available (gdown, curl, wget, aria2), but now i rarely use this command, and haven't updated since. Might be buggy.
407
+
408
+ ## Release Notes
409
+ Moved [here](https://github.com/etherealxx/batchlinks-webui/blob/main/releasenotes.md). Check it out for latest features & bug fixes.
410
+
411
+ ## Roadmap
412
+
413
+ - [ ] Add checker for downloaded models (so that it won't download again after the model is downloaded)
414
+ - [ ] Different UI for mobile
415
+ - [ ] Gradio progress bar
416
+ - [ ] Integrating refresh button (`create_refresh_button`) to refresh models etc. all at once
417
+ - [ ] Logo change
418
+ - [ ] Moving most of the content of this `Readme.md` to Wiki instead
419
+ - [ ] Other download sites (s-ul.eu, gitgud, bunkr.ru, icedrive)
420
+ - [ ] Separate 'download' and 'run command' function with a subtab
421
+ - [ ] Support download MEGA and Google Drive folder
422
+ - [ ] Using `yield` instead of gradio's `every`
423
+ - [ ] Youtube video (Tutorial)
424
+ - [ ] (Crawler) Download every sd-webui related file from a huggingface repo
425
+ - [ ] (Crawler) Download every model from a civitai user page
426
+ <br/>_
427
+ - [x] aria2 for huggingface download method
428
+ - [x] Cleaning the code from unnecesarry comments
429
+ - [x] Completed download will use the webui's notification.mp3
430
+ - [x] Support customizable hashtag from the UI
431
+ - [x] Supports Windows local installation
432
+ - [x] UI overhaul
433
+ - [x] Using threading/subprocess instead of os.system to download files
434
+ - [x] (Windows) wget & aria2 support
435
+
436
+ ## Known Bugs
437
+
438
+ - Progress bar (the yellow bar) doesn't progress as expected
439
+ - Sometimes notification sound doesn't play when downloading same file twice in a row
440
+ - Sometimes notification sound shows up when starting download, instead of when the download process is completed.
441
+ - There's still a chance that the UI of non `--gradio-queue` session and/or onedotsix freezes after a download session
442
+ - Windows: The delay between file is downloaded and the output shows is pretty long, and even sometimes the notification comes at the wrong time.
443
+ <br/>
444
+
445
+ ### Known Fixed Bugs
446
+
447
+ <details>
448
+ <summary>👈Fixed Bugs</summary>
449
+ <ol>
450
+ <ul>
451
+ <li><s>Links that has bracket in it needs to be 'escaped' (For example, <code>Baka-DiffusionV1(Fp16).safetensors</code> must be typed <code>Baka-DiffusionV1\(Fp16\).safetensors</code>)</s><br/>☝️Fixed in <a href="dbb2adb3d07e41654244076b8ef4e851c3bb1f0c">v2.0.0</a>
452
+ <li><s>The delay between file is downloaded and the output shows is really long (1min+) on <a href="https://github.com/camenduru/stable-diffusion-webui-colab">camenduru's v1.6 colab</a> (Gradio related?)</s><br/>☝️Seems like fixed in <a href="fe6feafc07fbbe3efd2883b33855f8d66b5f89ea">v1.1.0</a>
453
+ <li><s>File downloaded from MEGA will not listed on the output, as it use different download method. There is some delay between the transfare() function complete until it writes the file. I don't know how long the delay is.</s><br/>☝️Fixed in <a href="fe6feafc07fbbe3efd2883b33855f8d66b5f89ea">v1.1.0</a>
454
+ <li><s>Sometimes colab cannot be shut down with a single click on the stop button. Hitting the button several times will raise a KeyboardInterrupt and forcely stopping the cell.</s><br/>☝️Seems like fixed somewhere on <a href="0acffad539179b9f6cf4b76581818b62c93a8551">v3.0.0</a> and after
455
+ </ul>
456
+ </ol>
457
+ </details>
458
+
459
+ ## Contributing
460
+
461
+ <!-- I just learned python few months ago, by just looking at other peoples project and sometimes asking ChatGPT. Gradio is new for me. I literally just learn it in one day to make this extension, so expect some bugs. -->
462
+
463
+ [I no longer actively maintain this project](https://github.com/etherealxx/batchlinks-webui/blob/main/regardingthisrepo.md). if you have a suggestion or code-fixing that would make this better, please notify me in the issue tab, fork the repo and create a pull request. <br/>
464
+ But still, a star on this project would be nice. Thanks again.
465
+
466
+ <!--
467
+ 1. Fork the Project
468
+ 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
469
+ 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
470
+ 4. Push to the Branch (`git push origin feature/AmazingFeature`)
471
+ 5. Open a Pull Request
472
+
473
+ <p align="right">(<a href="#readme-top">back to top</a>)</p>
474
+ -->
475
+
476
+ ## Contact
477
+
478
+ My Email - [email protected] <br/>
479
+ My Youtube - [MJ Devlog](https://www.youtube.com/@mjdevlog)
480
+
481
+ ## Acknowledgments
482
+
483
+ - [Camenduru's Webui Huggingface](https://github.com/camenduru/stable-diffusion-webui-huggingface) - I use his extension as my base (my gradio skill sucks T.T)
484
+ - [SD Civitai Browser](https://github.com/Vetchems/sd-civitai-browser) - Civit download script
485
+ - [Mega-to-Google-Drive](https://github.com/menukaonline/Mega-to-Google-Drive) - MEGA download script
486
+ - [MEGAcmd](https://github.com/meganz/MEGAcmd)
487
+ - [mediafire-dl](https://github.com/Juvenal-Yescas/mediafire-dl)
488
+ - [Pixeldrain downloader](https://github.com/FayasNoushad/Pixeldrain) - Inspiration for Pixeldrain download method
489
+ - [wget-windows](https://github.com/webfolderio/wget-windows)
490
+ - [aria2-static-builds](https://github.com/q3aql/aria2-static-builds)
491
+ - [7zr, 7z](https://www.7-zip.org)
Jac12/extensions/batchlinks-webui-main/howtogetthedirectlinks.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How to get the direct links
2
+
3
+ Jump to: [Huggingface](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#huggingface) - [Civit AI](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#civit-ai) - [MEGA](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#mega) - [Discord](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#discord-attachments) - [Github (Extension)](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#webui-extension-github-repo-link) - [Github (Raw File)](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#raw-file-from-github) - [Github (Release File)](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#release-file-from-github) - [Google Drive](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#google-drive) - [Pixeldrain](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#pixeldrain) - - [Mediafire](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#mediafire) - [Anonfiles](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#anonfiles) - [Dropbox](https://github.com/etherealxx/batchlinks-webui/blob/main/howtogetthedirectlinks.md#dropbox)
4
+
5
+ ## Huggingface
6
+
7
+ Locate the model page, click on `files` tab.<br/><br/>
8
+ <img src="images/huggingface1.jpg" alt="hg1" height="600" width="966"><br/><br/>
9
+ choose the model you want, **right click** the arrow button beside the LFS logo, then click `copy link address`.<br/><br/>
10
+ <img src="images/huggingface2.jpg" alt="hg2" height="600" width="970"><br/><br/>
11
+
12
+ ## Civit AI
13
+
14
+ There are two ways to download links from Civit. The model page link method, and the direct link method. The model page link method **will automatically** choose the directory of the saved model without even using hashtag, **except** if you want to put Lora into `#addnetlora` directory, you can use that hashtag. You still need to define the output directory when using the direct link method.
15
+
16
+ ### Model Page Link Method
17
+
18
+ Locate the desired model on the main page of Civitai, **right click** the model thumbnail, then click `copy link address`.<br/><br/>
19
+ <img src="images/civitnew1.jpg" alt="cv" height="600" width="737"><br/><br/>
20
+ You can also click the thumbnail first then copy the link.<br/><br/>
21
+ <img src="images/civitnew2.jpg" alt="cv" height="600" width="754"><br/><br/>
22
+ The advantage of this method is you will also get the model preview images that can shows up on the latest version of [stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui).
23
+
24
+ ### Direct Link Method
25
+
26
+ Locate the model page, **right click** the huge blue button, then click `copy link address`.<br/><br/>
27
+ <img src="images/civit1.jpg" alt="cv" height="600" width="967"><br/><br/>
28
+ With this method, you can also choose model variation, by clicking the dropdown icon on the blue button, then **right click** the desired model an.<br/><br/>
29
+ <img src="images/civit2.jpg" alt="cv" height="600" width="842"> <br/><br/>
30
+
31
+ ## MEGA
32
+
33
+ Locate the model you wanted, **right click** the item, click `copy link address`.<br/><br/>
34
+ <img src="images/mega1.jpg" alt="mg1" height="600" width="987"><br/><br/>
35
+ Click the huge green copy button.<br/><br/>
36
+ <img src="images/mega2.jpg" alt="mg2" height="600" width="963"><br/><br/>
37
+
38
+ ## Discord attachments
39
+
40
+ Locate the file you wanted, **right click** the download icon, then click `get link`.<br/><br/>
41
+ <img src="images/discord1.jpg" alt="mg1" height="600" width="930"><br/><br/>
42
+ Then click `copy link`.<br/><br/>
43
+ <img src="images/discord2.jpg" alt="mg2" height="600" width="963"><br/><br/>
44
+
45
+ ## webui Extension (Github repo link)
46
+
47
+ Locate the extension's repository, then copy the repository link.<br/><br/>
48
+ <img src="images/github.jpg" alt="mg1" height="600" width="831"><br/><br/>
49
+
50
+ Extension **will automatically** cloned/downloaded on `extensions` directory of webui without the need of hashtag.
51
+
52
+ ## Raw file from Github
53
+
54
+ Locate the file's repository, then click the desired file.<br/><br/>
55
+ <img src="images/githubdirect1.png" alt="mg1" width="831"><br/><br/>
56
+ Then **right click** the text that says `raw` **or** `download`, and click `copy link address`<br/><br/>
57
+ <img src="images/githubdirect2.png" alt="mg1" width="831"><br/><br/>
58
+ <img src="images/githubdirect3.png" alt="mg1" width="831"><br/><br/>
59
+
60
+ ## Release file from Github
61
+
62
+ Locate the file's repository, then click release section.<br/><br/>
63
+ <img src="images/githubrelease1.png" alt="mg1" width="831"><br/><br/>
64
+ Then **right click** the desired assets (the blue text), and click `copy link address`<br/><br/>
65
+ <img src="images/githubrelease2.png" alt="mg1" width="831"><br/><br/>
66
+
67
+ ## Google Drive
68
+
69
+ Whether you own the file or not, make sure the file is public. If you owns the file, right click on the file on Google Drive, then click `get link` (or `share`).<br/><br/>
70
+ <img src="images/drive1.png" alt="mg1" width="400"><br/><br/>
71
+ Then change the access to `anyone with thelink`, and copy the link by clicking the button<br/><br/>
72
+ <img src="images/drive2.png" alt="mg1" width="831"><br/><br/>
73
+
74
+ These are some valid google drive link patterns that works:
75
+ ```
76
+ https://drive.google.com/file/d/1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO/view
77
+ https://drive.google.com/file/d/1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO/view?usp=share_link
78
+ https://drive.google.com/u/0/uc?id=1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO&export=download
79
+ https://drive.google.com/u/0/uc?id=1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO&export=download&confirm=t
80
+ ```
81
+ ## Pixeldrain
82
+
83
+ Just click the `copy link` button, or just copy the link.<br/><br/>
84
+ <img src="images/pixeldrain.png" alt="mg1" width="800"><br/><br/>
85
+
86
+ ## Anonfiles
87
+
88
+ **Don't** right click the download button. Instead, copy the link on the url bar<br/><br/>
89
+ <img src="images/anonfiles.png" alt="mg1" width="800"><br/><br/>
90
+
91
+ ## Mediafire
92
+
93
+ When you arrived on this page, click the chain link icon to copy link, or just copy the link above<br/><br/>
94
+ <img src="images/mediafire.png" alt="mg1" width="800"><br/><br/>
95
+
96
+ Don't forget that when being pasted, the link must starts with `https://www.mediafire.com/file/` (notice the triple W)
97
+
98
+ ## Dropbox
99
+
100
+ When the item is yours, go to the homepage, and click copy link, the link will be copied to your clipboard<br/><br/>
101
+ <img src="images/dropbox1.png" alt="mg1" width="600"><br/><br/>
102
+
103
+ Or, if you got into this screen, just copy the link above, with the link ends with either `?dl=0` or `?dl=1`<br/><br/>
104
+ <img src="images/dropbox2.png" alt="mg1" width="500"><br/><br/>
Jac12/extensions/batchlinks-webui-main/images/anonfiles.png ADDED

Git LFS Details

  • SHA256: 81762605f909b765261477b576eb54c2a82c392d46f9586c6a5ee0593540e20f
  • Pointer size: 130 Bytes
  • Size of remote file: 94.7 kB
Jac12/extensions/batchlinks-webui-main/images/batchlinks_logo.png ADDED

Git LFS Details

  • SHA256: 01d8c6884a8193e7c5158a133bae294205561f8f42c3c9111d22ad6121944d58
  • Pointer size: 130 Bytes
  • Size of remote file: 69.3 kB
Jac12/extensions/batchlinks-webui-main/images/cancel.jpg ADDED

Git LFS Details

  • SHA256: e6bd34ef949fb6e5e5cc754444872a11a06ac91e5e3791788b90c2b4e4069d45
  • Pointer size: 130 Bytes
  • Size of remote file: 38.6 kB
Jac12/extensions/batchlinks-webui-main/images/checkconsole1.jpg ADDED

Git LFS Details

  • SHA256: 86374d5488bd1e2dc945170f38908c1ba5467618a73f9b746dda6380158598af
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
Jac12/extensions/batchlinks-webui-main/images/checkconsole2.jpg ADDED

Git LFS Details

  • SHA256: 6c9cbc2c9cba207b6195cee0e6f0eaf1bf4e33c1ee6008310ebcc9384e12831a
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
Jac12/extensions/batchlinks-webui-main/images/civit1.jpg ADDED

Git LFS Details

  • SHA256: b846b90588b1363a06ff7cd2049a053aae931b8e95e1267ea0d960273abb9ea5
  • Pointer size: 131 Bytes
  • Size of remote file: 277 kB
Jac12/extensions/batchlinks-webui-main/images/civit2.jpg ADDED

Git LFS Details

  • SHA256: 022e9983f462512527875eb05966149c74f9fdc25a10e89d2b9d66d0c9cc48c3
  • Pointer size: 131 Bytes
  • Size of remote file: 355 kB
Jac12/extensions/batchlinks-webui-main/images/civitnew1.jpg ADDED

Git LFS Details

  • SHA256: 6471a911d1fa71f0e52bfee658acc90f183415abae31df82f6965610acdbd6ff
  • Pointer size: 131 Bytes
  • Size of remote file: 115 kB
Jac12/extensions/batchlinks-webui-main/images/civitnew2.jpg ADDED

Git LFS Details

  • SHA256: 6d4d31342e7245e56a58d01001a7a54de17e778976d96a83cefc99fe98efd398
  • Pointer size: 131 Bytes
  • Size of remote file: 153 kB
Jac12/extensions/batchlinks-webui-main/images/discord1.jpg ADDED

Git LFS Details

  • SHA256: 9e3dfa6e4f938c7425394d91fad685277c150b8cca67a418c53a8f4e6545a535
  • Pointer size: 131 Bytes
  • Size of remote file: 222 kB
Jac12/extensions/batchlinks-webui-main/images/discord2.jpg ADDED

Git LFS Details

  • SHA256: ed1cefc671f818413caf6b036c3d52b70a8eb061e61ad452a25086df6ecff3ae
  • Pointer size: 131 Bytes
  • Size of remote file: 282 kB
Jac12/extensions/batchlinks-webui-main/images/downloaded.jpg ADDED

Git LFS Details

  • SHA256: 5826e8f877ee50514d140d8eb61132ef60e5d328be8e1622120272cfc2ec1858
  • Pointer size: 131 Bytes
  • Size of remote file: 135 kB
Jac12/extensions/batchlinks-webui-main/images/drive1.png ADDED

Git LFS Details

  • SHA256: 51f986ee3eb2bc01640d10abe7ae44a0ccf62882007aa606fd8d05d31d2011a8
  • Pointer size: 130 Bytes
  • Size of remote file: 25.5 kB
Jac12/extensions/batchlinks-webui-main/images/drive2.png ADDED

Git LFS Details

  • SHA256: e6304bb05d9a69781db90c5cfd7b6bde378b4c413592a87aa9bfae35a47b0d8d
  • Pointer size: 130 Bytes
  • Size of remote file: 67.4 kB
Jac12/extensions/batchlinks-webui-main/images/dropbox1.png ADDED

Git LFS Details

  • SHA256: 250137edcce0a3a64fccd94d866e139d0f1c3a27c3e05a6bfa5f98a06f6f8b41
  • Pointer size: 130 Bytes
  • Size of remote file: 36.7 kB
Jac12/extensions/batchlinks-webui-main/images/dropbox2.png ADDED

Git LFS Details

  • SHA256: 9f4afaac83c68dd9a7fa4e20fc1b65b663ca8b9fbf3ca68d4d318616d09d60aa
  • Pointer size: 130 Bytes
  • Size of remote file: 24.8 kB
Jac12/extensions/batchlinks-webui-main/images/example.jpg ADDED

Git LFS Details

  • SHA256: 667daae167da164a85deec0d81cc82eb0f9c97d5fc60f5b1afdd574d8a3406a2
  • Pointer size: 131 Bytes
  • Size of remote file: 305 kB
Jac12/extensions/batchlinks-webui-main/images/ext_installer.jpg ADDED

Git LFS Details

  • SHA256: f408f248237131cc2d846e6b8b923e7dea7f4e2c734a5638ad85a717ece4e568
  • Pointer size: 130 Bytes
  • Size of remote file: 81.5 kB
Jac12/extensions/batchlinks-webui-main/images/github.jpg ADDED

Git LFS Details

  • SHA256: ea289b6ddbfeb28624ec47513a73b85beee06f4fd3dd5a4d8bc4482d6ed36ecd
  • Pointer size: 131 Bytes
  • Size of remote file: 131 kB
Jac12/extensions/batchlinks-webui-main/images/githubdirect1.png ADDED

Git LFS Details

  • SHA256: 617ac0556ab4caf0c7313694628199f1a33f9e6fa24b667c85294ff5404964c0
  • Pointer size: 130 Bytes
  • Size of remote file: 48.2 kB
Jac12/extensions/batchlinks-webui-main/images/githubdirect2.png ADDED

Git LFS Details

  • SHA256: 472a22bfbb0daa15dfef5fa021bebd386300407fc7fff6ec034dc97c5522cec9
  • Pointer size: 130 Bytes
  • Size of remote file: 29.5 kB
Jac12/extensions/batchlinks-webui-main/images/githubdirect3.png ADDED

Git LFS Details

  • SHA256: a36eb714cc6fc5d94a899e1345477fb8c8a6738e1aefb267ab681aea06621eef
  • Pointer size: 130 Bytes
  • Size of remote file: 32.2 kB
Jac12/extensions/batchlinks-webui-main/images/githubrelease1.png ADDED

Git LFS Details

  • SHA256: aaa04375d0e27bcc59a9bc0268b57409f5c56ac22d844641c355d9b4f9b32017
  • Pointer size: 131 Bytes
  • Size of remote file: 108 kB
Jac12/extensions/batchlinks-webui-main/images/githubrelease2.png ADDED

Git LFS Details

  • SHA256: b2ea62826c3d67d84581b923ab8bfe50b60fd2d31edde642ec39eae80bb23760
  • Pointer size: 130 Bytes
  • Size of remote file: 48.3 kB
Jac12/extensions/batchlinks-webui-main/images/gradiooff1.jpg ADDED

Git LFS Details

  • SHA256: 1c2b9f041c0df0b027583313f4f5df8ffa69f4b2867998cb2dd0597421ad23af
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
Jac12/extensions/batchlinks-webui-main/images/gradiooff2.jpg ADDED

Git LFS Details

  • SHA256: 5afa84326d4707b2302594023b88dcdd4922ad2f78bf68d6d100ed18b6c659b9
  • Pointer size: 131 Bytes
  • Size of remote file: 164 kB
Jac12/extensions/batchlinks-webui-main/images/huggingface1.jpg ADDED

Git LFS Details

  • SHA256: 15d43e32af58d99b618c88c4db9b360a06b1f01eb8caa4b712c8c6c691007e05
  • Pointer size: 131 Bytes
  • Size of remote file: 182 kB
Jac12/extensions/batchlinks-webui-main/images/huggingface2.jpg ADDED

Git LFS Details

  • SHA256: aeb5118fd4f11cce6b4101e3cfa87b319e122577c02f09369777f7cdaaecabf3
  • Pointer size: 131 Bytes
  • Size of remote file: 246 kB
Jac12/extensions/batchlinks-webui-main/images/logging.jpg ADDED

Git LFS Details

  • SHA256: 11da4c09501c4aa58cb835982e515f82e18e0790ca859add366461b5293bb445
  • Pointer size: 130 Bytes
  • Size of remote file: 64.4 kB
Jac12/extensions/batchlinks-webui-main/images/mediafire.png ADDED

Git LFS Details

  • SHA256: 9d78181c735d75e167d89ba79a6c5a48c839f29d2227c05797f32159b9620ff0
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
Jac12/extensions/batchlinks-webui-main/images/mega1.jpg ADDED

Git LFS Details

  • SHA256: 1ef3e160387c9fcfd7c93718a66a62303e7e33d65ab35a44631d0724883370d2
  • Pointer size: 131 Bytes
  • Size of remote file: 325 kB
Jac12/extensions/batchlinks-webui-main/images/mega2.jpg ADDED

Git LFS Details

  • SHA256: 2cdbd02fe77fd30d0255b865bf815ecc3555cdaccec092f90748c9e1c83603e9
  • Pointer size: 131 Bytes
  • Size of remote file: 277 kB
Jac12/extensions/batchlinks-webui-main/images/pastebin.png ADDED

Git LFS Details

  • SHA256: e3a98e4da5ab0fd87bf9fa9ebd1ca0cc439c3b8ca12bc7f1f3045e78ba92d09e
  • Pointer size: 130 Bytes
  • Size of remote file: 88.5 kB
Jac12/extensions/batchlinks-webui-main/images/pixeldrain.png ADDED

Git LFS Details

  • SHA256: a1b4432475cffc9768dff806a3666099078e6d3f44f72d580256b223bf556ab8
  • Pointer size: 131 Bytes
  • Size of remote file: 228 kB
Jac12/extensions/batchlinks-webui-main/images/progress.jpg ADDED

Git LFS Details

  • SHA256: 966b782082062965ed63098661bc295dd3ed4312916f972cff6249fed227581c
  • Pointer size: 130 Bytes
  • Size of remote file: 26.9 kB
Jac12/extensions/batchlinks-webui-main/images/python.png ADDED

Git LFS Details

  • SHA256: 8c4fd48ec3ed8553b058d9df807c02ed712a0e21b22cce212a74018a976d2074
  • Pointer size: 131 Bytes
  • Size of remote file: 165 kB
Jac12/extensions/batchlinks-webui-main/images/queue.jpg ADDED

Git LFS Details

  • SHA256: 0be2bdb19ee7e60688d6a685e0493da86aaf1d3dafda1493c5e84b8f77a14bea
  • Pointer size: 129 Bytes
  • Size of remote file: 9.58 kB
Jac12/extensions/batchlinks-webui-main/images/rename.jpg ADDED

Git LFS Details

  • SHA256: 7a76c383bfdee8d908f8281225690a939db22ae7ef4414948f5fb6cb4e657250
  • Pointer size: 130 Bytes
  • Size of remote file: 33.4 kB
Jac12/extensions/batchlinks-webui-main/images/sdless.png ADDED

Git LFS Details

  • SHA256: 8defc9b1b301985d5fa522e167a4fbf163c70b624356bf3279aef4ddf1044f52
  • Pointer size: 130 Bytes
  • Size of remote file: 26.2 kB
Jac12/extensions/batchlinks-webui-main/images/shell1.jpg ADDED

Git LFS Details

  • SHA256: d76e5e92ce7479b602eba2a4f00063e537689403e29cfc460178981014313d49
  • Pointer size: 130 Bytes
  • Size of remote file: 13.2 kB
Jac12/extensions/batchlinks-webui-main/images/shell2.jpg ADDED

Git LFS Details

  • SHA256: 5a46c7e0d687a8318177a983ee27a67b864bc897f2810e000fab7d8d20d532eb
  • Pointer size: 130 Bytes
  • Size of remote file: 14 kB
Jac12/extensions/batchlinks-webui-main/install.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import launch
2
+ import platform
3
+
4
+ if platform.system() == "Windows":
5
+ if not launch.is_installed("gdown"):
6
+ launch.run_pip("install gdown", "requirements for Batchlinks Download extension")
7
+
8
+ if not launch.is_installed("wget"):
9
+ launch.run_pip("install wget", "requirements for Batchlinks Download extension")
Jac12/extensions/batchlinks-webui-main/javascript/notification.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ let prevTextAreaValue = '';
2
+ let isTextAreaVisible = true;
3
+
4
+ onUiUpdate(function() {
5
+ const textArea = gradioApp().querySelectorAll('#tab_batchlinks textarea')?.[2];
6
+ const textAreaValue = textArea ? textArea.value : '';
7
+
8
+ if (isTextAreaVisible && textAreaValue.startsWith('All done!') && prevTextAreaValue !== textAreaValue) {
9
+ gradioApp().querySelector('#finish_audio audio')?.play();
10
+ }
11
+
12
+ if (!textArea) {
13
+ isTextAreaVisible = false;
14
+ } else if (textArea.style.display !== 'none') {
15
+ isTextAreaVisible = true;
16
+ }
17
+
18
+ prevTextAreaValue = textAreaValue;
19
+ });
Jac12/extensions/batchlinks-webui-main/misc/markydynamictohtml.py ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #tableofcontentmaker
2
+ intro = """
3
+ <details>
4
+ <summary>Table of Contents</summary>
5
+ <ol>
6
+ """
7
+
8
+ outro = """
9
+ </li>
10
+ </ol>
11
+ </details>
12
+ """
13
+
14
+ tableofcontents = """
15
+ - [Installation](#installation)
16
+ - [About](#about)
17
+ - [Example](#example)
18
+ - [Syntax](#syntax)
19
+ - [Hashtag](#hashtag)
20
+ - [Links](#links)
21
+ - [Double Hashtag](#double-hashtag)
22
+ - [Others](#others)
23
+ - [Valid Hashtags](#valid-hashtags)
24
+ - [How to get the direct links (Important!)](#how-to-get-the-direct-links-important)
25
+ - [Huggingface's download method](#huggingfaces-download-method)
26
+ - [Additional Syntax](#additional-syntax)
27
+ - [Rename Downloaded Files](#rename-downloaded-files)
28
+ - [Running Shell Commands](#running-shell-commands)
29
+ - [Extract Everyting (`@extract`)](#extract-everyting-extract)
30
+ - [Custom Hashtag Path (`@new`)](#custom-hashtag-path-new)
31
+ - [Custom Direct Link Download with `aria2` (`@aria2`)](#custom-direct-link-download-with-aria2-aria2)
32
+ - [Gradio Queue](#gradio-queue)
33
+ - [Logging](#logging)
34
+ - [Cancel](#cancel)
35
+ - [Progress Bar](#progress-bar)
36
+ - [Changes if `--gradio-queue` is off](#changes-if---gradio-queue-is-off)
37
+ - [Other Features](#other-features)
38
+ - [Notification](#notification)
39
+ - [Copy From Pastebin](#copy-from-pastebin)
40
+ - [SDless mode](#sdless-mode)
41
+ - [Local Installation Support](#local-installation-support)
42
+ - [Debug Mode (Developer only)](#debug-mode-developer-only)
43
+ - [Release Notes](#release-notes)
44
+ - [Roadmap](#roadmap)
45
+ - [Known Bugs](#known-bugs)
46
+ - [Known Fixed Bugs](#known-fixed-bugs)
47
+ - [Contributing](#contributing)
48
+ - [Contact](#contact)
49
+ - [Acknowledgments](#acknowledgments)
50
+ """
51
+
52
+ def mlineprint(toprint):
53
+ if toprint[-1] == '\n':
54
+ toprint = toprint[:-1]
55
+ print(toprint.replace('\n', '', 1))
56
+
57
+
58
+ def writehtmllist(space, namehead, hashtaghead):
59
+ spaces = ""
60
+ for _ in range(space):
61
+ spaces += " "
62
+ if initialspace >= 2:
63
+ return spaces + f'<ul><li><a href="{hashtaghead}">{namehead}</a></li></ul>'
64
+ else:
65
+ return spaces + f'<li><a href="{hashtaghead}">{namehead}</a></li>'
66
+
67
+ if __name__ == "__main__":
68
+ rows = tableofcontents.replace('\n', '', 1).splitlines()#split('\n') # split into a list of rows
69
+ mlineprint(intro)
70
+ for row in rows:
71
+ if not row == '':
72
+ initialspace = 0
73
+ for char in row:
74
+ if char == ' ':
75
+ initialspace += 1
76
+ else:
77
+ break
78
+ extractedrow = row.split("[")
79
+ cuttedrow = extractedrow[1].partition("](")
80
+ headingname = cuttedrow[0]
81
+ headinghashtag = cuttedrow[2].rstrip(")")
82
+ print(writehtmllist(initialspace+4, headingname, headinghashtag))
83
+ # print(cuttedrow[0])
84
+ # print(cuttedrow[2].rstrip(")"))
85
+ # hashtagrow = row.partit
86
+ mlineprint(outro)
Jac12/extensions/batchlinks-webui-main/notification.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3b9078c4f8804cbd3817e5d8d873d6fd3dc9c288ecc891958adf73447715fa0
3
+ size 37740