diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a613987..d38ed3c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -85,3 +85,9 @@ v0.1.5 - Update tombstone type of a tweet if it changes - If a tweet gets hidden / deleted, it can become a tombstone without losing its content - Enable support for users that change their handles + +v0.1.6 +------ + +- Add support for `mobile.twitter.com` tweet URLs +- Add basic support for Spaces (i.e., can now basically detect whether a tweet links to a Space or not) diff --git a/cmd/twitter/helpers.go b/cmd/twitter/helpers.go index a48d8d3..a7f741f 100644 --- a/cmd/twitter/helpers.go +++ b/cmd/twitter/helpers.go @@ -1,7 +1,7 @@ package main import ( - _ "embed" + _ "embed" "fmt" "os" "strconv" diff --git a/doc/TODO.txt b/doc/TODO.txt index db01596..6af5801 100644 --- a/doc/TODO.txt +++ b/doc/TODO.txt @@ -17,8 +17,6 @@ TODO: downloading-modes TODO broadcast-cards panic: Unknown card type: 3691233323:periscope_broadcast panic: Unknown card type: 745291183405076480:broadcast -twitter fetch_tweet https://twitter.com/r_w_degen/status/1497672129256566785 => panic: Unknown card type: 3691233323:audiospace - https://twitter.com/pompilivs/status/1497647006445146113 => same TODO consecutive-tombstones Conversation threads with two or more consecutive tombstones don't get scraped correctly diff --git a/persistence/versions.go b/persistence/versions.go index 718cd2d..71fed33 100644 --- a/persistence/versions.go +++ b/persistence/versions.go @@ -7,7 +7,7 @@ import ( "offline_twitter/terminal_utils" ) -const ENGINE_DATABASE_VERSION = 11 +const ENGINE_DATABASE_VERSION = 12 type VersionMismatchError struct { EngineVersion int @@ -68,6 +68,11 @@ var MIGRATIONS = []string{ alter table users add column is_id_fake boolean default 0;`, `delete from urls where rowid in (select urls.rowid from tweets join urls on tweets.id = urls.tweet_id where urls.text like 'https://twitter.com/%/status/' || tweets.quoted_tweet_id || "%")`, + `create table spaces(rowid integer primary key, + id text unique not null, + short_url text not null + ); + alter table tweets add column space_id text references spaces(id)`, } /**