AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
504 stars 81 forks source link

[Feature Request] - Short media into folders according to the type of the media they are #106

Closed Sohzph closed 2 years ago

Sohzph commented 2 years ago

Description

Please add a function that allows to download the posts without them being inside folders and that instead they are sorted into folders according to the type of media they are (images, videos etc.)

After I finish downloading everything, I have to extract all the images from all the folders, then create normally two folders (for images and for videos) manually and it would be great if all this was done automatically.

Additional comments

It is not a development priority but it would certainly do a great favor to the user's quality of life :)

afterdelight commented 2 years ago

just remove {title} from directory pattern. it will partially solve your problem

Sohzph commented 2 years ago

just remove {title} from directory pattern. it will partially solve your problem

Where's the directory pattern?

afterdelight commented 2 years ago

show me your arguments setting

Sohzph commented 2 years ago

show me your arguments setting

I didn't put any arguments, I just ran it from a PS terminal, something like:

PS C:\Users\sohzp\AppData\Local\kemono-dl> python kemono-dl.py --cookies "cookie.txt" --links https://kemono.party/...

And from there, everything is downloaded in the Downloads folder inside the profile folder, then 2967283723 subfolders which each one inside contains the videos or images, what I want is that these 39468374 subfolders are not created and directly everything is inside the profile folder.

afterdelight commented 2 years ago

add this argument --dirname-pattern {site}/{service}/{username} [{user_id}] Now it will download to one profile folder only and doesnt have subfolders

Sohzph commented 2 years ago

add this argument --dirname-pattern {site}/{service}/{username} [{user_id}] Now it will download to one profile folder only and doesnt have subfolders

Thanks, but it gives me an error:

python.exe : The command parameter has already been specified.
On line: 1 Character: 1
+ python kemono-dl.py --cookies "coomer.party_cookies.txt" --links http ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [], ParameterBindingException
    + FullyQualifiedErrorId : ParameterSpecifiedAlready
afterdelight commented 2 years ago

sorry i meant --dirname-pattern "{site}/{service}/{username} [{user_id}]"

forgot to add the quotes

afterdelight commented 2 years ago

on what os are you

Sohzph commented 2 years ago

sorry i meant --dirname-pattern "{site}/{service}/{username} [{user_id}]" forgot to add the quotes

It worked "more or less", but those 29837237823 folders are still there. I would like that inside the creator's folder all the images and videos are already there.

image

on what os are you

I'm on Windows, but I've used this in Ubuntu as well.

afterdelight commented 2 years ago

add more of this --filename-pattern "[{published}] [{id}] [{index}] {filename}.{ext}"

afterdelight commented 2 years ago

or you can download my fork and then replace the files in your src folder

https://github.com/afterdelight/kemono-dl/tree/patched

now no need to add folders and filenames arguments. only need cookies and link arguments.

Sohzph commented 2 years ago

add more of this --filename-pattern "[{published}] [{id}] [{index}] {filename}.{ext}"

Thanks, now it works 👍

or you can download my fork and replace the file in your src folder

https://github.com/afterdelight/kemono-dl/blob/set-default-arguments/src/args.py

now no need to add folders and filenames arguments. only need cookies and link arguments.

I prefer the arguments, your version downloads .json and .html files xd I just want the images and videos.

afterdelight commented 2 years ago

well you can set download json and content from true to false in line 50 and line 58 https://github.com/afterdelight/kemono-dl/blob/set-default-arguments/src/args.py

AlphaSlayer1964 commented 2 years ago

This is not a feature I will be adding. I recommend to use the filename patterns to download everything to a single folder and using the windows file explorer to sort by extensions.