Use some credits to show some activity for you apikey so the platform know it is used and would not put your quota to 0 (only Youtube currently).
Take a look at all available options with `--help`!
To prevent Youtube from inactivating your apikey after 90days of inactivity it is recommended to launch this command automatically from a script around once a month. It will mwke a call to use a few credits from your daily quota.
On Linux and MacOS, you can use cron, on Windows the "Task Scheduler".
```sh
python -m prismedia --hearthbeat
```
prismedia --help
Take a look at all available options with `--help`!
```sh
python -m prismedia --help
```
## Enhanced use of NFO
@ -136,7 +139,7 @@ Basically, Prismedia will now load options in this order, using the last value f
`nfo.txt < directory_name.txt < video_name.txt < command line NFO < command line argument`
You'll find a complete set of samples in the [prismedia/samples](prismedia/samples) directory so let's take it as an example:
--file is mandatory, shouldn't we set it optional to allow launching prismedia with --hearbeat only?
So --file becomes optionnal, perhaps exclusive with --heartbeat. With a check so if there is not --file nor --hertbeat present, we disply the help? (One of two is mandatory)
`--file` is mandatory, shouldn't we set it optional to allow launching prismedia with `--hearbeat` only?
So `--file` becomes optionnal, perhaps exclusive with `--heartbeat`. With a check so if there is not `--file` nor `--hertbeat` present, we disply the help? (One of two is mandatory)
Yes one of the two is mandatory and both are exclusives (at least in my mind).
I had to add this usage otherwise I had an error. But I added quickly, there may be a better syntax to highlight what we are both thinking.
Yes one of the two is mandatory and both are exclusives (at least in my mind).
I had to add this usage otherwise I had an error. But I added quickly, there may be a better syntax to highlight what we are both thinking.
I think we may add a section for heartbeat in README as documentation, to explain the way to use it.
Do you plan to use cron? Or some daemon? Perhaps a beehive example? ;-)
Thanks!
I think we may add a section for heartbeat in README as documentation, to explain the way to use it.
Do you plan to use cron? Or some daemon? Perhaps a beehive example? ;-)
Thanks!
Yeah I forgot to add the readme and explain "just use cron on Linux or add it in the Windows sheduler to be triggered once a month". Not sure if more details are needed.
Yeah I forgot to add the readme and explain "just use cron on Linux or add it in the Windows sheduler to be triggered once a month". Not sure if more details are needed.
-h--helpShowthishelp.
--versionShowversion.
@ -396,11 +400,17 @@ def main():
Optional('--playlist'):Or(None,str),
Optional('--playlistCreate'):bool,
Optional('--progress'):Or(None,And(str,validateProgress,error="Sorry, progress visualisation not supported")),
'--hearthbeat':bool,
'--help':bool,
'--version':bool,
# This allow to return all other options for further use: https://github.com/keleshev/schema#extra-keys
object:object
})
ifoptions.get('--hearthbeat'):
yt_upload.hearthbeat()
exit(0)
# We need to validate early options first as withNFO and logs options should be prioritized
--file
is mandatory, shouldn't we set it optional to allow launching prismedia with--hearbeat
only?So
--file
becomes optionnal, perhaps exclusive with--heartbeat
. With a check so if there is not--file
nor--hertbeat
present, we disply the help? (One of two is mandatory)Yes one of the two is mandatory and both are exclusives (at least in my mind).
I had to add this usage otherwise I had an error. But I added quickly, there may be a better syntax to highlight what we are both thinking.