Auto description text in self-published work bot #28

Closed
theopolisme opened this Issue Jun 30, 2013 · 1 comment

1 participant

@theopolisme
Owner

Also, is there any way to make text that is already there go into the "description" parameter, like CommonsHelper does when moving files to commons?

--Jay8g via BRFA 21

@theopolisme
Owner

Theoretically I should be able to use something like

description = contents.split('==')[0].replace('\n',' ')

to get all of the contents before the first section header (if there is one), strip newlines from it, and then save it as the description.

Checking with Jay8g to see if this matches what was requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment