sdaqo / anipy-cli

Little tool in python to watch and download anime from the terminal (the better way to watch anime). Also applicable as an API
https://sdaqo.github.io/anipy-cli
GNU General Public License v3.0
270 stars 40 forks source link

places files in a location with admin privilages? #38

Closed Quicksilver151 closed 2 years ago

Quicksilver151 commented 2 years ago
python3 ./run_anipy_cli.py 
Traceback (most recent call last):
  File "./run_anipy_cli.py", line 2, in <module>
    from anipy_cli import cli
ModuleNotFoundError: No module named 'anipy_cli'
sdaqo commented 2 years ago

You have to pip install it to run this file, did you do that?

Quicksilver151 commented 2 years ago

ok i figured out how to install but now

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/anipy_cli-2.1.0-py3.8.egg/anipy_cli/download'

this shows up when downloading anime

Quicksilver151 commented 2 years ago

You have to pip install it to run this file, did you do that?

i did python3 ./setup.py install

sdaqo commented 2 years ago

Go in the repo and execute pip install . Or just do pip install anipy-cli it is on the pypi repos, you then can just do anipy-cli and it works automaticlly.

Quicksilver151 commented 2 years ago

the problem is this Downloads are stored in: /home/renderinguser/.local/lib/python3.8/site-packages/anipy_cli/download its storing files in an admin location ah wait nvm the path changed this time lemmie check again

seems to be downloading now in any case would there be a way to change the path it downloads to?

Quicksilver151 commented 2 years ago

and its fetching the maximum resolution again i selected 720 but its downloading 1080

sdaqo commented 2 years ago

would there be a way to change the path it downloads to?

It downloads to the default python install path for pip packages you can look In docs/install.md for more options

sdaqo commented 2 years ago

and its fetching the maximum resolution again i selected 720 but its downloading 1080

idk why maybe 720 is not available, could you give me the anime so I can check it later

Quicksilver151 commented 2 years ago
Downloading: Shingeki no Kyojin: The Final Season Part 2 EP: 9 - 480p 
Type: m3u8

this is what the output says but the parts being downloaded are all 1080p

sdaqo commented 2 years ago

Hmm thats weird, it downloads a mp4 for me, maybe the link on gogoganime really were cuorrupt. The file is alse 720 (also tried for 480p). Could you try again?

Downloading: Shingeki no Kyojin: The Final Season Part 2 EP: 9 - 720p 
Type: mp4

Edit: Wait now it chaged again to m3u8, thats weird I will try again, give me a minute. Edit2: Ok now this was a pain to debug, it always changed from mp4 to m3u8. Anyways the m3u8 (for aot final 2 ep 9) only lists 1080 sources even though others are specified. This is a problem I cant do anything about.

 #EXTM3U                                                                                                              
 #EXT-X-VERSION:3                                                                                                     
 #EXT-X-STREAM-INF:BANDWIDTH=1837056,RESOLUTION=1920x1080                                                                     
 16289491-9d77-11ec-8669-48df3726a06a.m3u8                                                                            
 #EXT-X-STREAM-INF:BANDWIDTH=983040,RESOLUTION=1280x720                                                               
 ce67e649-9d76-11ec-ac61-48df37269fd0.m3u8                                                                                                                     
 #EXT-X-STREAM-INF:BANDWIDTH=548864,RESOLUTION=854x480                                                                                                         
 9e0210dc-9d76-11ec-bb82-e2d255ecf553.m3u8                                                                                                                     
 #EXT-X-STREAM-INF:BANDWIDTH=333824,RESOLUTION=480x270                                                                                                         
 42e728b5-9d76-11ec-bb82-e2d255ecf553.m3u8  

and here the base url https://peliscdn.net/travis/940c534099ef8d808494504b2bcdb8f8/playlist.m3u8 (you can delete playlist.m3u8 and paste the oother ending).

Quicksilver151 commented 2 years ago

ok its mp4 now for some reason it used to be a m3u8 playlist guess the server changed

welp with that out of the way all thats missing is seasonals now i guess

sdaqo commented 2 years ago

Ha... Just working on this, just some fine tuning and it will be finished.