Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to include media files in the Explorer if they've been downloaded #431

Open
sal-uva opened this issue May 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request explorer

Comments

@sal-uva
Copy link
Collaborator

sal-uva commented May 2, 2024

Linking to social media sites is pretty troublesome for a variety of reasons (expiring URLs, XSS, many requests) causing media files to often be omitted in the Explorer.

We could connect the Download images and Download videos processors to the Explorer so that media files can be retrieved from the 4CAT server instead of somewhere else, as long as they've been downloaded.

@sal-uva sal-uva added enhancement New feature or request explorer labels May 2, 2024
@sal-uva sal-uva self-assigned this May 2, 2024
@dale-wahl
Copy link
Member

Interesting. When I built the download_videos.py, I added a special DatasetVideoLibrary class that would collect all the previously downloaded videos. It was to avoid redownloading videos. You could use that to find the videos by their URL and then link to them. Something similar would work for images.

If @stijn-uva is ok with merging the Cartographer PR, the @app.route('/result/<path:query_file>') was modified to serve archived files (assuming they are part of a file in the datasets folder). This would allow you to serve either videos or images from their archives pretty easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request explorer
Projects
None yet
Development

No branches or pull requests

2 participants