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

Feature request/hack - add channel to file download location? #836

Closed
waynew opened this issue Apr 29, 2021 · 0 comments
Closed

Feature request/hack - add channel to file download location? #836

waynew opened this issue Apr 29, 2021 · 0 comments

Comments

@waynew
Copy link

waynew commented Apr 29, 2021

I feel like this should be pretty easy, but I'd love to hack something in around

filename = "{}_{}{}".format(team.name, f["title"], filetype)
to be able to add the channel name to the file download.

I'm part of a Slack workspace that has a lot of attachments added across dozens of channels. It becomes very difficult to figure out which attachment came from which channel, especially when they're just a bunch of "screenshot from" or "IMG_...." or "imageNNN.jpg"

It shouldn't be too hard to make

for fileout in fileout_iter(os.path.join(download_location, filename)):
look something like

        for fileout in fileout_iter(os.path.join(download_location, channel_name, filename)):

I just couldn't figure out where to get that channel name from 🤔

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant