Skip to content

Commit

Permalink
📖v3.0.0 Readme Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
etherealxx committed Mar 17, 2023
1 parent 96c883a commit 176e1d1
Show file tree
Hide file tree
Showing 14 changed files with 63 additions and 7 deletions.
62 changes: 59 additions & 3 deletions howtogetthedirectlinks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# How to get the direct links

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)

## Huggingface

Locate the model page, click on `files` tab.<br/><br/>
Expand All @@ -9,7 +11,7 @@ choose the model you want, **right click** the arrow button beside the LFS logo,

## Civit AI

There are two ways to download links from Civit. The model link method, and the direct link method. The model link method **will automatically** choose the directory of the saved model without even using hashtag. You still need to define the output directory when using the direct link method.
There are two ways to download links from Civit. The model link method, and the direct link method. The model 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.

### Model Link Method

Expand All @@ -26,7 +28,7 @@ Locate the model page, **right click** the huge blue button, then click `copy li
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/>
<img src="images/civit2.jpg" alt="cv" height="600" width="842"> <br/><br/>

## Mega
## MEGA

Locate the model you wanted, **right click** the item, click `copy link address`.<br/><br/>
<img src="images/mega1.jpg" alt="mg1" height="600" width="987"><br/><br/>
Expand All @@ -40,9 +42,63 @@ Locate the file you wanted, **right click** the download icon, then click `get l
Then click `copy link`.<br/><br/>
<img src="images/discord2.jpg" alt="mg2" height="600" width="963"><br/><br/>

## webui Extension
## webui Extension (Github repo link)

Locate the extension's repository, then copy the repository link.<br/><br/>
<img src="images/github.jpg" alt="mg1" height="600" width="831"><br/><br/>

Extension **will automatically** cloned/downloaded on `extensions` directory of webui without the need of hashtag.

## Raw file from Github

Locate the file's repository, then click the desired file.<br/><br/>
<img src="images/githubdirect1.png" alt="mg1" width="831"><br/><br/>
Then **right click** the text that says `raw` **or** `download`, and click `copy link address`<br/><br/>
<img src="images/githubdirect2.png" alt="mg1" width="831"><br/><br/>
<img src="images/githubdirect3.png" alt="mg1" width="831"><br/><br/>

## Release file from Github

Locate the file's repository, then click release section.<br/><br/>
<img src="images/githubrelease1.png" alt="mg1" width="831"><br/><br/>
Then **right click** the desired assets (the blue text), and click `copy link address`<br/><br/>
<img src="images/githubrelease2.png" alt="mg1" width="831"><br/><br/>

## Google Drive

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/>
<img src="images/drive1.png" alt="mg1" width="400"><br/><br/>
Then change the access to `anyone with thelink`, and copy the link by clicking the button<br/><br/>
<img src="images/drive2.png" alt="mg1" width="831"><br/><br/>

These are some valid google drive link patterns that works:
```
https://drive.google.com/file/d/1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO/view
https://drive.google.com/file/d/1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO/view?usp=share_link
https://drive.google.com/u/0/uc?id=1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO&export=download
https://drive.google.com/u/0/uc?id=1-UbwFtSzKTQkvjdPiKLCejH0Ztq9UJFO&export=download&confirm=t
```
## Pixeldrain

Just click the `copy link` button, or just copy the link.<br/><br/>
<img src="images/pixeldrain.png" alt="mg1" width="800"><br/><br/>

## Anonfiles

**Don't** right click the download button. Instead, copy the link on the url bar<br/><br/>
<img src="images/anonfiles.png" alt="mg1" width="800"><br/><br/>

## Mediafire

When you arrived on this page, click the chain link icon to copy link, or just copy the link above<br/><br/>
<img src="images/mediafire.png" alt="mg1" width="800"><br/><br/>

Don't forget that when being pasted, the link must starts with `https://www.mediafire.com/file/` (notice the triple W)

## Dropbox

When the item is yours, go to the homepage, and click copy link, the link will be copied to your clipboard<br/><br/>
<img src="images/dropbox1.png" alt="mg1" width="600"><br/><br/>

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/>
<img src="images/dropbox2.png" alt="mg1" width="500"><br/><br/>
Binary file added images/anonfiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/drive1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/drive2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dropbox1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dropbox2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/githubdirect1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/githubdirect2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/githubdirect3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/githubrelease1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/githubrelease2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mediafire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pixeldrain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions scripts/batchlinks-downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,17 +1755,17 @@ def on_ui_tabs():
)
# sidetext = gr.Markdown(knowmoretext, visible=True)
finish_audio = gr.Audio(interactive=False, value=os.path.join(extension_dir, "notification.mp3"), elem_id="finish_audio", visible=False)
# gr.Markdown(
# f"""
# <center><p style="font-size: 14px;">Current default save directory: {modelpath}</p></center>
# """)
with gr.Accordion("List of Every Hashtags and its Path", open=False, visible=False) as bottomlist:
bottomtable = gr.DataFrame(
buildarrayofhashtags('bottom'),
headers=["hashtag", "path"],
datatype=["str", "str"],
interactive=False,
)
gr.Markdown(
f"""
<center><p style="font-size: 12px; color: gray">Made with ❤️ by <a href="https://github.com/etherealxx">etherealxx</a></p></center>
""")
helphider.change(hidehelp, helphider, outputs=[introduction, knowmore])
uistretcher.change(stretchui, uistretcher, outputs=[boxtohide, rightlist, bottomlist])
#batchlinks.load(debug, output=debug_txt, every=1)
Expand Down

0 comments on commit 176e1d1

Please sign in to comment.