niveK77pur / gogoanime

Simple terminal downloader for Gogoanime episodes (entire seasons)
2 stars 1 forks source link

Specify download location? #8

Open niveK77pur opened 2 years ago

niveK77pur commented 2 years ago

Currently there is no way to specify the root download folder, other than modifying the source code. The aim is to keep this script simple and straightforward, therefore such an option was not included yet.

The ideal solution would be to read an environment variable. An optional flag might cause difficulties and inconsistencies in how the script is to be called when looking for anime. For example an envrionment variable such as GOGO_SAVEDIR could be set. Usage could then be as follows.

  1. Set environment variable "globally" via the .profile by adding a line saying export GOGO_SAVEDIR=xxx
  2. Environment variable can be specified when calling the script as GOGO_SAVEDIR=xxx gogoanime.py yyy

With this, the only modification to the code would be to read or not the environment variable if it was set. This will maintain the simplicity of the implementation.