No description
Find a file
2017-08-21 21:36:32 +01:00
src/Console/Commands Added requeue command for retrying failed downloads 2017-08-17 07:56:31 +01:00
.env.example Changing environment variables and initialisation commands 2017-08-17 04:05:07 +01:00
.gitignore Ignoring PHPStorm folder 2017-08-17 20:10:14 +01:00
composer.json Moving configuration to .env file 2017-08-17 00:32:47 +01:00
composer.lock Moving configuration to .env file 2017-08-17 00:32:47 +01:00
install.sh Adding database initialisation and Steam app list download to install script 2017-08-17 04:07:14 +01:00
lancache-autofill Added requeue command for retrying failed downloads 2017-08-17 07:56:31 +01:00
README.md Improving documentation 2017-08-17 18:37:55 +01:00

lancache-autofill

Automatically fill a lancache with the content of your choosing, so that subsequent downloads for the same content will be served from the lancache, improving speeds and reducing load on your internet connection.

Features

  • Choose which platform(s) to download an app for
  • Use multiple Steam accounts to download apps
  • See which apps downloaded successfully
  • See which apps failed, and what the error message was

Requirements

  • A working lancache
  • Ubuntu 16.04 x64, configured to download via the lancache
  • Sufficient disk space to (temporarily) store the downloaded content

Installation

  • git clone https://github.com/zeropingheroes/lancache-autofill.git
  • cd lancache-autofill
  • sudo ./install.sh

Quick Start

  1. Set the default Steam account to be used when queueing apps for download:

    nano .env

  2. Search for the apps you wish to download to find their app ID:

    ./lancache-autofill steam:search-apps "team fortress 2"

    440 Team Fortress 2 [...]

  3. Queue the app for download by ID:

    ./lancache-autofill steam:queue-app 440

  4. Start downloading items in the download queue:

    ./lancache-autofill steam:start-downloading

  5. View the download queue to see the status of the downloads:

    ./lancache-autofill steam:show-queue

  6. Clear the temporary download location:

    ./lancache-autofill app:initialise-downloads-directory

Command Reference

app:initialise-database

  • Initialise the database.

app:initialise-downloads-directory

  • Initialise the downloads directory.

steam:authorise-account [account]

  • Authorise a Steam account to allow download of apps in their library.
  • If no account is specified, the DEFAULT_STEAM_USER account is used

steam:queue-app appid [platform(s)] [--account=account]

  • Queue a Steam app for downloading.
  • Optionally the platform(s) to download can be specified as a comma-separated list
  • Available platforms are: windows, osx, linux
  • If no platform is specified, the Windows version of the app will be queued

steam:dequeue [--app_id=] [--platform=] [--account=] [--status=]

  • Dequeue a items from the download queue.
  • Optionally specify any combination of app ID, platform, account and status
  • Calling with no arguments clears the queue

steam:requeue [status=failed]

  • Requeue failed and/or completed items in the download queue.
  • By default failed items are requeued

steam:search-apps name

  • Search Steam apps by name.

steam:show-queue [status]

  • Show the Steam app download queue.
  • Optionally only show items with specified status
  • Available statuses are: queued, failed, completed

steam:start-downloading

  • Start downloading the Steam apps in the queue.
  • The account(s) specified in the queue to download from are checked before any app downloads are attempted

steam:update-app-list

  • Get the latest list of apps from Steam.

Limitations & Known Issues

  • Steam is the only supported platform currently
  • Paid apps can only be cached with access to a Steam account that owns them
  • No support for forcing download of 32 bit apps
  • Yes, it's written in PHP. No shame.

Reference