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

PodArch: prepend numbers to the title so podcasts sort by name in publish order #108

Open
ZNielsen opened this issue Jun 12, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ZNielsen
Copy link
Owner

No description provided.

@ZNielsen ZNielsen added enhancement New feature or request good first issue Good for newcomers labels Jun 12, 2024
@ZNielsen
Copy link
Owner Author

ZNielsen commented Jul 3, 2024

Does order matter?
https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html#method.buffered

I think no, the buffered_unordered is for execution order right? So incrementing with a threadsafe var should work?

@ZNielsen
Copy link
Owner Author

ZNielsen commented Jul 3, 2024

Pre-indexing is the way to go I think:

    // Assign episode numbers in publish order
    let numbered_items: Vec<_> = rss.items().iter().enumerate().collect();
    let results = stream::iter(numbered_items)
        .map(|(index, item)| {

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

No branches or pull requests

1 participant