Coder Social home page Coder Social logo

anime-cli's Introduction

Hi ๐Ÿ‘‹ I am Chirag

Projects

  • Animeflix A self hosted solution for streaming animes with a nice UI.
  • KeyLoggr An open-source keystroke visualizer for Windows in C++ using win32
  • Anime-cli A python cli to stream animes from your terminal without having to navigate through fishy websites.
  • setup-ccache A github CI action workflow to setup and cache ccache results to speedup compile times for your projects.
  • rplace A script to automate r/place event hosted by reddit.
  • Malware A windows malware that installs without admin privileges and causes a bsod when you log in.
  • Render3D โš ๏ธ C++ 3D renderer using Vulkan APIs that converts your lua scripts to video.
  • Walnut A fork of studiocherno/walnut to support cross platform via cmake. Examples included in /examples
  • NexOS An OS written in pure rust. I have written an UEFI bootloader with a nice UI. will develop as I learn more about OS development.
  • OpenMapsApi An experiment into hosting your own google maps

anime-cli's People

Contributors

chirag-droid avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anime-cli's Issues

Broken when streaming to mpv?

? What would you like to do for me? Stream on a video player (Recommended)
? Which video player would you like to use to stream? mpv
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\wolf\anime-cli\anime_cli\__main__.py", line 129, in main
    video_url = searchApi.get_video_url(embed_url)
  File "C:\Users\wolf\anime-cli\anime_cli\search\gogoanime.py", line 55, in get_video_url
    link = re.search(r"\s*sources.*", r.text).group()
AttributeError: 'NoneType' object has no attribute 'group'

Streaming to browser works perfectly otherwise

Control the quality .

In mpv configuration I set a default quality for the videos I play but when I play a video from this specific package it plays in a different quality.

python 3.7 (and RPi) support

Hi, I want to use this on my Raspberry Pi and unfortunately there's no prebuilt python 3.9 in the Raspberry Pi repositories.
Is it possible to support python 3.7 because the pip that belongs to the python3.9 I built from source doesn't work -> can't install the script

Ability to lower quallity for slower connections

When streaming, the mpv player chooses to stream at the best quality possible, which takes a lot of time to stream on slower connections. There is a lot of buffering if you don't have very fast internet speed.

Android with mpv not working

~ $ anime-cli ? What anime would you like to watch? death note
? Found 4 results for death note Death Note (Dub)
? Choose from 1-37 episodes: 1
? What would you like to do for me? Stream on a video player (Recommended)
? Which video player would you like to use to str
eam? xdg-open
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/anime-cli", line 8, in sys.exit(main())
^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/anime_cli/main.py", line 129, in main video_url = searchApi.get_video_url(embed_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/anime_cli/search/gogoanime.py", line 56, in get_video_url link = re.search(r"\ssources.", r.text).group() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'group'

Opening the video in mpv player is not working.

I tried to play the anime on mpv and I got this :
? What would you like to do for me? Stream on a video player (Recommended) ? Which video player would you like to use to stream? mpv Starting proxy server on ('localhost', 8081) It may take some time to open the video player. Be Patient :) Traceback (most recent call last): File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\AHMED\AppData\Roaming\Python\Python39\site-packages\anime_cli\__main__.py", line 167, in <module> main() File "C:\Users\AHMED\AppData\Roaming\Python\Python39\site-packages\anime_cli\__main__.py", line 150, in main sp.Popen([video_player, video_url]) File "C:\Program Files\Python39\lib\subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python39\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

Downloading is not implemented, issues that may come up because of redirects

I tried downloading the anime using vlc, the url redirected to another url with a different part of the video.

example of the url redirects :
https://.../{id}.m3u8
https://.../{id}.3600.ts
https://.../{id}.3601.ts
https://.../{id}.3602.ts
https://.../{id}.3603.ts

and because of the redirects, vlc thought the downloading process was over and in turn it only downloaded ~4 seconds before each redirect.

I think this should be considered when implementing downloading that gogoanime makes it hard to download the whole file right away because of redirects, and I also want to bump the anime downloading implementation progress.

By the way the anime and episode is Naruto and episode 1 and not from browser.

script crashes after search query is submitted

Attempting to use anime-cli via Termux on an SGS9. I'm far from being either a termux or a python wizard, so the issue may not actually be with anime-cli, but I'm not quite savvy enough to determine that for myself, so please forgive me!

anime-cli appears to install normally via pip install anime-cli

When I start the script by entering anime-cli I'm greeted with the prompt ? What anime would you like to watch?. Regardless of what I enter, the result is a stream of errors ending with: InquirerPy.exceptions.InvalidArgument: argument choices cannot be empty

Python version is 3.10.0
Please let me know if there are any logs I can share or further information I can provide.

Termux Screenshot:

mpv streaming from terminal (mpv) not working again despite upgrade

hi there, it seems we have the same issue as last time with the the ability to stream from mpv not functioning as it should. every time i choose that option this is the output:

Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/yaundere/.local/lib/python3.10/site-packages/anime_cli/__main__.py", line 167, in <module> main() File "/home/yaundere/.local/lib/python3.10/site-packages/anime_cli/__main__.py", line 129, in main video_url = searchApi.get_video_url(embed_url) File "/home/yaundere/.local/lib/python3.10/site-packages/anime_cli/search/gogoanime.py", line 56, in get_video_url link = re.search(r"\s*sources.*", r.text).group() AttributeError: 'NoneType' object has no attribute 'group'

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.