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 URLs from item comments, add -p / --page flag to cmdline #57

Merged
merged 3 commits into from
May 7, 2024

Conversation

snejus
Copy link
Owner

@snejus snejus commented May 7, 2024

Fixed

Added

  • Add a new flag to the command line application for searching Bandcamp:
    [-p PAGE, --page PAGE] to enable seeing further search results

@snejus snejus self-assigned this May 7, 2024
@coveralls
Copy link
Collaborator

coveralls commented May 7, 2024

Pull Request Test Coverage Report for Build 8985172684

Details

  • 18 of 19 (94.74%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 90.931%

Changes Missing Coverage Covered Lines Changed/Added Lines %
beetsplug/bandcamp/search.py 1 2 50.0%
Totals Coverage Status
Change from base Build 8868758907: 0.08%
Covered Lines: 1012
Relevant Lines: 1111

💛 - Coveralls

@snejus snejus force-pushed the fix-parsing-url-from-comments branch from b8ad375 to 02319da Compare May 7, 2024 12:18
@snejus snejus merged commit 8e12941 into main May 7, 2024
36 checks passed
@snejus snejus deleted the fix-parsing-url-from-comments branch May 7, 2024 12:23
[
("Visit https://label.bandcamp.com", "https://label.bandcamp.com"),
("Visit https://supercommuter.net", "https://supercommuter.net"),
("Visit https://no-top-level-domain", None),
Copy link

Choose a reason for hiding this comment

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

Hey, sorry I'm a little late to this, but is it worth adding a test case for a URL with more than two domain parts, e.g. a sub-domain of a country TLD like https://myband.com.au/ or https://myband.co.uk/? I'm not sure if your regular expression handles more than one dot in the domain portion.

Copy link
Owner Author

Choose a reason for hiding this comment

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

To be honest I did not even give a chance for anyone to have a look at this 😅

This is a good idea, of course! Would you like to contribute yourself by any chance?

Copy link

Choose a reason for hiding this comment

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

I'll see if I can find time over the next couple days. Otherwise, feel free to give it a go yourself.

Copy link

Choose a reason for hiding this comment

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

Also, I am in Australia, so I think we're battling timezones a little. 😅

Copy link
Owner Author

Choose a reason for hiding this comment

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

I checked the URLs that you provided and it seems to handle them well, but I'm excited to see whether you could find a URL that breaks it!

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

Successfully merging this pull request may close these issues.

3 participants