bitbybyte / fantiadl

Download posts and media from Fantia
MIT License
303 stars 51 forks source link

Flatten directory structure flag #109

Open bitbybyte opened 1 year ago

bitbybyte commented 1 year ago

Offer a flag to flatten post contents out into the fanclub directory rather than being contained within post ID directories

yhtojy commented 1 year ago
    if self.no_directory:
        filepath = filepath.replace(self.directory, "_Origin_").replace(os.sep, " ").replace("_Origin_", self.directory+os.sep)

This can easily do the trick. I'm not familiar with PR system and I changed too many code already.

https://github.com/bitbybyte/fantiadl/commit/68f5b0c4cc50f8bf0659454ff25f61f2ef90af77