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

Reversed numbering when $num/$numc template is used for file name #618

Open
4 of 6 tasks
totrov opened this issue Feb 19, 2025 · 3 comments
Open
4 of 6 tasks

Reversed numbering when $num/$numc template is used for file name #618

totrov opened this issue Feb 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@totrov
Copy link

totrov commented Feb 19, 2025

Version

bbfd21b8

Platform

win

Steps to reproduce

Repro: set $num or $numc in setup in filename template; select playlist
Fix description: Replace (i + 1) with (SelectedVideos.Count - i) in DownloadMultipleSetupViewModel.cs

P.S. It is not clear how to contribute

Details

Expected: numbers go in ascending order from 1 in accordance with playlist order.
Actual: numbers go in descending order from max to 1.

Checklist

  • I have looked through existing issues to make sure that this bug has not been reported before
  • I have provided a descriptive title for this issue
  • I have made sure that this bug is reproducible on the latest version of the application
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
  • I have not read any of the above and just checked all the boxes to submit the issue
@totrov totrov added the bug Something isn't working label Feb 19, 2025
@totrov
Copy link
Author

totrov commented Feb 19, 2025

not clear how to contribute because I can't push bugfix branch:
remote: Permission to Tyrrrz/YoutubeDownloader.git denied to totrov.

@totrov
Copy link
Author

totrov commented Feb 19, 2025

@Tyrrrz by the way, not only described fix is needed, but also add AsEnumerable() to
public IReadOnlyList AvailableVideoQualityPreferences { get; } =
Enum.GetValues().AsEnumerable().Reverse().ToArray();
You can create a branch for bugfixing and share rights, I'll create a PR

@Tyrrrz
Copy link
Owner

Tyrrrz commented Feb 22, 2025

not clear how to contribute because I can't push bugfix branch: remote: Permission to Tyrrrz/YoutubeDownloader.git denied to totrov.

@totrov you need to make a fork first.

See this for more info: https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project

You can also just use the web interface if you need to edit a single file.

I can make the fix myself (thanks!) but I'll wait in case you want to submit a PR.

@Tyrrrz Tyrrrz changed the title [With tested fix] reversed numbering on Apply, when $num/$numc template is used for file name Reversed numbering when $num/$numc template is used for file name Feb 22, 2025
@Tyrrrz Tyrrrz changed the title Reversed numbering when $num/$numc template is used for file name Reversed numbering when $num/$numc template is used for file name Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants