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

automations #2

Merged
merged 1 commit into from
Feb 19, 2023
Merged

automations #2

merged 1 commit into from
Feb 19, 2023

Conversation

JarbasAl
Copy link
Member

No description provided.

@JarbasAl JarbasAl added the enhancement New feature or request label Feb 19, 2023
@JarbasAl JarbasAl merged commit 8d39514 into master Feb 19, 2023

outline = res['opml']['body']["outline"]

if isinstance(outline, list):
Copy link
Collaborator

Choose a reason for hiding this comment

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

As commented in chat, this wont work.

outline = res['opml']['body']["outline"]

# assert isinstance(outline, list)
if not isinstance(outline, list):
     return
if outline[0].get("outline"):
     stations = outline[0]["outline"]
else:
     stations = outline

works both ways. But the code merged made it impossible to issue a station per voice.

formats (outline)

common search comes in [{station},{station},...]
featured comes in [{"outline": [{station}, {station}] }, {uninteresting}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants