Greasy Fork is available in English.

Twitter Media Downloader

Save Video/Photo by One-Click.

< Opiniones de Twitter Media Downloader

Puntuación: Pasable; el script funciona, pero tiene carencias importantes

§
Publicado: 25/5/2024
Editado: 25/5/2024

(solution here) It seems the script is not working for certain videos. The field "extended_entities" is missing from the legacy field, which prevents getting the video url. I made this workaround to get the extended_entities from another field:

Before (line 143):


  let medias = tweet.extended_entities && tweet.extended_entities.media;
  if (index) medias = [medias[index - 1]];

After:


  let medias = tweet.extended_entities && tweet.extended_entities.media;
  if(medias == undefined){
      medias = JSON.parse(json.card.legacy.binding_values[0].value.string_value).media_entities;
      medias = Object.values(medias);
  }
  if (index) medias = [medias[index - 1]];

§
Publicado: 29/5/2024

QUESTION: Does this fix the extension not being able to download multiple videos? It seems bugged and it takes a really long time to download twitter posts more than 1 video.

Publicar respuesta

Inicia sesión para responder.