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.
Set environment variable "globally" via the .profile by adding a line saying export GOGO_SAVEDIR=xxx
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.
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..profile
by adding a line sayingexport GOGO_SAVEDIR=xxx
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.