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: making this work on OpenBS with non-GNU tools #1296

Merged
merged 3 commits into from
Mar 1, 2024

Conversation

xezo360hye
Copy link
Contributor

@xezo360hye xezo360hye commented Feb 28, 2024

Pull Request Template

Type of change

  • Bug fix
  • Feature
  • Documentation update

Description

Small syntax changes required to make this work on OpenBSD (and potentially other non-GNU/*BSD systems). Involved replacing \n and similar backslash-escaped characters with their literal representations (actual newline, tab). Should not break anything on other systems, checked briefly on NixOS, runs fine

Checklist

  • any anime playing
  • bumped version

  • next, prev and replay work
  • -c history and continue work
  • -d downloads work
  • -s syncplay works
  • -q quality works
  • -v vlc works
  • -e select episode works
  • -S select index works
  • -r range selection works
  • --skip ani-skip works
  • --skip-title ani-skip title argument works
  • --no-detach no detach works
  • --dub and regular (sub) mode both work
  • all providers return links (not necessarily on a single anime, use debug mode to confirm)

  • -h help info is up to date
  • Readme is up to date
  • Man page is up to date

Additional Testcases

  • The safe bet: One Piece
  • Episode 0: Saenai Heroine no Sodatekata ♭
  • Unicode: Saenai Heroine no Sodatekata ♭
  • Non-whole episodes: Tensei shitara slime datta ken (ep. 24.5, ep. 24.9)

xezo360hye and others added 2 commits February 16, 2024 13:01
Replaced `\t` and `\n` with actual tab and newline characters in `sed`
commands, as well as `\s` with `[[:space]]` in `grep`, so that it works
on non-GNU systems. Should be tested on other OSes though
@port19x port19x linked an issue Feb 28, 2024 that may be closed by this pull request
@xezo360hye xezo360hye changed the title Fix OpenBSD fix: OpenBSD Feb 28, 2024
@xezo360hye xezo360hye changed the title fix: OpenBSD fix: making this work on OpenBS with non-GNU tools Feb 28, 2024
Idk I just set it to the next after mine. Not sure if it's supposed to be done this way but ok
@port19x
Copy link
Collaborator

port19x commented Mar 1, 2024

Thank you for the fix

@port19x port19x merged commit 721bf6e into pystardust:master Mar 1, 2024
6 checks passed
@xezo360hye xezo360hye deleted the fix-openbsd branch March 1, 2024 09:15
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.

Not Working on OpenBSD
2 participants