This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
Added optional parameters to STOP(), added a Logger, added a try/except around parse_args() to prevent a crash #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I took the liberty to do a few modifications:
stop()
method:save_to_igtv: bool = None, title = 'Live video', description = 'Live Instagram video.'
. Ifsave_to_igtv
is not set, the behaviour stays the same. However, if it is set to either True or False, no input is required.print()
methods withlogger.info()
methods:start_broadcast()
andstop_broadcast()
to properly relate what is happening in real time.parser.parse_args()
in__init__()
to prevent a SystemExit error to crash the app:SystemExit
error which makes the whole app to crash.I did my best to not modify but only improved what you did, and try to adapt the code to fit with my needs, which basically are 'be able to fully manage an instance of ItsAGramLive using Django & REST endpoints".
If you have any question or if you want me to change things, please do not hesitate.