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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file yaytarch-1.1.0.tar.gz.

File metadata

  • Download URL: yaytarch-1.1.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for yaytarch-1.1.0.tar.gz
Algorithm Hash digest
SHA256 688c7bd61b1c462b0f54b8b969bba8582810dcbb6f292d628e3d1581552bc656
MD5 6e5ea25af56001a2292195aeb7507111
BLAKE2b-256 0b435832975d058b07ac82934484d59d61029592ca6b10b93024a3a61dca45c2

See more details on using hashes here.

File details

Details for the file yaytarch-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: yaytarch-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for yaytarch-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf23afa28d5310d1363270433324dbcc6112a06ef2623f7fcca49829e3c86da5
MD5 8033e1bd299a43cd2993835999ec9adc
BLAKE2b-256 761bbbffc82cb8623ac9144949a04576810db91ed180f8b6c19d4d1823e4b2c6

See more details on using hashes here.

Supported by

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