Skip to main content

light yt-dlp frontend

Project description

yaytarch

Yet Another YouTube Archival (tool)

Yaytarch is a local library tool that allows you to watch content which you downloaded, locally from your browser. It tries to fill a big gap of low resource intensive media libraries, and the use case is to bring my disorder of downloaded videos and playlists to an neat end.

It is a yt-dlp frontend built with python & flask and it allows you to:

  • Download and update videos from the browser or CLI
  • Download and update playlists from the browser or CLI
  • Browse and watch videos
  • Create local collections of videos
  • Browse self contained folders
  • (Soon) import local videos!

Collections view

yaytarch_collectionview

Video list view

yaytarch_videolistview

Video view

yaytarch_videoview

Prerequisites:

Make sure you have ffmpeg installed, both yt-dlp & yaytarch need it.

Installation:

You can choose to install the official release from PyPi or you can also build your own version:

Installation through pypi:

Fetch and install yaytarch and its dependencies:

pip install yaytarch

And you're good to go, you can skip manual installation!

Build and install manually and locally:

Clone the repository:

git clone https://github.com/absolutelyrelative/yaytarch.git

Build wheel:

python -m build --wheel

a dist/yaytarch-xx.whl will be generated.

Install wheel:

pip install yaytarch-xx.whl

Usage:

The usage is divided in usage with a database '(DB)' sections of the usage, and in usage with local, directory mode.

(Folder) Download to folder:

If you prefer not to work without any database, you can download videos locally:

yaytarch -d LINK

(Folder) View a folder:

Within the folder run:

yaytarch -f

A browser window will be automatically opened.

(DB) Initialise configuration:

In order to run the app, a default download location needs to be given:

flask --app yaytarch init-db C:\PATH\TO\STORAGE\

(DB) View videos:

In order to browse videos locally you can use:

yaytarch

or

flask --app yaytarch run

NOTE: THIS is NOT the correct approach for deployment to a server. You NEED to set-up a correct secret key! Further information will come, for now see https://flask.palletsprojects.com/en/2.3.x/tutorial/deploy/#build-and-install

I take no responsibility in bad usage!

(DB) Download video, playlist, or channel:

You can download videos via CLI or UI by pressing the + button.

Playlists will be organised automatically, single videos will be saved to the generic 'All Videos' category.

flask --app yaytarch dl LINK

(DB) Lazy restore:

In case of any issue, you can always re-initialise the database and restore your previous progress. There will be two restore options, this is the so called 'lazy restore' which works by folder discovery. It should be used mainly when the database is unavailable. It can also be used to add local videos to the database, but a better way to do so will come soon.

flask --app yaytarch lazyrestore C:\PATH\TO\VIDEOS

Future features:

  • A less bad CSS / Style.
  • Others (will specify soon when I import my todo list)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yaytarch-1.1.0.tar.gz (28.9 kB view hashes)

Uploaded Source

Built Distribution

yaytarch-1.1.0-py3-none-any.whl (37.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page