hfaran / slack-export-viewer

A Slack Export archive viewer that allows you to easily view and share your Slack team's export

Home Page:https://pypi.python.org/pypi/slack-export-viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot seem to get it to work with non-english channel names

etcy opened this issue · comments

commented

Only 4 out of 100+ channel names are english for me. So after running this, only the 4 channels appear on the side bar.
I checked the zip file just to be sure. The folders and json are intact. If I view the json file, it shows the folder names correctly (since the JSON is in UTF8).

OS is Windows 10, Japanese ver.

Any ideas?

commented

If I do the following:

  1. Unzip the exported file
  2. Rename the folder to only english
  3. Edit channels.json, make the same rename done in (2)
  4. Create the zip again.

The missing channel now shows correctly (in english).
It's going to be a nightmare to do this manually.

Any suggestions would help. Please?

I found this is caused by the python's zipfile module. I could view channels of non ascii (Japanese) name by following steps.

  1. get tmp directory by starting with test mode.
slack-export-viewer -z slack.zip --test
# slack.zip extracted to /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
  1. remove all existing files and manually unzip to this directory
rm -rf /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964/*
unzip slack.zip -d /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
  1. start the app
slack-export-viewer -z slack.zip