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

Mac OSX: "grep: invalid option -- P" error #83

Open
dylan-gluck opened this issue Feb 2, 2022 · 0 comments
Open

Mac OSX: "grep: invalid option -- P" error #83

dylan-gluck opened this issue Feb 2, 2022 · 0 comments

Comments

@dylan-gluck
Copy link

When testing on Mac 12.1 getting the following error:

grep: invalid option -- P

After some research it appears that the version of grep on OSX does not supprt the -P method but does accept the -E flag for using regex. The comment that pointed me in the right direction.

I noticed in your code that you actually use -E on line 4 but then use -P on line 5 to do the same thing. If you update line 5 to use -E it should work with both linux and mac.


I created a fork of your project, notflix-osx, with the above change as well as a few other updates.

  • Use YTS instead of 1337x. I found that the results were better and more relevant.
  • Updated scraping logic to work with YTS and to default to 1080p
  • Default to use VLC
  • Default 500 connections

Thanks for putting together the original script. I had a similar idea the other day while using peerflix and found your project in my research.

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

No branches or pull requests

1 participant