From 97afc379e870d6dc1ba22c1321da8363ca117d4d Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 28 Jun 2021 00:47:23 -0500 Subject: [PATCH] Pushed a new snapshot --- doc/changelog.md | 1 + src/application.py | 2 +- src/sessions/twitter/reduce.py | 2 +- updates/snapshots.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/changelog.md b/doc/changelog.md index 66ef6a13..51149f76 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -2,6 +2,7 @@ ## changes in this version +* Added support for Twitter audio and videos: Tweets which contains audio or videos will be detected as audio items, and you can playback those with the regular command to play audios. ([#384,](https://github.com/manuelcortez/TWBlue/pull/384)) * We just implemented some changes in the way TWBlue handles tweets in order to reduce its RAM memory usage [#380](https://github.com/manuelcortez/TWBlue/pull/380): * We reduced the tweets size by storing only the tweet fields we currently use. This should reduce tweet's size in memory for every object up to 75%. * When using the cache database to store your tweets, there is a new setting present in the account settings dialog, in the general tab. This setting allows you to control whether TWBlue will load the whole database into memory (which is the current behaviour) or not. diff --git a/src/application.py b/src/application.py index 41869e88..de258a64 100644 --- a/src/application.py +++ b/src/application.py @@ -9,7 +9,7 @@ if snapshot == False: update_url = 'https://twblue.es/updates/stable.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json' else: - version = "5" + version = "6" update_url = 'https://twblue.es/updates/snapshot.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json' authors = ["Manuel Cortéz", "José Manuel Delicado"] diff --git a/src/sessions/twitter/reduce.py b/src/sessions/twitter/reduce.py index eae64a70..73d8c45e 100644 --- a/src/sessions/twitter/reduce.py +++ b/src/sessions/twitter/reduce.py @@ -4,7 +4,7 @@ from tweepy.models import Status def reduce_tweet(tweet): """ generates a new Tweet model with the fields we currently need, excluding everything else including null values and empty collections. """ - allowed_values = ["created_at", "id", "full_text", "text", "message", "in_reply_to_status_id", "in_reply_to_user_id", "is_quote_status", "lang", "source", "coordinates", "quoted_status_id", ] + allowed_values = ["created_at", "id", "full_text", "text", "message", "in_reply_to_status_id", "in_reply_to_user_id", "is_quote_status", "lang", "source", "coordinates", "quoted_status_id", "extended_entities"] allowed_entities = ["hashtags", "media", "urls", "user_mentions", "polls"] status_dict = {} for key in allowed_values: diff --git a/updates/snapshots.json b/updates/snapshots.json index f12f4a45..1505065f 100644 --- a/updates/snapshots.json +++ b/updates/snapshots.json @@ -1,4 +1,4 @@ -{"current_version": "5", +{"current_version": "6", "description": "Snapshot version.", "date": "unknown", "downloads":