Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier way to bulk-add comics #56

Open
shirgoldbird opened this issue Aug 30, 2021 · 1 comment
Open

Easier way to bulk-add comics #56

shirgoldbird opened this issue Aug 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shirgoldbird
Copy link

As a comic_git user, when I add many comics at once to my site, I want to have a quick way to do so.

Especially when users are just getting started with comic_git, they may have a large backlog of work they want added. For example, last night I needed to create an art gallery with ~70 pieces. Creating all the folders and info.ini files would have taken quite a while by hand, so I put together a bash script to do it:

cd Concept_Art
for x in ./*.png; do
  filename="$x"
  filename_no_extension="${x%.*}"
  mkdir "${filename_no_extension}" && mv "${filename}" "${filename_no_extension}"
  cd "${filename_no_extension}"
  touch info.ini
  echo "Title = ${filename_no_extension//.\/}" >> info.ini
  echo "Post date = August 29, 2021" >> info.ini
  echo "Filename = ${filename//.\/}" >> info.ini
  echo "Alt text = " >> info.ini
  cd ..
done

Maybe something similar could be provided as one of the Python helpers? I'm not sure if there's a simpler or less technical way to provide functionality like this.

@ryanvilbrandt
Copy link
Owner

Thinking out loud here... The bit that I get caught up on for a batch uploader like this is that the user would need to name/organize their comic images ahead of time, so that any script to auto-arrange them could grab the files and know which directory to put them in. And that feels like half the work already done.

Another issue is that comic_git makes no assumption about the directory names the user uses. Numbered directories are the standard just by accident, but the user could name each directory any arbitrary string and comic_git would still order it properly the comics properly by Post Date.

That said, I could see a batch uploader that just partially solves the problem being useful. Maybe it just creates the directories using a 001, 002... format, and the info.ini files with some default values. It could be configurable to change the formatting slightly, but not by much. It could also create empty post.txt files so the user doesn't have to create them themselves. 🤔

You make a good point about this being very useful for an art gallery, at least. Something that doesn't need the full comic functionality, but rather something to upload an "extra" comic to.

@ryanvilbrandt ryanvilbrandt added the enhancement New feature or request label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants