#Downloading Emotes from 7TV in .gif & .png Files

1 messages · Page 1 of 1 (latest)

paper kestrel
#

I have a script that’s supposed to download all emotes automatically. If the emote is animated, it saves as a .gif, and if it’s static, it saves as a .png.

The problem is, 7TV says my emote set has 967 emotes, but the script only downloads 943. I can’t figure out why this is happening.

Is 7TV showing the wrong number of emotes, or is the script missing some of them?

cursive barn
#

This is not an intended use case NAHH

paper kestrel
#

uhh am I in trouble now.. monkaS

#

obviously it might not be a thing that is intended, but I still wanna know why its not getting all emotes OMEGALUL

minor fulcrum
#

can you check which emotes are missing?

#

https://7tv.io/v3/emote-sets/<id> has all the necessary info you need to download all the emotes from the set

paper kestrel
#

Rewrote it and now i got 955 emotes, so thats progress. But there is still 12 missing then.. Hmm

minor fulcrum
#

can you link my your emote set?

paper kestrel
#

It doesnt seem to be any emotes that are deleted in the set either

minor fulcrum
#

since you have the name_changes.txt
are you able to find a few missing emotes

paper kestrel
#

the script should rename the emotes that have ":" or other characters that a filename cant have

minor fulcrum
#

the emotes array from the api does have 967 emotes
so it might be your sanitizeFilename or some filter somewhere that messed up with the downloads

can you log all emotes attempted to download and check how many emotes logged?

#

also are you using the original emote name or the renamed?
e.g. 1 or 2

{
      "id": "01G9N52F28000D5R8HGE37V31V",
      "name": "!vanish", <---- 1 renamed
      "flags": 0,
      "timestamp": 1659641085000,
      "actor_id": "01GBRES6FG0003SYPQPW4C8YRW",
      "data": {
        "id": "01G9N52F28000D5R8HGE37V31V",
        "name": "peepoVanish", <---- 2 original
        "flags": 0,
#

anyways
im checking whether there was emotes had the same name
and the download process overwrote the emote

paper kestrel
#

I think i figured it out, or we did at the same time lol.
There are emotes with different capitalization, like "Police" and "POLICE," so when it downloaded the second POLICE one it replaced the first one

minor fulcrum
#

check if you got both SCHIZO and SCHIZOcat

paper kestrel
#

Ye, got both of them.

I changed the code so that it will rename the second one by appending a 2 at the end of the filename.

minor fulcrum
paper kestrel
#

Thank you for the help man! reapaxL