Giter VIP home page Giter VIP logo

Comments (26)

luntovsky avatar luntovsky commented on May 8, 2024 5

Same problem here, couldn't get setsid working on my mac (big sur 11.6)
Fixed the problem by removing the setsid command on line:

ani-cli/ani-cli

Line 213 in 7d9ae36

setsid -f $player_fn --http-header-fields="Referer: $embedded_video_url" "$video_url" >/dev/null 2>&1

and running just the mpv command in the background.
Also added kill process for closing the player when next / prev episode is played:

image

not pretty but it works ^^

from ani-cli.

slcheungcasado avatar slcheungcasado commented on May 8, 2024 2

setsid isn't on mac (big sur 11.6) by default so brew install util-linux and add it to your PATH.

from ani-cli.

broskees avatar broskees commented on May 8, 2024 1

Here's an easy copy and paste fix if you have brew & zsh:

brew install util-linux
echo 'export PATH="/usr/local/opt/util-linux/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/util-linux/sbin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/util-linux/lib"
export CPPFLAGS="-I/usr/local/opt/util-linux/include"
export PKG_CONFIG_PATH="/usr/local/opt/util-linux/lib/pkgconfig"

from ani-cli.

Ellana42 avatar Ellana42 commented on May 8, 2024 1

Here's an easy copy and paste fix if you have brew & zsh:

brew install util-linux
echo 'export PATH="/usr/local/opt/util-linux/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/util-linux/sbin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/util-linux/lib"
export CPPFLAGS="-I/usr/local/opt/util-linux/include"
export PKG_CONFIG_PATH="/usr/local/opt/util-linux/lib/pkgconfig"

These worked for me

from ani-cli.

mKIRArasif avatar mKIRArasif commented on May 8, 2024

cli shows that the anime is currently playing, but didnt open mpv at all, i do not know if this is a windows only problem or what

Same problem in LMDE4.

from ani-cli.

prirai avatar prirai commented on May 8, 2024

Same as #32 ?

from ani-cli.

 avatar commented on May 8, 2024

Same problem in Ubuntu mate 21.04

from ani-cli.

stl3 avatar stl3 commented on May 8, 2024

I thought I was going to run into this problem, but I waited for a bit and eventually mpv launched. I was doing this on a raspberry pi4 B+ 8gb, in dietpi. The only issue I had was buffering issue but that is something seperate.

from ani-cli.

Dink4n avatar Dink4n commented on May 8, 2024

It's a compatibility issue. Please print your version of setsid

setsid -V

Older version of setsid doesn't have the argument -f

from ani-cli.

Zy-XD avatar Zy-XD commented on May 8, 2024

It's a compatibility issue. Please print your version of setsid

setsid -V

Older version of setsid doesn't have the argument -f

is there a library / site to download from that is convenient for windows?

from ani-cli.

mKIRArasif avatar mKIRArasif commented on May 8, 2024

I thought I was going to run into this problem, but I waited for a bit and eventually mpv launched. I was doing this on a raspberry pi4 B+ 8gb, in dietpi. The only issue I had was buffering issue but that is something seperate.

Yes, mpv launches but it's like 1-5% chance that it will launch after clicking or manually opening mpvPlayer, not automatically as it should be.

from ani-cli.

Dylan-bit247 avatar Dylan-bit247 commented on May 8, 2024

It's a compatibility issue. Please print your version of setsid

setsid -V

Older version of setsid doesn't have the argument -f

is there a library / site to download from that is convenient for windows?

im using setsid from util-linux 2.34 but finding same issue. is this version not recent enough?

from ani-cli.

Dink4n avatar Dink4n commented on May 8, 2024

@Dylan-bit247 Your version is recent enough. The setsid -f flag was introduced in util-linux 2.32.
Can you give more info about your OS?

from ani-cli.

SmellsNice avatar SmellsNice commented on May 8, 2024

It's a compatibility issue. Please print your version of setsid

setsid -V

Older version of setsid doesn't have the argument -f

is there a library / site to download from that is convenient for windows?

im using setsid from util-linux 2.34 but finding same issue. is this version not recent enough?

I am also using util-linux 2.37.2 on EndeavourOs. I can't really figure out why this happens as setsid seems to work perfectly fine but I have to open an mpv window every time for it to load.

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

My solution for MacOS BigSur =)

So yes, as @slcheungcasado proposed it is needed to install util-linux:

$ brew install util-linux

But this wouldn't work yet, because it is not yet symlinked into /usr/local by brew, so you need to do some magic:

$ ln -s /usr/local/opt/util-linux/bin/setsid /usr/local/bin/setsid

Note: I do this, but it's not recommended as Homebrew prefers to manage this itself.

from ani-cli.

festiveFurry avatar festiveFurry commented on May 8, 2024

