Skip to content

Commit

Permalink
Rename BaseArchiver to GenericArchiver + some other tidyups
Browse files Browse the repository at this point in the history
  • Loading branch information
pjrobertson committed Jan 17, 2025
1 parent 5aa7174 commit 9c5a9e1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/auto_archiver/archivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
from .instagram_tbot_archiver import InstagramTbotArchiver
from .telegram_archiver import TelegramArchiver
from .vk_archiver import VkArchiver
from .base_archiver.base_archiver import BaseArchiver as YoutubeDLArchiver
from .generic_archiver.generic_archiver import GenericArchiver as YoutubeDLArchiver
from .instagram_api_archiver import InstagramAPIArchiver
1 change: 0 additions & 1 deletion src/auto_archiver/archivers/base_archiver/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions src/auto_archiver/archivers/generic_archiver/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .generic_archiver import GenericArchiver
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ...core import Metadata, Media, ArchivingContext


class BaseArchiver(Archiver):
class GenericArchiver(Archiver):
name = "youtubedl_archiver" #left as is for backwards compat

def __init__(self, config: dict) -> None:
Expand Down Expand Up @@ -76,7 +76,8 @@ def keys_to_clean(self, extractor_key: str, video_data: dict) -> dict:
return base_keys + []
elif extractor_key == "Bluesky":
# bluesky API response for non video URLs is already clean, nothing to add
return base_keys + []
return base_keys + []


return base_keys

Expand Down
2 changes: 1 addition & 1 deletion src/auto_archiver/archivers/youtubedl_archiver.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# temporary hack, as we implement module
from .youtubedl_archiver import *
from .generic_archiver.generic_archiver import GenericArchiver as YoutubeDLArchiver

0 comments on commit 9c5a9e1

Please sign in to comment.