Merge branch 'main' into feat/unittest

This commit is contained in:
Patrick Robertson
2025-01-13 19:50:47 +01:00
12 changed files with 3338 additions and 2350 deletions

View File

@@ -162,8 +162,7 @@ class TwitterArchiver(Archiver):
.set_timestamp(timestamp)
if not tweet.get("entities", {}).get("media"):
logger.debug('No media found, archiving tweet text only')
result.status = "twitter-ytdl"
return result
return result.success("twitter-ytdl")
for i, tw_media in enumerate(tweet["entities"]["media"]):
media = Media(filename="")
mimetype = ""

View File

@@ -1,12 +1,12 @@
""" Version information for the auto_archiver package.
TODO: This is a placeholder to replicate previous versioning.
"""
from importlib.metadata import version as get_version
VERSION_SHORT = get_version("auto_archiver")
_MAJOR = "0"
_MINOR = "13"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "1"
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
# https://semver.org/#is-v123-a-semantic-version for the semantics.
_SUFFIX = ""
VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
__version__ = "{0}.{1}.{2}{3}".format(_MAJOR, _MINOR, _PATCH, _SUFFIX)
__version__ = f"{VERSION_SHORT}{_SUFFIX}"