Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing configuration file #233

Merged
merged 1 commit into from Jan 21, 2022

Conversation

iambibhas
Copy link
Contributor

@iambibhas iambibhas commented Jan 21, 2022

Fixes #160.

Because the o and url properties are marked as required, the config file parsing block doesn't even get executed unless they're provided.

(Was just going through the repo and wanted to mess around a bit)

@SathyaBhat
Copy link
Owner

thank you 💯

setattr(args, key, True)
else:
setattr(args, key, value)

if args.verbose:
log.setLevel(DEBUG)

if not hasattr(args, 'url'):
raise(Exception("No playlist url provided"))
if not hasattr(args, 'o'):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be hasattr(args, 'output'): Caught this after merging. opened #235

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah crap. missed that.

@iambibhas iambibhas deleted the fix-config-file-path branch January 24, 2022 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config file not working
2 participants