Skip to content

FrostX-Official/7tv-emote-dumper

Repository files navigation

Note

Доступна версия всего ниже на русском

Emote Dumper Thumbnail

Important

If you want to support this project just press Star and you will favorite this project.

7TV Emote Dumper

7TV Emote Dumper by frost ♡
GitHub Logo GitHub: frostx-official
Discord Logo Discord: fsxg
Twitch Logo Twitch: frostxoff
Telegram Logo Telegram: @frostxoff

This program is made to download emotes from 7TV service
Made specifically to make stickerpacks on Telegram

Edit settings in settings.py file

Based on this code snippet —
https://gist.github.com/a268e881f4ecf6cd1f2af5d4031e993d

All animated emotes will be converted to webm ("video" stickers)
All static emotes will be converted to png ("static" stickers)

Requirements

All modules that need to be installed can be located in requirements.txt file
You can install python on https://python.org and run install-requirements.bat file to automatically install all modules.

Note

Module win10toast is required only if you want to use setting skip_long_emotes with value ct

Long dumping times?

You can experience long emote-sets dumping times if dumper is on slow drives, the slowest part of dumping is converting animated emotes to webM. To fix that problem simply move your dumper install path to faster drive.

win10toast WNDPROC on_destroy return value convertation fix

When getting notifications you can encounter error

WNDPROC return value cannot be converted to LRESULT
TypeError: WPARAM is simple, so must be an int object (got NoneType)

This is a problem with win10toast module itself.
You can fix it manually by changing method on_destroy of ToastNotifier with returning 0 instead of None

def on_destroy(self, hwnd, msg, wparam, lparam):
    nid = (self.hwnd, 0)
    Shell_NotifyIcon(NIM_DELETE, nid)
    PostQuitMessage(0)

    return 0 # None was there

Fixing this issue is unnecessary, but will remove error print in live console (error will not show up in logs even without fix)