Cannot seem to get it to work with non-english channel names
etcy opened this issue · comments
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?
If I do the following:
- Unzip the exported file
- Rename the folder to only english
- Edit channels.json, make the same rename done in (2)
- 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.
- get tmp directory by starting with test mode.
slack-export-viewer -z slack.zip --test
# slack.zip extracted to /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
- remove all existing files and manually unzip to this directory
rm -rf /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964/*
unzip slack.zip -d /tmp/_slackviewer/25cd7aec2905895ca03da1a3a96fb755621e4964
- start the app
slack-export-viewer -z slack.zip