alright so, my problem was that the ani-cli program opened, but mpv wouldn't open. and so I decided to play around and see what I could find, and that's when I decided to download one episode of the anime I was trying to watch, and I found this:
Screenshot from 2021-10-23 20-23-35
so basically it cannot download it, are the links down or maybe something else is happening?

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

alright so, my problem was that the ani-cli program opened, but mpv wouldn't open. and so I decided to play around and see what I could find, and that's when I decided to download one episode of the anime I was trying to watch, and I found this:
Screenshot from 2021-10-23 20-23-35
so basically it cannot download it, are the links down or maybe something else is happening?

Is it working when you just trying to watch anime? (without downloading)

from ani-cli.

festiveFurry avatar festiveFurry commented on May 8, 2024

alright so, my problem was that the ani-cli program opened, but mpv wouldn't open. and so I decided to play around and see what I could find, and that's when I decided to download one episode of the anime I was trying to watch, and I found this:
Screenshot from 2021-10-23 20-23-35
so basically it cannot download it, are the links down or maybe something else is happening?

Is it working when you just trying to watch anime? (without downloading)

well, no, but, in both cases it shows that the data has been loaded successfully, even tho the data is this

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

alright so, my problem was that the ani-cli program opened, but mpv wouldn't open. and so I decided to play around and see what I could find, and that's when I decided to download one episode of the anime I was trying to watch, and I found this:
Screenshot from 2021-10-23 20-23-35
so basically it cannot download it, are the links down or maybe something else is happening?

Is it working when you just trying to watch anime? (without downloading)

well, no, but, in both cases it shows that the data has been loaded successfully, even tho the data is this

Can you please try
$ setsid -V

from ani-cli.

festiveFurry avatar festiveFurry commented on May 8, 2024

alright so, my problem was that the ani-cli program opened, but mpv wouldn't open. and so I decided to play around and see what I could find, and that's when I decided to download one episode of the anime I was trying to watch, and I found this:
Screenshot from 2021-10-23 20-23-35
so basically it cannot download it, are the links down or maybe something else is happening?

Is it working when you just trying to watch anime? (without downloading)

well, no, but, in both cases it shows that the data has been loaded successfully, even tho the data is this

Can you please try $ setsid -V

oh, shucks, looks like it's too old, it's util-linux 2.31.1

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

Can you please try $ setsid -V

oh, shucks, looks like it's too old, it's util-linux 2.31.1

Yeah, it seems old, can you update it? And, also can you check that you have the latest version of ani-cli, because about 8 days ago was an essential update to by pass the captcha on gogoanime. I'm not sure how to update this thing, but probably this

$ cd ani-cli
$ git pull
$ sudo make

should work.

from ani-cli.

festiveFurry avatar festiveFurry commented on May 8, 2024

Can you please try $ setsid -V

oh, shucks, looks like it's too old, it's util-linux 2.31.1

Yeah, it seems old, can you update it? And, also can you check that you have the latest version of ani-cli, because about 8 days ago was an essential update to by pass the captcha on gogoanime. I'm not sure how to update this thing, but probably this

$ cd ani-cli
$ git pull
$ sudo make

should work.

sorry for the long answer, but long story short when I wanted to update it I ran into an issue. I couldn't get it updating. then I decided to reinstall util-linux(not the best idea, but it was 11pm and I was drunk and raging), broke my entire system, and had to reinstall ubuntu. but hey, at least it works now

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

I decided to reinstall util-linux(not the best idea, but it was 11pm and I was drunk and raging), broke my entire system, and had to reinstall ubuntu. but hey, at least it works now

AHAHAHAHA, you made me laugh with tears))) It's fine. It is said beauty costs pain)

from ani-cli.

Dylan-bit247 avatar Dylan-bit247 commented on May 8, 2024

@Dylan-bit247 Your version is recent enough. The setsid -f flag was introduced in util-linux 2.32.
Can you give more info about your OS?

I got it worked using a forked version of an earlier build also I entered ani-cli _H by mistake and got something interesting out of it… don’t suppose you can try this on the official version and see if this is something special built in or something… I went though the code before installing to make sure it didn’t do anything I’m not ok with, but I missed this functionality and am now looking for more surprises hidden within.

from ani-cli.

AlexFreik avatar AlexFreik commented on May 8, 2024

I entered ani-cli _H by mistake and got something interesting out of it…

What do you mean? I see the expected behaviour -- it lists an
ime's, that you get when you search _H at https://gogoanime.vc/.
Screenshot 2021-10-26 at 17 59 04
Screenshot 2021-10-26 at 17 59 45

from ani-cli.

port19x avatar port19x commented on May 8, 2024

Long story short: setsid is terrible and we should move to nohup quickly.
See #2 and the linked PR #137
Continue discussion there

from ani-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.