Oshan96 / monkey-dl

Bulk download your favourite anime episodes from your favourite anime websites
MIT License
814 stars 70 forks source link

CLI not working #10

Closed ag1694 closed 4 years ago

ag1694 commented 4 years ago

The CLI is not working.

First I get this:

Traceback (most recent call last):
  File "./Anime_Downloader.py", line 188, in <module>
    main()
  File "./Anime_Downloader.py", line 175, in main
    Anime_Scraper.main(args.start, args.end, token)
  File "/home/alex/Anime/Downloader/anime_downloader/scrapers/nineanime/Anime_Scraper.py", line 227, in main
    with open("settings.json") as (json_file):
FileNotFoundError: [Errno 2] No such file or directory: 'settings.json'

I create the file settings.json (I just used touch) and get this:

Traceback (most recent call last):
  File "./Anime_Downloader.py", line 188, in <module>
    main()
  File "./Anime_Downloader.py", line 175, in main
    Anime_Scraper.main(args.start, args.end, token)
  File "/home/alex/Anime/Downloader/anime_downloader/scrapers/nineanime/Anime_Scraper.py", line 228, in main
    data = json.load(json_file)
  File "/usr/lib/python3.7/json/__init__.py", line 296, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
ag1694 commented 4 years ago

I didn't read that part of the docs, apologies.

Oshan96 commented 4 years ago

On a second note, Anime_Downloader.py (CLI) script only works for 9anime downloads. I haven't had time to add support for other websites for the CLI version (since now the main entry point is given in anime_downloader/anime-dl.py scrpit, and it is GUI version)