16 lines
379 B
Python
16 lines
379 B
Python
#!/usr/bin/env python3
|
|
|
|
import pathlib
|
|
|
|
from praw.models import Submission
|
|
|
|
from bulkredditdownloader.site_downloaders.base_downloader import BaseDownloader
|
|
|
|
|
|
class Direct(BaseDownloader):
|
|
def __init__(self, directory: pathlib.Path, post: Submission):
|
|
super().__init__(directory, post)
|
|
|
|
def download(self):
|
|
return [self._download_resource(self.post.url)]
|