Giter Site home page Giter Site logo

fexh10 / aw-cli Goto Github PK

View Code? Open in Web Editor NEW
9.0 0.0 0.0 349 KB

Guarda anime dal terminale e molto altro! Ora con sincronizzazione con AniList

License: GNU General Public License v3.0

Python 100.00%
anime animeworld cli anilist anime-ita anime-downloader anime-streaming

aw-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aw-cli's Issues

VLC - problemi audio

Quando nella configurazione si utilizza VLC anzichè MPV l'audio sparisce ad intervalli

Domanda

Siccome non uso python vorrei sapere se hai fatto una sorta di web scraping da aniList o se hai usato un API

Non e' possibile scaricare anime che nel titolo hanno i due punti ":"

Quando provo a scaricare un anime che ha nel nome i due punti ":" ovviamente il programma non riesce a creare la cartella perche' deve trattarsi di un carattere che non puo' essere usato su Windows per la creazione di cartelle.

Errore riscontrato

image

Mashle: Magic and Muscles (ITA)
Specifica un episodio, o per un range usa: ep_iniziale-ep_finale (Episodi: 1-6)
> 1-6
Mashle: Magic and Muscles (ITA) Ep. 1:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Scripts\aw-cli.exe\__main__.py", line 7, in <module>
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 580, in main
    scaricaEpisodio(ep, path)
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 140, in scaricaEpisodio
    SDL = SmartDL(url_ep, f"{path}/{nome_video}.mp4")
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pySmartDL\pySmartDL.py", line 135, in __init__
    os.makedirs(os.path.dirname(self.dest))
  File "<frozen os>", line 225, in makedirs
NotADirectoryError: [WinError 267] Nome di directory non valido: 'C:\\Users\\user/Videos/Anime/Mashle: Magic and Muscles (ITA)'
PS C:\Users\user>

Informazioni generali

Sistema Operativo: Windows 11

Non so esattamente come si potrebbe risolvere questa problematica, probabilmente va' aggiunto un pezzo di codice che controlla la presenza di ":" nel titolo dell'anime e lo rimuova o sostituisca con qualcos'altro.

Ho trovato questo thread su stackoverflow che forse potrebbe aiutare.

Grazie.

Impossibile avviare lo script

Una volta seguita la procedura d'installazione,è impossibile avviarlo il comando aw-cli non viene trovato.

os: arch linux

edit:
ho risolto così
sudo cp aw-cli /usr/local/bin

Errore durante la riproduzione degli episodi scaricati

Descrizione dell'errore

Quando provo a riprodurre un episodio tra quelli che ho scaricato vlc non parte e la console riporta un errore.
Questo comportamento non si verifica quando invece l'episodio che cerco di riprodurre non e' scaricato.

Informazioni Generali

Python version: Python 3.11.3
Vlc version: 3.0.18 Vetinari
Operating System: Windows 11
Terminale utilizzato: Windows PowerShell

Output della console (Errore)

L'errore riportato sotto e' l'errore che ricevo quando provo a riprodurre un episodio scaricato
Screenshot 2023-06-04 193504

Riproduco Hell’s Paradise (ITA) Ep. 2...
Carattere di terminazione mancante nella stringa: '.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywinauto\application.py", line 958, in connect
    wait_until(timeout, retry_interval, self.is_process_running, value=True)
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywinauto\timings.py", line 375, in wait_until
    raise err
pywinauto.timings.TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Scripts\aw-cli.exe\__main__.py", line 7, in <module>
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 591, in main
    openVideos(ep_iniziale,ep_finale, mpv, tokenAnilist, ratingAnilist, preferitoAnilist)
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 346, in openVideos
    openMPV(url_server, nome_video) if mpv else openVLC(url_server, nome_video)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 231, in openVLC
    isRunning("vlc.exe")
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\awcli\run.py", line 164, in isRunning
    app = Application().connect(process=pid)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywinauto\application.py", line 960, in connect
    raise ProcessNotFoundError('Process with PID={} not found!'.format(self.process))
pywinauto.application.ProcessNotFoundError: Process with PID=0 not found!

Comportamento con episodi non scaricati.

Come specificato precedentemente quando si riproduce un episodio non scaricato questo viene riprodotto correttamente e riporta il seguente messaggio in console:

Screenshot 2023-06-04 193739
Riproduco One Piece Movie 15: Red (ITA) Ep. 1...

E vlc si apre correttamente visualizzando l'episodio scelto, la console rivela anche la chiusura di vlc riportando il seguente messaggio:

Screenshot 2023-06-04 194005

Seleziona una risposta valida
(r) riguarda
(i) indietro
(e) esci
>

Non so esattamente cosa possa causare questo errore, non ne ho le competenze purtroppo, ma spero che le informazioni fornite possano aiutare,

Grazie.

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.